pachyderm 1.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/client/admin/admin_pb.rb +46 -0
- data/lib/client/admin/admin_services_pb.rb +25 -0
- data/lib/client/auth/auth_pb.rb +193 -0
- data/lib/client/auth/auth_services_pb.rb +44 -0
- data/lib/client/deploy/deploy_pb.rb +17 -0
- data/lib/client/deploy/deploy_services_pb.rb +22 -0
- data/lib/client/enterprise/enterprise_pb.rb +49 -0
- data/lib/client/enterprise/enterprise_services_pb.rb +33 -0
- data/lib/client/health/health_pb.rb +11 -0
- data/lib/client/health/health_services_pb.rb +22 -0
- data/lib/client/pfs/pfs_pb.rb +363 -0
- data/lib/client/pfs/pfs_services_pb.rb +117 -0
- data/lib/client/pkg/config/config_pb.rb +18 -0
- data/lib/client/pkg/shard/shard_pb.rb +102 -0
- data/lib/client/pps/pps_pb.rb +448 -0
- data/lib/client/pps/pps_services_pb.rb +53 -0
- data/lib/client/version/versionpb/version_pb.rb +18 -0
- data/lib/client/version/versionpb/version_services_pb.rb +22 -0
- data/lib/pachyderm.rb +29 -0
- metadata +62 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f69cefc27d30bf5c19c9088db661aecb6086f3b5
|
4
|
+
data.tar.gz: c41aff9a2ea63670dca02eac8073e9a8eaa2d76a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4c5bdec1b7c67942543e5edef3efe91ceed53afbdd968f9e901a7496e7bc3f2ce1c1cbb0fe1b38f5f74c47f3feae4cfa6068d9148e7c5873cad649c8757d5a3c
|
7
|
+
data.tar.gz: 085c9631e326cc367cf2f19c1fde9b2cfd899ab970a1f868b17d3db71fe07c11b74812dd7332bf22f8d72d436dd53b9e3db06e12447a94a40084bb13642931cb
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: client/admin/admin.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/protobuf/empty_pb'
|
7
|
+
require 'client/pfs/pfs_pb'
|
8
|
+
require 'client/pps/pps_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_message "admin.Op1_7" do
|
11
|
+
optional :object, :message, 2, "pfs.PutObjectRequest"
|
12
|
+
optional :tag, :message, 3, "pfs.TagObjectRequest"
|
13
|
+
optional :repo, :message, 4, "pfs.CreateRepoRequest"
|
14
|
+
optional :commit, :message, 5, "pfs.BuildCommitRequest"
|
15
|
+
optional :branch, :message, 6, "pfs.CreateBranchRequest"
|
16
|
+
optional :pipeline, :message, 7, "pps.CreatePipelineRequest"
|
17
|
+
end
|
18
|
+
add_message "admin.Op" do
|
19
|
+
optional :op1_7, :message, 1, "admin.Op1_7"
|
20
|
+
end
|
21
|
+
add_message "admin.ExtractRequest" do
|
22
|
+
optional :URL, :string, 1
|
23
|
+
optional :no_objects, :bool, 2
|
24
|
+
optional :no_repos, :bool, 3
|
25
|
+
optional :no_pipelines, :bool, 4
|
26
|
+
end
|
27
|
+
add_message "admin.ExtractPipelineRequest" do
|
28
|
+
optional :pipeline, :message, 1, "pps.Pipeline"
|
29
|
+
end
|
30
|
+
add_message "admin.RestoreRequest" do
|
31
|
+
optional :op, :message, 1, "admin.Op"
|
32
|
+
optional :URL, :string, 2
|
33
|
+
end
|
34
|
+
add_message "admin.ClusterInfo" do
|
35
|
+
optional :id, :string, 1
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
module Admin
|
40
|
+
Op1_7 = Google::Protobuf::DescriptorPool.generated_pool.lookup("admin.Op1_7").msgclass
|
41
|
+
Op = Google::Protobuf::DescriptorPool.generated_pool.lookup("admin.Op").msgclass
|
42
|
+
ExtractRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("admin.ExtractRequest").msgclass
|
43
|
+
ExtractPipelineRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("admin.ExtractPipelineRequest").msgclass
|
44
|
+
RestoreRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("admin.RestoreRequest").msgclass
|
45
|
+
ClusterInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("admin.ClusterInfo").msgclass
|
46
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: client/admin/admin.proto for package 'admin'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'client/admin/admin_pb'
|
6
|
+
|
7
|
+
module Admin
|
8
|
+
module API
|
9
|
+
class Service
|
10
|
+
|
11
|
+
include GRPC::GenericService
|
12
|
+
|
13
|
+
self.marshal_class_method = :encode
|
14
|
+
self.unmarshal_class_method = :decode
|
15
|
+
self.service_name = 'admin.API'
|
16
|
+
|
17
|
+
rpc :Extract, ExtractRequest, stream(Op)
|
18
|
+
rpc :ExtractPipeline, ExtractPipelineRequest, Op
|
19
|
+
rpc :Restore, stream(RestoreRequest), Google::Protobuf::Empty
|
20
|
+
rpc :InspectCluster, Google::Protobuf::Empty, ClusterInfo
|
21
|
+
end
|
22
|
+
|
23
|
+
Stub = Service.rpc_stub_class
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,193 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: client/auth/auth.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "auth.ActivateRequest" do
|
8
|
+
optional :subject, :string, 2
|
9
|
+
optional :github_token, :string, 1
|
10
|
+
end
|
11
|
+
add_message "auth.ActivateResponse" do
|
12
|
+
optional :pach_token, :string, 1
|
13
|
+
end
|
14
|
+
add_message "auth.DeactivateRequest" do
|
15
|
+
end
|
16
|
+
add_message "auth.DeactivateResponse" do
|
17
|
+
end
|
18
|
+
add_message "auth.GetAdminsRequest" do
|
19
|
+
end
|
20
|
+
add_message "auth.GetAdminsResponse" do
|
21
|
+
repeated :admins, :string, 1
|
22
|
+
end
|
23
|
+
add_message "auth.ModifyAdminsRequest" do
|
24
|
+
repeated :add, :string, 1
|
25
|
+
repeated :remove, :string, 2
|
26
|
+
end
|
27
|
+
add_message "auth.ModifyAdminsResponse" do
|
28
|
+
end
|
29
|
+
add_message "auth.TokenInfo" do
|
30
|
+
optional :subject, :string, 1
|
31
|
+
optional :source, :enum, 2, "auth.TokenInfo.TokenSource"
|
32
|
+
end
|
33
|
+
add_enum "auth.TokenInfo.TokenSource" do
|
34
|
+
value :INVALID, 0
|
35
|
+
value :AUTHENTICATE, 1
|
36
|
+
value :GET_TOKEN, 2
|
37
|
+
end
|
38
|
+
add_message "auth.AuthenticateRequest" do
|
39
|
+
optional :github_token, :string, 1
|
40
|
+
end
|
41
|
+
add_message "auth.AuthenticateResponse" do
|
42
|
+
optional :pach_token, :string, 1
|
43
|
+
end
|
44
|
+
add_message "auth.WhoAmIRequest" do
|
45
|
+
end
|
46
|
+
add_message "auth.WhoAmIResponse" do
|
47
|
+
optional :username, :string, 1
|
48
|
+
optional :is_admin, :bool, 2
|
49
|
+
end
|
50
|
+
add_message "auth.ACL" do
|
51
|
+
map :entries, :string, :enum, 1, "auth.Scope"
|
52
|
+
end
|
53
|
+
add_message "auth.Users" do
|
54
|
+
map :usernames, :string, :bool, 1
|
55
|
+
end
|
56
|
+
add_message "auth.Groups" do
|
57
|
+
map :groups, :string, :bool, 1
|
58
|
+
end
|
59
|
+
add_message "auth.AuthorizeRequest" do
|
60
|
+
optional :repo, :string, 1
|
61
|
+
optional :scope, :enum, 2, "auth.Scope"
|
62
|
+
end
|
63
|
+
add_message "auth.AuthorizeResponse" do
|
64
|
+
optional :authorized, :bool, 1
|
65
|
+
end
|
66
|
+
add_message "auth.GetScopeRequest" do
|
67
|
+
optional :username, :string, 1
|
68
|
+
repeated :repos, :string, 2
|
69
|
+
end
|
70
|
+
add_message "auth.GetScopeResponse" do
|
71
|
+
repeated :scopes, :enum, 1, "auth.Scope"
|
72
|
+
end
|
73
|
+
add_message "auth.SetScopeRequest" do
|
74
|
+
optional :username, :string, 1
|
75
|
+
optional :repo, :string, 2
|
76
|
+
optional :scope, :enum, 3, "auth.Scope"
|
77
|
+
end
|
78
|
+
add_message "auth.SetScopeResponse" do
|
79
|
+
end
|
80
|
+
add_message "auth.GetACLRequest" do
|
81
|
+
optional :repo, :string, 1
|
82
|
+
end
|
83
|
+
add_message "auth.ACLEntry" do
|
84
|
+
optional :username, :string, 1
|
85
|
+
optional :scope, :enum, 2, "auth.Scope"
|
86
|
+
end
|
87
|
+
add_message "auth.GetACLResponse" do
|
88
|
+
repeated :entries, :message, 1, "auth.ACLEntry"
|
89
|
+
repeated :robot_entries, :message, 2, "auth.ACLEntry"
|
90
|
+
end
|
91
|
+
add_message "auth.SetACLRequest" do
|
92
|
+
optional :repo, :string, 1
|
93
|
+
repeated :entries, :message, 2, "auth.ACLEntry"
|
94
|
+
end
|
95
|
+
add_message "auth.SetACLResponse" do
|
96
|
+
end
|
97
|
+
add_message "auth.GetAuthTokenRequest" do
|
98
|
+
optional :subject, :string, 1
|
99
|
+
optional :ttl, :int64, 2
|
100
|
+
end
|
101
|
+
add_message "auth.GetAuthTokenResponse" do
|
102
|
+
optional :subject, :string, 2
|
103
|
+
optional :token, :string, 1
|
104
|
+
end
|
105
|
+
add_message "auth.ExtendAuthTokenRequest" do
|
106
|
+
optional :token, :string, 1
|
107
|
+
optional :ttl, :int64, 2
|
108
|
+
end
|
109
|
+
add_message "auth.ExtendAuthTokenResponse" do
|
110
|
+
end
|
111
|
+
add_message "auth.RevokeAuthTokenRequest" do
|
112
|
+
optional :token, :string, 1
|
113
|
+
end
|
114
|
+
add_message "auth.RevokeAuthTokenResponse" do
|
115
|
+
end
|
116
|
+
add_message "auth.SetGroupsForUserRequest" do
|
117
|
+
optional :username, :string, 1
|
118
|
+
repeated :groups, :string, 2
|
119
|
+
end
|
120
|
+
add_message "auth.SetGroupsForUserResponse" do
|
121
|
+
end
|
122
|
+
add_message "auth.ModifyMembersRequest" do
|
123
|
+
optional :group, :string, 1
|
124
|
+
repeated :add, :string, 2
|
125
|
+
repeated :remove, :string, 3
|
126
|
+
end
|
127
|
+
add_message "auth.ModifyMembersResponse" do
|
128
|
+
end
|
129
|
+
add_message "auth.GetGroupsRequest" do
|
130
|
+
optional :username, :string, 1
|
131
|
+
end
|
132
|
+
add_message "auth.GetGroupsResponse" do
|
133
|
+
repeated :groups, :string, 1
|
134
|
+
end
|
135
|
+
add_message "auth.GetUsersRequest" do
|
136
|
+
optional :group, :string, 1
|
137
|
+
end
|
138
|
+
add_message "auth.GetUsersResponse" do
|
139
|
+
repeated :usernames, :string, 1
|
140
|
+
end
|
141
|
+
add_enum "auth.Scope" do
|
142
|
+
value :NONE, 0
|
143
|
+
value :READER, 1
|
144
|
+
value :WRITER, 2
|
145
|
+
value :OWNER, 3
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
module Auth
|
150
|
+
ActivateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.ActivateRequest").msgclass
|
151
|
+
ActivateResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.ActivateResponse").msgclass
|
152
|
+
DeactivateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.DeactivateRequest").msgclass
|
153
|
+
DeactivateResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.DeactivateResponse").msgclass
|
154
|
+
GetAdminsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.GetAdminsRequest").msgclass
|
155
|
+
GetAdminsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.GetAdminsResponse").msgclass
|
156
|
+
ModifyAdminsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.ModifyAdminsRequest").msgclass
|
157
|
+
ModifyAdminsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.ModifyAdminsResponse").msgclass
|
158
|
+
TokenInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.TokenInfo").msgclass
|
159
|
+
TokenInfo::TokenSource = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.TokenInfo.TokenSource").enummodule
|
160
|
+
AuthenticateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.AuthenticateRequest").msgclass
|
161
|
+
AuthenticateResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.AuthenticateResponse").msgclass
|
162
|
+
WhoAmIRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.WhoAmIRequest").msgclass
|
163
|
+
WhoAmIResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.WhoAmIResponse").msgclass
|
164
|
+
ACL = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.ACL").msgclass
|
165
|
+
Users = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.Users").msgclass
|
166
|
+
Groups = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.Groups").msgclass
|
167
|
+
AuthorizeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.AuthorizeRequest").msgclass
|
168
|
+
AuthorizeResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.AuthorizeResponse").msgclass
|
169
|
+
GetScopeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.GetScopeRequest").msgclass
|
170
|
+
GetScopeResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.GetScopeResponse").msgclass
|
171
|
+
SetScopeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.SetScopeRequest").msgclass
|
172
|
+
SetScopeResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.SetScopeResponse").msgclass
|
173
|
+
GetACLRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.GetACLRequest").msgclass
|
174
|
+
ACLEntry = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.ACLEntry").msgclass
|
175
|
+
GetACLResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.GetACLResponse").msgclass
|
176
|
+
SetACLRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.SetACLRequest").msgclass
|
177
|
+
SetACLResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.SetACLResponse").msgclass
|
178
|
+
GetAuthTokenRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.GetAuthTokenRequest").msgclass
|
179
|
+
GetAuthTokenResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.GetAuthTokenResponse").msgclass
|
180
|
+
ExtendAuthTokenRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.ExtendAuthTokenRequest").msgclass
|
181
|
+
ExtendAuthTokenResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.ExtendAuthTokenResponse").msgclass
|
182
|
+
RevokeAuthTokenRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.RevokeAuthTokenRequest").msgclass
|
183
|
+
RevokeAuthTokenResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.RevokeAuthTokenResponse").msgclass
|
184
|
+
SetGroupsForUserRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.SetGroupsForUserRequest").msgclass
|
185
|
+
SetGroupsForUserResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.SetGroupsForUserResponse").msgclass
|
186
|
+
ModifyMembersRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.ModifyMembersRequest").msgclass
|
187
|
+
ModifyMembersResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.ModifyMembersResponse").msgclass
|
188
|
+
GetGroupsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.GetGroupsRequest").msgclass
|
189
|
+
GetGroupsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.GetGroupsResponse").msgclass
|
190
|
+
GetUsersRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.GetUsersRequest").msgclass
|
191
|
+
GetUsersResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.GetUsersResponse").msgclass
|
192
|
+
Scope = Google::Protobuf::DescriptorPool.generated_pool.lookup("auth.Scope").enummodule
|
193
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: client/auth/auth.proto for package 'auth'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'client/auth/auth_pb'
|
6
|
+
|
7
|
+
module Auth
|
8
|
+
module API
|
9
|
+
class Service
|
10
|
+
|
11
|
+
include GRPC::GenericService
|
12
|
+
|
13
|
+
self.marshal_class_method = :encode
|
14
|
+
self.unmarshal_class_method = :decode
|
15
|
+
self.service_name = 'auth.API'
|
16
|
+
|
17
|
+
# Activate/Deactivate the auth API. 'Activate' sets an initial set of admins
|
18
|
+
# for the Pachyderm cluster, and 'Deactivate' removes all ACLs, tokens, and
|
19
|
+
# admins from the Pachyderm cluster, making all data publicly accessable
|
20
|
+
rpc :Activate, ActivateRequest, ActivateResponse
|
21
|
+
rpc :Deactivate, DeactivateRequest, DeactivateResponse
|
22
|
+
# GetAdmins returns the current list of cluster admins
|
23
|
+
rpc :GetAdmins, GetAdminsRequest, GetAdminsResponse
|
24
|
+
# ModifyAdmins adds or removes admins from the cluster
|
25
|
+
rpc :ModifyAdmins, ModifyAdminsRequest, ModifyAdminsResponse
|
26
|
+
rpc :Authenticate, AuthenticateRequest, AuthenticateResponse
|
27
|
+
rpc :Authorize, AuthorizeRequest, AuthorizeResponse
|
28
|
+
rpc :WhoAmI, WhoAmIRequest, WhoAmIResponse
|
29
|
+
rpc :GetScope, GetScopeRequest, GetScopeResponse
|
30
|
+
rpc :SetScope, SetScopeRequest, SetScopeResponse
|
31
|
+
rpc :GetACL, GetACLRequest, GetACLResponse
|
32
|
+
rpc :SetACL, SetACLRequest, SetACLResponse
|
33
|
+
rpc :GetAuthToken, GetAuthTokenRequest, GetAuthTokenResponse
|
34
|
+
rpc :ExtendAuthToken, ExtendAuthTokenRequest, ExtendAuthTokenResponse
|
35
|
+
rpc :RevokeAuthToken, RevokeAuthTokenRequest, RevokeAuthTokenResponse
|
36
|
+
rpc :SetGroupsForUser, SetGroupsForUserRequest, SetGroupsForUserResponse
|
37
|
+
rpc :ModifyMembers, ModifyMembersRequest, ModifyMembersResponse
|
38
|
+
rpc :GetGroups, GetGroupsRequest, GetGroupsResponse
|
39
|
+
rpc :GetUsers, GetUsersRequest, GetUsersResponse
|
40
|
+
end
|
41
|
+
|
42
|
+
Stub = Service.rpc_stub_class
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: client/deploy/deploy.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_message "deploy.DeployStorageSecretRequest" do
|
8
|
+
map :secrets, :string, :bytes, 1
|
9
|
+
end
|
10
|
+
add_message "deploy.DeployStorageSecretResponse" do
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
module Deploy
|
15
|
+
DeployStorageSecretRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("deploy.DeployStorageSecretRequest").msgclass
|
16
|
+
DeployStorageSecretResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("deploy.DeployStorageSecretResponse").msgclass
|
17
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: client/deploy/deploy.proto for package 'deploy'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'client/deploy/deploy_pb'
|
6
|
+
|
7
|
+
module Deploy
|
8
|
+
module API
|
9
|
+
class Service
|
10
|
+
|
11
|
+
include GRPC::GenericService
|
12
|
+
|
13
|
+
self.marshal_class_method = :encode
|
14
|
+
self.unmarshal_class_method = :decode
|
15
|
+
self.service_name = 'deploy.API'
|
16
|
+
|
17
|
+
rpc :DeployStorageSecret, DeployStorageSecretRequest, DeployStorageSecretResponse
|
18
|
+
end
|
19
|
+
|
20
|
+
Stub = Service.rpc_stub_class
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: client/enterprise/enterprise.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/protobuf/timestamp_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_message "enterprise.EnterpriseRecord" do
|
9
|
+
optional :activation_code, :string, 1
|
10
|
+
optional :expires, :message, 2, "google.protobuf.Timestamp"
|
11
|
+
end
|
12
|
+
add_message "enterprise.TokenInfo" do
|
13
|
+
optional :expires, :message, 1, "google.protobuf.Timestamp"
|
14
|
+
end
|
15
|
+
add_message "enterprise.ActivateRequest" do
|
16
|
+
optional :activation_code, :string, 1
|
17
|
+
optional :expires, :message, 2, "google.protobuf.Timestamp"
|
18
|
+
end
|
19
|
+
add_message "enterprise.ActivateResponse" do
|
20
|
+
optional :info, :message, 1, "enterprise.TokenInfo"
|
21
|
+
end
|
22
|
+
add_message "enterprise.GetStateRequest" do
|
23
|
+
end
|
24
|
+
add_message "enterprise.GetStateResponse" do
|
25
|
+
optional :state, :enum, 1, "enterprise.State"
|
26
|
+
optional :info, :message, 2, "enterprise.TokenInfo"
|
27
|
+
end
|
28
|
+
add_message "enterprise.DeactivateRequest" do
|
29
|
+
end
|
30
|
+
add_message "enterprise.DeactivateResponse" do
|
31
|
+
end
|
32
|
+
add_enum "enterprise.State" do
|
33
|
+
value :NONE, 0
|
34
|
+
value :ACTIVE, 1
|
35
|
+
value :EXPIRED, 2
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
module Enterprise
|
40
|
+
EnterpriseRecord = Google::Protobuf::DescriptorPool.generated_pool.lookup("enterprise.EnterpriseRecord").msgclass
|
41
|
+
TokenInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("enterprise.TokenInfo").msgclass
|
42
|
+
ActivateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("enterprise.ActivateRequest").msgclass
|
43
|
+
ActivateResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("enterprise.ActivateResponse").msgclass
|
44
|
+
GetStateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("enterprise.GetStateRequest").msgclass
|
45
|
+
GetStateResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("enterprise.GetStateResponse").msgclass
|
46
|
+
DeactivateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("enterprise.DeactivateRequest").msgclass
|
47
|
+
DeactivateResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("enterprise.DeactivateResponse").msgclass
|
48
|
+
State = Google::Protobuf::DescriptorPool.generated_pool.lookup("enterprise.State").enummodule
|
49
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: client/enterprise/enterprise.proto for package 'enterprise'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'client/enterprise/enterprise_pb'
|
6
|
+
|
7
|
+
module Enterprise
|
8
|
+
module API
|
9
|
+
class Service
|
10
|
+
|
11
|
+
include GRPC::GenericService
|
12
|
+
|
13
|
+
self.marshal_class_method = :encode
|
14
|
+
self.unmarshal_class_method = :decode
|
15
|
+
self.service_name = 'enterprise.API'
|
16
|
+
|
17
|
+
# Provide a Pachyderm enterprise token, enabling Pachyderm enterprise
|
18
|
+
# features, such as the Pachyderm Dashboard and Auth system
|
19
|
+
rpc :Activate, ActivateRequest, ActivateResponse
|
20
|
+
rpc :GetState, GetStateRequest, GetStateResponse
|
21
|
+
# Deactivate is a testing API. It removes a cluster's enterprise activation
|
22
|
+
# token and sets its enterprise state to NONE (normally, once a cluster has
|
23
|
+
# been activated, the only reachable state is EXPIRED).
|
24
|
+
#
|
25
|
+
# NOTE: This endpoint also calls DeleteAll (and deletes all Pachyderm data in
|
26
|
+
# its cluster). This is to avoid dealing with invalid, intermediate states
|
27
|
+
# (e.g. auth is activated but enterprise state is NONE)
|
28
|
+
rpc :Deactivate, DeactivateRequest, DeactivateResponse
|
29
|
+
end
|
30
|
+
|
31
|
+
Stub = Service.rpc_stub_class
|
32
|
+
end
|
33
|
+
end
|