github.com/pachyderm/pachyderm@v1.13.4/src/client/admin/v1_12/enterprise/enterprise.proto (about) 1 syntax = "proto3"; 2 3 package enterprise_1_12; 4 option go_package = "github.com/pachyderm/pachyderm/src/client/admin/v1_12/enterprise"; 5 6 import "google/protobuf/timestamp.proto"; 7 8 // Enterprise data structures 9 10 // EnterpriseRecord is the record we store in etcd for a Pachyderm enterprise 11 // token that has been provided to a Pachyderm cluster 12 message EnterpriseRecord { 13 string activation_code = 1; 14 15 // expires is a timestamp indicating when this activation code will expire. 16 google.protobuf.Timestamp expires = 2; 17 } 18 19 //// Enterprise Activation API 20 21 // TokenInfo contains information about the currently active enterprise token 22 message TokenInfo { 23 // expires indicates when the current token expires (unset if there is no 24 // current token) 25 google.protobuf.Timestamp expires = 1; 26 } 27 28 message ActivateRequest { 29 // activation_code is a Pachyderm enterprise activation code. New users can 30 // obtain trial activation codes 31 string activation_code = 1; 32 33 // expires is a timestamp indicating when this activation code will expire. 34 // This should not generally be set (it's primarily used for testing), and is 35 // only applied if it's earlier than the signed expiration time in 36 // 'activation_code'. 37 google.protobuf.Timestamp expires = 2; 38 } 39 message ActivateResponse { 40 TokenInfo info = 1; 41 } 42 43 message GetStateRequest {} 44 45 enum State { 46 NONE = 0; 47 ACTIVE = 1; 48 EXPIRED = 2; 49 } 50 51 message GetStateResponse { 52 State state = 1; 53 TokenInfo info = 2; 54 string activation_code = 3; 55 } 56 57 message DeactivateRequest{} 58 message DeactivateResponse{} 59 60 service API { 61 // Provide a Pachyderm enterprise token, enabling Pachyderm enterprise 62 // features, such as the Pachyderm Dashboard and Auth system 63 rpc Activate(ActivateRequest) returns (ActivateResponse) {} 64 rpc GetState(GetStateRequest) returns (GetStateResponse) {} 65 66 // Deactivate is a testing API. It removes a cluster's enterprise activation 67 // token and sets its enterprise state to NONE (normally, once a cluster has 68 // been activated, the only reachable state is EXPIRED). 69 // 70 // NOTE: This endpoint also calls DeleteAll (and deletes all Pachyderm data in 71 // its cluster). This is to avoid dealing with invalid, intermediate states 72 // (e.g. auth is activated but enterprise state is NONE) 73 rpc Deactivate(DeactivateRequest) returns (DeactivateResponse) {} 74 } 75