You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

356 lines
11 KiB

5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.12.3
  5. // source: iam.proto
  6. package iam_pb
  7. import (
  8. context "context"
  9. proto "github.com/golang/protobuf/proto"
  10. grpc "google.golang.org/grpc"
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13. reflect "reflect"
  14. sync "sync"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. // This is a compile-time assertion that a sufficiently up-to-date version
  23. // of the legacy proto package is being used.
  24. const _ = proto.ProtoPackageIsVersion4
  25. type S3ApiConfiguration struct {
  26. state protoimpl.MessageState
  27. sizeCache protoimpl.SizeCache
  28. unknownFields protoimpl.UnknownFields
  29. Identities []*Identity `protobuf:"bytes,1,rep,name=identities,proto3" json:"identities,omitempty"`
  30. }
  31. func (x *S3ApiConfiguration) Reset() {
  32. *x = S3ApiConfiguration{}
  33. if protoimpl.UnsafeEnabled {
  34. mi := &file_iam_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. }
  39. func (x *S3ApiConfiguration) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*S3ApiConfiguration) ProtoMessage() {}
  43. func (x *S3ApiConfiguration) ProtoReflect() protoreflect.Message {
  44. mi := &file_iam_proto_msgTypes[0]
  45. if protoimpl.UnsafeEnabled && x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use S3ApiConfiguration.ProtoReflect.Descriptor instead.
  55. func (*S3ApiConfiguration) Descriptor() ([]byte, []int) {
  56. return file_iam_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *S3ApiConfiguration) GetIdentities() []*Identity {
  59. if x != nil {
  60. return x.Identities
  61. }
  62. return nil
  63. }
  64. type Identity struct {
  65. state protoimpl.MessageState
  66. sizeCache protoimpl.SizeCache
  67. unknownFields protoimpl.UnknownFields
  68. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  69. Credentials []*Credential `protobuf:"bytes,2,rep,name=credentials,proto3" json:"credentials,omitempty"`
  70. Actions []string `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
  71. }
  72. func (x *Identity) Reset() {
  73. *x = Identity{}
  74. if protoimpl.UnsafeEnabled {
  75. mi := &file_iam_proto_msgTypes[1]
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. ms.StoreMessageInfo(mi)
  78. }
  79. }
  80. func (x *Identity) String() string {
  81. return protoimpl.X.MessageStringOf(x)
  82. }
  83. func (*Identity) ProtoMessage() {}
  84. func (x *Identity) ProtoReflect() protoreflect.Message {
  85. mi := &file_iam_proto_msgTypes[1]
  86. if protoimpl.UnsafeEnabled && x != nil {
  87. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88. if ms.LoadMessageInfo() == nil {
  89. ms.StoreMessageInfo(mi)
  90. }
  91. return ms
  92. }
  93. return mi.MessageOf(x)
  94. }
  95. // Deprecated: Use Identity.ProtoReflect.Descriptor instead.
  96. func (*Identity) Descriptor() ([]byte, []int) {
  97. return file_iam_proto_rawDescGZIP(), []int{1}
  98. }
  99. func (x *Identity) GetName() string {
  100. if x != nil {
  101. return x.Name
  102. }
  103. return ""
  104. }
  105. func (x *Identity) GetCredentials() []*Credential {
  106. if x != nil {
  107. return x.Credentials
  108. }
  109. return nil
  110. }
  111. func (x *Identity) GetActions() []string {
  112. if x != nil {
  113. return x.Actions
  114. }
  115. return nil
  116. }
  117. type Credential struct {
  118. state protoimpl.MessageState
  119. sizeCache protoimpl.SizeCache
  120. unknownFields protoimpl.UnknownFields
  121. AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
  122. SecretKey string `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
  123. }
  124. func (x *Credential) Reset() {
  125. *x = Credential{}
  126. if protoimpl.UnsafeEnabled {
  127. mi := &file_iam_proto_msgTypes[2]
  128. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  129. ms.StoreMessageInfo(mi)
  130. }
  131. }
  132. func (x *Credential) String() string {
  133. return protoimpl.X.MessageStringOf(x)
  134. }
  135. func (*Credential) ProtoMessage() {}
  136. func (x *Credential) ProtoReflect() protoreflect.Message {
  137. mi := &file_iam_proto_msgTypes[2]
  138. if protoimpl.UnsafeEnabled && x != nil {
  139. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  140. if ms.LoadMessageInfo() == nil {
  141. ms.StoreMessageInfo(mi)
  142. }
  143. return ms
  144. }
  145. return mi.MessageOf(x)
  146. }
  147. // Deprecated: Use Credential.ProtoReflect.Descriptor instead.
  148. func (*Credential) Descriptor() ([]byte, []int) {
  149. return file_iam_proto_rawDescGZIP(), []int{2}
  150. }
  151. func (x *Credential) GetAccessKey() string {
  152. if x != nil {
  153. return x.AccessKey
  154. }
  155. return ""
  156. }
  157. func (x *Credential) GetSecretKey() string {
  158. if x != nil {
  159. return x.SecretKey
  160. }
  161. return ""
  162. }
  163. var File_iam_proto protoreflect.FileDescriptor
  164. var file_iam_proto_rawDesc = []byte{
  165. 0x0a, 0x09, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x69, 0x61, 0x6d,
  166. 0x5f, 0x70, 0x62, 0x22, 0x46, 0x0a, 0x12, 0x53, 0x33, 0x41, 0x70, 0x69, 0x43, 0x6f, 0x6e, 0x66,
  167. 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x0a, 0x69, 0x64, 0x65,
  168. 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e,
  169. 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x62, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52,
  170. 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x6e, 0x0a, 0x08, 0x49,
  171. 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
  172. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x0b, 0x63,
  173. 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
  174. 0x32, 0x12, 0x2e, 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e,
  175. 0x74, 0x69, 0x61, 0x6c, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
  176. 0x73, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03,
  177. 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x4a, 0x0a, 0x0a, 0x43,
  178. 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63,
  179. 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61,
  180. 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72,
  181. 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65,
  182. 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x32, 0x21, 0x0a, 0x1f, 0x53, 0x65, 0x61, 0x77, 0x65,
  183. 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
  184. 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x4b, 0x0a, 0x10, 0x73, 0x65,
  185. 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x08,
  186. 0x49, 0x61, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
  187. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x68, 0x72, 0x69, 0x73, 0x6c, 0x75, 0x73, 0x66, 0x2f, 0x73,
  188. 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62,
  189. 0x2f, 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  190. }
  191. var (
  192. file_iam_proto_rawDescOnce sync.Once
  193. file_iam_proto_rawDescData = file_iam_proto_rawDesc
  194. )
  195. func file_iam_proto_rawDescGZIP() []byte {
  196. file_iam_proto_rawDescOnce.Do(func() {
  197. file_iam_proto_rawDescData = protoimpl.X.CompressGZIP(file_iam_proto_rawDescData)
  198. })
  199. return file_iam_proto_rawDescData
  200. }
  201. var file_iam_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  202. var file_iam_proto_goTypes = []interface{}{
  203. (*S3ApiConfiguration)(nil), // 0: iam_pb.S3ApiConfiguration
  204. (*Identity)(nil), // 1: iam_pb.Identity
  205. (*Credential)(nil), // 2: iam_pb.Credential
  206. }
  207. var file_iam_proto_depIdxs = []int32{
  208. 1, // 0: iam_pb.S3ApiConfiguration.identities:type_name -> iam_pb.Identity
  209. 2, // 1: iam_pb.Identity.credentials:type_name -> iam_pb.Credential
  210. 2, // [2:2] is the sub-list for method output_type
  211. 2, // [2:2] is the sub-list for method input_type
  212. 2, // [2:2] is the sub-list for extension type_name
  213. 2, // [2:2] is the sub-list for extension extendee
  214. 0, // [0:2] is the sub-list for field type_name
  215. }
  216. func init() { file_iam_proto_init() }
  217. func file_iam_proto_init() {
  218. if File_iam_proto != nil {
  219. return
  220. }
  221. if !protoimpl.UnsafeEnabled {
  222. file_iam_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  223. switch v := v.(*S3ApiConfiguration); i {
  224. case 0:
  225. return &v.state
  226. case 1:
  227. return &v.sizeCache
  228. case 2:
  229. return &v.unknownFields
  230. default:
  231. return nil
  232. }
  233. }
  234. file_iam_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  235. switch v := v.(*Identity); i {
  236. case 0:
  237. return &v.state
  238. case 1:
  239. return &v.sizeCache
  240. case 2:
  241. return &v.unknownFields
  242. default:
  243. return nil
  244. }
  245. }
  246. file_iam_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  247. switch v := v.(*Credential); i {
  248. case 0:
  249. return &v.state
  250. case 1:
  251. return &v.sizeCache
  252. case 2:
  253. return &v.unknownFields
  254. default:
  255. return nil
  256. }
  257. }
  258. }
  259. type x struct{}
  260. out := protoimpl.TypeBuilder{
  261. File: protoimpl.DescBuilder{
  262. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  263. RawDescriptor: file_iam_proto_rawDesc,
  264. NumEnums: 0,
  265. NumMessages: 3,
  266. NumExtensions: 0,
  267. NumServices: 1,
  268. },
  269. GoTypes: file_iam_proto_goTypes,
  270. DependencyIndexes: file_iam_proto_depIdxs,
  271. MessageInfos: file_iam_proto_msgTypes,
  272. }.Build()
  273. File_iam_proto = out.File
  274. file_iam_proto_rawDesc = nil
  275. file_iam_proto_goTypes = nil
  276. file_iam_proto_depIdxs = nil
  277. }
  278. // Reference imports to suppress errors if they are not otherwise used.
  279. var _ context.Context
  280. var _ grpc.ClientConnInterface
  281. // This is a compile-time assertion to ensure that this generated file
  282. // is compatible with the grpc package it is being compiled against.
  283. const _ = grpc.SupportPackageIsVersion6
  284. // SeaweedIdentityAccessManagementClient is the client API for SeaweedIdentityAccessManagement service.
  285. //
  286. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  287. type SeaweedIdentityAccessManagementClient interface {
  288. }
  289. type seaweedIdentityAccessManagementClient struct {
  290. cc grpc.ClientConnInterface
  291. }
  292. func NewSeaweedIdentityAccessManagementClient(cc grpc.ClientConnInterface) SeaweedIdentityAccessManagementClient {
  293. return &seaweedIdentityAccessManagementClient{cc}
  294. }
  295. // SeaweedIdentityAccessManagementServer is the server API for SeaweedIdentityAccessManagement service.
  296. type SeaweedIdentityAccessManagementServer interface {
  297. }
  298. // UnimplementedSeaweedIdentityAccessManagementServer can be embedded to have forward compatible implementations.
  299. type UnimplementedSeaweedIdentityAccessManagementServer struct {
  300. }
  301. func RegisterSeaweedIdentityAccessManagementServer(s *grpc.Server, srv SeaweedIdentityAccessManagementServer) {
  302. s.RegisterService(&_SeaweedIdentityAccessManagement_serviceDesc, srv)
  303. }
  304. var _SeaweedIdentityAccessManagement_serviceDesc = grpc.ServiceDesc{
  305. ServiceName: "iam_pb.SeaweedIdentityAccessManagement",
  306. HandlerType: (*SeaweedIdentityAccessManagementServer)(nil),
  307. Methods: []grpc.MethodDesc{},
  308. Streams: []grpc.StreamDesc{},
  309. Metadata: "iam.proto",
  310. }