@ -1,18 +1,17 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v6.33.1
// protoc v6.33.4
// source: iam.proto
package iam_pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
@ -82,6 +81,166 @@ func (x *S3ApiConfiguration) GetServiceAccounts() []*ServiceAccount {
return nil
}
type GetS3ApiConfigurationRequest struct {
state protoimpl . MessageState ` protogen:"open.v1" `
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
}
func ( x * GetS3ApiConfigurationRequest ) Reset ( ) {
* x = GetS3ApiConfigurationRequest { }
mi := & file_iam_proto_msgTypes [ 1 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
func ( x * GetS3ApiConfigurationRequest ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * GetS3ApiConfigurationRequest ) ProtoMessage ( ) { }
func ( x * GetS3ApiConfigurationRequest ) ProtoReflect ( ) protoreflect . Message {
mi := & file_iam_proto_msgTypes [ 1 ]
if x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use GetS3ApiConfigurationRequest.ProtoReflect.Descriptor instead.
func ( * GetS3ApiConfigurationRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_iam_proto_rawDescGZIP ( ) , [ ] int { 1 }
}
type GetS3ApiConfigurationResponse struct {
state protoimpl . MessageState ` protogen:"open.v1" `
Config * S3ApiConfiguration ` protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty" `
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
}
func ( x * GetS3ApiConfigurationResponse ) Reset ( ) {
* x = GetS3ApiConfigurationResponse { }
mi := & file_iam_proto_msgTypes [ 2 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
func ( x * GetS3ApiConfigurationResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * GetS3ApiConfigurationResponse ) ProtoMessage ( ) { }
func ( x * GetS3ApiConfigurationResponse ) ProtoReflect ( ) protoreflect . Message {
mi := & file_iam_proto_msgTypes [ 2 ]
if x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use GetS3ApiConfigurationResponse.ProtoReflect.Descriptor instead.
func ( * GetS3ApiConfigurationResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_iam_proto_rawDescGZIP ( ) , [ ] int { 2 }
}
func ( x * GetS3ApiConfigurationResponse ) GetConfig ( ) * S3ApiConfiguration {
if x != nil {
return x . Config
}
return nil
}
type PutS3ApiConfigurationRequest struct {
state protoimpl . MessageState ` protogen:"open.v1" `
Config * S3ApiConfiguration ` protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty" `
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
}
func ( x * PutS3ApiConfigurationRequest ) Reset ( ) {
* x = PutS3ApiConfigurationRequest { }
mi := & file_iam_proto_msgTypes [ 3 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
func ( x * PutS3ApiConfigurationRequest ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * PutS3ApiConfigurationRequest ) ProtoMessage ( ) { }
func ( x * PutS3ApiConfigurationRequest ) ProtoReflect ( ) protoreflect . Message {
mi := & file_iam_proto_msgTypes [ 3 ]
if x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use PutS3ApiConfigurationRequest.ProtoReflect.Descriptor instead.
func ( * PutS3ApiConfigurationRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_iam_proto_rawDescGZIP ( ) , [ ] int { 3 }
}
func ( x * PutS3ApiConfigurationRequest ) GetConfig ( ) * S3ApiConfiguration {
if x != nil {
return x . Config
}
return nil
}
type PutS3ApiConfigurationResponse struct {
state protoimpl . MessageState ` protogen:"open.v1" `
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
}
func ( x * PutS3ApiConfigurationResponse ) Reset ( ) {
* x = PutS3ApiConfigurationResponse { }
mi := & file_iam_proto_msgTypes [ 4 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
func ( x * PutS3ApiConfigurationResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * PutS3ApiConfigurationResponse ) ProtoMessage ( ) { }
func ( x * PutS3ApiConfigurationResponse ) ProtoReflect ( ) protoreflect . Message {
mi := & file_iam_proto_msgTypes [ 4 ]
if x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use PutS3ApiConfigurationResponse.ProtoReflect.Descriptor instead.
func ( * PutS3ApiConfigurationResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_iam_proto_rawDescGZIP ( ) , [ ] int { 4 }
}
type Identity struct {
state protoimpl . MessageState ` protogen:"open.v1" `
Name string ` protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" `
@ -97,7 +256,7 @@ type Identity struct {
func ( x * Identity ) Reset ( ) {
* x = Identity { }
mi := & file_iam_proto_msgTypes [ 1 ]
mi := & file_iam_proto_msgTypes [ 5 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
@ -109,7 +268,7 @@ func (x *Identity) String() string {
func ( * Identity ) ProtoMessage ( ) { }
func ( x * Identity ) ProtoReflect ( ) protoreflect . Message {
mi := & file_iam_proto_msgTypes [ 1 ]
mi := & file_iam_proto_msgTypes [ 5 ]
if x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
@ -122,7 +281,7 @@ func (x *Identity) ProtoReflect() protoreflect.Message {
// Deprecated: Use Identity.ProtoReflect.Descriptor instead.
func ( * Identity ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_iam_proto_rawDescGZIP ( ) , [ ] int { 1 }
return file_iam_proto_rawDescGZIP ( ) , [ ] int { 5 }
}
func ( x * Identity ) GetName ( ) string {
@ -185,7 +344,7 @@ type Credential struct {
func ( x * Credential ) Reset ( ) {
* x = Credential { }
mi := & file_iam_proto_msgTypes [ 2 ]
mi := & file_iam_proto_msgTypes [ 6 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
@ -197,7 +356,7 @@ func (x *Credential) String() string {
func ( * Credential ) ProtoMessage ( ) { }
func ( x * Credential ) ProtoReflect ( ) protoreflect . Message {
mi := & file_iam_proto_msgTypes [ 2 ]
mi := & file_iam_proto_msgTypes [ 6 ]
if x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
@ -210,7 +369,7 @@ func (x *Credential) ProtoReflect() protoreflect.Message {
// Deprecated: Use Credential.ProtoReflect.Descriptor instead.
func ( * Credential ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_iam_proto_rawDescGZIP ( ) , [ ] int { 2 }
return file_iam_proto_rawDescGZIP ( ) , [ ] int { 6 }
}
func ( x * Credential ) GetAccessKey ( ) string {
@ -245,7 +404,7 @@ type Account struct {
func ( x * Account ) Reset ( ) {
* x = Account { }
mi := & file_iam_proto_msgTypes [ 3 ]
mi := & file_iam_proto_msgTypes [ 7 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
@ -257,7 +416,7 @@ func (x *Account) String() string {
func ( * Account ) ProtoMessage ( ) { }
func ( x * Account ) ProtoReflect ( ) protoreflect . Message {
mi := & file_iam_proto_msgTypes [ 3 ]
mi := & file_iam_proto_msgTypes [ 7 ]
if x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
@ -270,7 +429,7 @@ func (x *Account) ProtoReflect() protoreflect.Message {
// Deprecated: Use Account.ProtoReflect.Descriptor instead.
func ( * Account ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_iam_proto_rawDescGZIP ( ) , [ ] int { 3 }
return file_iam_proto_rawDescGZIP ( ) , [ ] int { 7 }
}
func ( x * Account ) GetId ( ) string {
@ -313,7 +472,7 @@ type ServiceAccount struct {
func ( x * ServiceAccount ) Reset ( ) {
* x = ServiceAccount { }
mi := & file_iam_proto_msgTypes [ 4 ]
mi := & file_iam_proto_msgTypes [ 8 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
@ -325,7 +484,7 @@ func (x *ServiceAccount) String() string {
func ( * ServiceAccount ) ProtoMessage ( ) { }
func ( x * ServiceAccount ) ProtoReflect ( ) protoreflect . Message {
mi := & file_iam_proto_msgTypes [ 4 ]
mi := & file_iam_proto_msgTypes [ 8 ]
if x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
@ -338,7 +497,7 @@ func (x *ServiceAccount) ProtoReflect() protoreflect.Message {
// Deprecated: Use ServiceAccount.ProtoReflect.Descriptor instead.
func ( * ServiceAccount ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_iam_proto_rawDescGZIP ( ) , [ ] int { 4 }
return file_iam_proto_rawDescGZIP ( ) , [ ] int { 8 }
}
func ( x * ServiceAccount ) GetId ( ) string {
@ -414,7 +573,13 @@ const file_iam_proto_rawDesc = "" +
"identities\x18\x01 \x03(\v2\x10.iam_pb.IdentityR\n" +
"identities\x12+\n" +
"\baccounts\x18\x02 \x03(\v2\x0f.iam_pb.AccountR\baccounts\x12A\n" +
"\x10service_accounts\x18\x03 \x03(\v2\x16.iam_pb.ServiceAccountR\x0fserviceAccounts\"\x88\x02\n" +
"\x10service_accounts\x18\x03 \x03(\v2\x16.iam_pb.ServiceAccountR\x0fserviceAccounts\"\x1e\n" +
"\x1cGetS3ApiConfigurationRequest\"S\n" +
"\x1dGetS3ApiConfigurationResponse\x122\n" +
"\x06config\x18\x01 \x01(\v2\x1a.iam_pb.S3ApiConfigurationR\x06config\"R\n" +
"\x1cPutS3ApiConfigurationRequest\x122\n" +
"\x06config\x18\x01 \x01(\v2\x1a.iam_pb.S3ApiConfigurationR\x06config\"\x1f\n" +
"\x1dPutS3ApiConfigurationResponse\"\x88\x02\n" +
"\bIdentity\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x124\n" +
"\vcredentials\x18\x02 \x03(\v2\x12.iam_pb.CredentialR\vcredentials\x12\x18\n" +
@ -450,8 +615,10 @@ const file_iam_proto_rawDesc = "" +
"\n" +
"created_at\x18\b \x01(\x03R\tcreatedAt\x12\x1d\n" +
"\n" +
"created_by\x18\t \x01(\tR\tcreatedBy2!\n" +
"\x1fSeaweedIdentityAccessManagementBK\n" +
"created_by\x18\t \x01(\tR\tcreatedBy2\xf1\x01\n" +
"\x1fSeaweedIdentityAccessManagement\x12f\n" +
"\x15GetS3ApiConfiguration\x12$.iam_pb.GetS3ApiConfigurationRequest\x1a%.iam_pb.GetS3ApiConfigurationResponse\"\x00\x12f\n" +
"\x15PutS3ApiConfiguration\x12$.iam_pb.PutS3ApiConfigurationRequest\x1a%.iam_pb.PutS3ApiConfigurationResponse\"\x00BK\n" +
"\x10seaweedfs.clientB\bIamProtoZ-github.com/seaweedfs/seaweedfs/weed/pb/iam_pbb\x06proto3"
var (
@ -466,26 +633,36 @@ func file_iam_proto_rawDescGZIP() []byte {
return file_iam_proto_rawDescData
}
var file_iam_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 5 )
var file_iam_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 9 )
var file_iam_proto_goTypes = [ ] any {
( * S3ApiConfiguration ) ( nil ) , // 0: iam_pb.S3ApiConfiguration
( * Identity ) ( nil ) , // 1: iam_pb.Identity
( * Credential ) ( nil ) , // 2: iam_pb.Credential
( * Account ) ( nil ) , // 3: iam_pb.Account
( * ServiceAccount ) ( nil ) , // 4: iam_pb.ServiceAccount
( * S3ApiConfiguration ) ( nil ) , // 0: iam_pb.S3ApiConfiguration
( * GetS3ApiConfigurationRequest ) ( nil ) , // 1: iam_pb.GetS3ApiConfigurationRequest
( * GetS3ApiConfigurationResponse ) ( nil ) , // 2: iam_pb.GetS3ApiConfigurationResponse
( * PutS3ApiConfigurationRequest ) ( nil ) , // 3: iam_pb.PutS3ApiConfigurationRequest
( * PutS3ApiConfigurationResponse ) ( nil ) , // 4: iam_pb.PutS3ApiConfigurationResponse
( * Identity ) ( nil ) , // 5: iam_pb.Identity
( * Credential ) ( nil ) , // 6: iam_pb.Credential
( * Account ) ( nil ) , // 7: iam_pb.Account
( * ServiceAccount ) ( nil ) , // 8: iam_pb.ServiceAccount
}
var file_iam_proto_depIdxs = [ ] int32 {
1 , // 0: iam_pb.S3ApiConfiguration.identities:type_name -> iam_pb.Identity
3 , // 1: iam_pb.S3ApiConfiguration.accounts:type_name -> iam_pb.Account
4 , // 2: iam_pb.S3ApiConfiguration.service_accounts:type_name -> iam_pb.ServiceAccount
2 , // 3: iam_pb.Identity.credentials:type_name -> iam_pb.Credential
3 , // 4: iam_pb.Identity.account:type_name -> iam_pb.Account
2 , // 5: iam_pb.ServiceAccount.credential:type_name -> iam_pb.Credential
6 , // [6:6] is the sub-list for method output_type
6 , // [6:6] is the sub-list for method input_type
6 , // [6:6] is the sub-list for extension type_name
6 , // [6:6] is the sub-list for extension extendee
0 , // [0:6] is the sub-list for field type_name
5 , // 0: iam_pb.S3ApiConfiguration.identities:type_name -> iam_pb.Identity
7 , // 1: iam_pb.S3ApiConfiguration.accounts:type_name -> iam_pb.Account
8 , // 2: iam_pb.S3ApiConfiguration.service_accounts:type_name -> iam_pb.ServiceAccount
0 , // 3: iam_pb.GetS3ApiConfigurationResponse.config:type_name -> iam_pb.S3ApiConfiguration
0 , // 4: iam_pb.PutS3ApiConfigurationRequest.config:type_name -> iam_pb.S3ApiConfiguration
6 , // 5: iam_pb.Identity.credentials:type_name -> iam_pb.Credential
7 , // 6: iam_pb.Identity.account:type_name -> iam_pb.Account
6 , // 7: iam_pb.ServiceAccount.credential:type_name -> iam_pb.Credential
1 , // 8: iam_pb.SeaweedIdentityAccessManagement.GetS3ApiConfiguration:input_type -> iam_pb.GetS3ApiConfigurationRequest
3 , // 9: iam_pb.SeaweedIdentityAccessManagement.PutS3ApiConfiguration:input_type -> iam_pb.PutS3ApiConfigurationRequest
2 , // 10: iam_pb.SeaweedIdentityAccessManagement.GetS3ApiConfiguration:output_type -> iam_pb.GetS3ApiConfigurationResponse
4 , // 11: iam_pb.SeaweedIdentityAccessManagement.PutS3ApiConfiguration:output_type -> iam_pb.PutS3ApiConfigurationResponse
10 , // [10:12] is the sub-list for method output_type
8 , // [8:10] is the sub-list for method input_type
8 , // [8:8] is the sub-list for extension type_name
8 , // [8:8] is the sub-list for extension extendee
0 , // [0:8] is the sub-list for field type_name
}
func init ( ) { file_iam_proto_init ( ) }
@ -499,7 +676,7 @@ func file_iam_proto_init() {
GoPackagePath : reflect . TypeOf ( x { } ) . PkgPath ( ) ,
RawDescriptor : unsafe . Slice ( unsafe . StringData ( file_iam_proto_rawDesc ) , len ( file_iam_proto_rawDesc ) ) ,
NumEnums : 0 ,
NumMessages : 5 ,
NumMessages : 9 ,
NumExtensions : 0 ,
NumServices : 1 ,
} ,