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.

174 lines
6.0 KiB

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.
  2. // source: iam.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package iam_pb is a generated protocol buffer package.
  6. It is generated from these files:
  7. iam.proto
  8. It has these top-level messages:
  9. S3ApiConfiguration
  10. Identity
  11. Credential
  12. */
  13. package iam_pb
  14. import proto "github.com/golang/protobuf/proto"
  15. import fmt "fmt"
  16. import math "math"
  17. import (
  18. context "golang.org/x/net/context"
  19. grpc "google.golang.org/grpc"
  20. )
  21. // Reference imports to suppress errors if they are not otherwise used.
  22. var _ = proto.Marshal
  23. var _ = fmt.Errorf
  24. var _ = math.Inf
  25. // This is a compile-time assertion to ensure that this generated file
  26. // is compatible with the proto package it is being compiled against.
  27. // A compilation error at this line likely means your copy of the
  28. // proto package needs to be updated.
  29. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  30. type S3ApiConfiguration struct {
  31. Identities []*Identity `protobuf:"bytes,1,rep,name=identities" json:"identities,omitempty"`
  32. }
  33. func (m *S3ApiConfiguration) Reset() { *m = S3ApiConfiguration{} }
  34. func (m *S3ApiConfiguration) String() string { return proto.CompactTextString(m) }
  35. func (*S3ApiConfiguration) ProtoMessage() {}
  36. func (*S3ApiConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  37. func (m *S3ApiConfiguration) GetIdentities() []*Identity {
  38. if m != nil {
  39. return m.Identities
  40. }
  41. return nil
  42. }
  43. type Identity struct {
  44. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  45. Credentials []*Credential `protobuf:"bytes,2,rep,name=credentials" json:"credentials,omitempty"`
  46. Actions []string `protobuf:"bytes,3,rep,name=actions" json:"actions,omitempty"`
  47. }
  48. func (m *Identity) Reset() { *m = Identity{} }
  49. func (m *Identity) String() string { return proto.CompactTextString(m) }
  50. func (*Identity) ProtoMessage() {}
  51. func (*Identity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  52. func (m *Identity) GetName() string {
  53. if m != nil {
  54. return m.Name
  55. }
  56. return ""
  57. }
  58. func (m *Identity) GetCredentials() []*Credential {
  59. if m != nil {
  60. return m.Credentials
  61. }
  62. return nil
  63. }
  64. func (m *Identity) GetActions() []string {
  65. if m != nil {
  66. return m.Actions
  67. }
  68. return nil
  69. }
  70. type Credential struct {
  71. AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey" json:"access_key,omitempty"`
  72. SecretKey string `protobuf:"bytes,2,opt,name=secret_key,json=secretKey" json:"secret_key,omitempty"`
  73. }
  74. func (m *Credential) Reset() { *m = Credential{} }
  75. func (m *Credential) String() string { return proto.CompactTextString(m) }
  76. func (*Credential) ProtoMessage() {}
  77. func (*Credential) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  78. func (m *Credential) GetAccessKey() string {
  79. if m != nil {
  80. return m.AccessKey
  81. }
  82. return ""
  83. }
  84. func (m *Credential) GetSecretKey() string {
  85. if m != nil {
  86. return m.SecretKey
  87. }
  88. return ""
  89. }
  90. func init() {
  91. proto.RegisterType((*S3ApiConfiguration)(nil), "iam_pb.S3ApiConfiguration")
  92. proto.RegisterType((*Identity)(nil), "iam_pb.Identity")
  93. proto.RegisterType((*Credential)(nil), "iam_pb.Credential")
  94. }
  95. // Reference imports to suppress errors if they are not otherwise used.
  96. var _ context.Context
  97. var _ grpc.ClientConn
  98. // This is a compile-time assertion to ensure that this generated file
  99. // is compatible with the grpc package it is being compiled against.
  100. const _ = grpc.SupportPackageIsVersion4
  101. // Client API for SeaweedIdentityAccessManagement service
  102. type SeaweedIdentityAccessManagementClient interface {
  103. }
  104. type seaweedIdentityAccessManagementClient struct {
  105. cc *grpc.ClientConn
  106. }
  107. func NewSeaweedIdentityAccessManagementClient(cc *grpc.ClientConn) SeaweedIdentityAccessManagementClient {
  108. return &seaweedIdentityAccessManagementClient{cc}
  109. }
  110. // Server API for SeaweedIdentityAccessManagement service
  111. type SeaweedIdentityAccessManagementServer interface {
  112. }
  113. func RegisterSeaweedIdentityAccessManagementServer(s *grpc.Server, srv SeaweedIdentityAccessManagementServer) {
  114. s.RegisterService(&_SeaweedIdentityAccessManagement_serviceDesc, srv)
  115. }
  116. var _SeaweedIdentityAccessManagement_serviceDesc = grpc.ServiceDesc{
  117. ServiceName: "iam_pb.SeaweedIdentityAccessManagement",
  118. HandlerType: (*SeaweedIdentityAccessManagementServer)(nil),
  119. Methods: []grpc.MethodDesc{},
  120. Streams: []grpc.StreamDesc{},
  121. Metadata: "iam.proto",
  122. }
  123. func init() { proto.RegisterFile("iam.proto", fileDescriptor0) }
  124. var fileDescriptor0 = []byte{
  125. // 250 bytes of a gzipped FileDescriptorProto
  126. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x4c, 0x90, 0x41, 0x4b, 0xc3, 0x40,
  127. 0x10, 0x85, 0x69, 0x23, 0xb5, 0x99, 0x5e, 0xca, 0x9c, 0xf6, 0xa0, 0x18, 0x73, 0xca, 0x29, 0x48,
  128. 0xeb, 0x1f, 0xa8, 0x05, 0xa1, 0x16, 0x41, 0xd2, 0x1f, 0x50, 0xa6, 0xdb, 0x69, 0x19, 0xec, 0x6e,
  129. 0x42, 0x76, 0x45, 0xf2, 0xef, 0x25, 0xbb, 0x46, 0x7b, 0xdb, 0x7d, 0xdf, 0x7b, 0xb3, 0x3b, 0x0f,
  130. 0x52, 0x21, 0x53, 0x36, 0x6d, 0xed, 0x6b, 0x9c, 0x08, 0x99, 0x7d, 0x73, 0xc8, 0x5f, 0x01, 0x77,
  131. 0xcb, 0x55, 0x23, 0xeb, 0xda, 0x9e, 0xe4, 0xfc, 0xd5, 0x92, 0x97, 0xda, 0xe2, 0x13, 0x80, 0x1c,
  132. 0xd9, 0x7a, 0xf1, 0xc2, 0x4e, 0x8d, 0xb2, 0xa4, 0x98, 0x2d, 0xe6, 0x65, 0x8c, 0x94, 0x9b, 0x48,
  133. 0xba, 0xea, 0xca, 0x93, 0x5b, 0x98, 0x0e, 0x3a, 0x22, 0xdc, 0x58, 0x32, 0xac, 0x46, 0xd9, 0xa8,
  134. 0x48, 0xab, 0x70, 0xc6, 0x67, 0x98, 0xe9, 0x96, 0x83, 0x83, 0x2e, 0x4e, 0x8d, 0xc3, 0x48, 0x1c,
  135. 0x46, 0xae, 0xff, 0x50, 0x75, 0x6d, 0x43, 0x05, 0xb7, 0xa4, 0xfb, 0x1f, 0x39, 0x95, 0x64, 0x49,
  136. 0x91, 0x56, 0xc3, 0x35, 0x7f, 0x03, 0xf8, 0x0f, 0xe1, 0x3d, 0x00, 0x69, 0xcd, 0xce, 0xed, 0x3f,
  137. 0xb9, 0xfb, 0x7d, 0x37, 0x8d, 0xca, 0x96, 0xbb, 0x1e, 0x3b, 0xd6, 0x2d, 0xfb, 0x80, 0xc7, 0x11,
  138. 0x47, 0x65, 0xcb, 0xdd, 0xe2, 0x11, 0x1e, 0x76, 0x4c, 0xdf, 0xcc, 0xc7, 0x61, 0x85, 0x55, 0x88,
  139. 0xbe, 0x93, 0xa5, 0x33, 0x1b, 0xb6, 0xfe, 0xe5, 0x0e, 0xe6, 0x2e, 0x5a, 0x4e, 0xae, 0xd4, 0x17,
  140. 0xe9, 0xb5, 0xe9, 0x86, 0xcc, 0x47, 0x5f, 0xe6, 0x61, 0x12, 0x3a, 0x5d, 0xfe, 0x04, 0x00, 0x00,
  141. 0xff, 0xff, 0x83, 0x4f, 0x61, 0x03, 0x60, 0x01, 0x00, 0x00,
  142. }