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.
		
		
		
		
		
			
		
			
				
					
					
						
							337 lines
						
					
					
						
							9.3 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							337 lines
						
					
					
						
							9.3 KiB
						
					
					
				| // Code generated by protoc-gen-go. DO NOT EDIT. | |
| // versions: | |
| // 	protoc-gen-go v1.36.6 | |
| // 	protoc        v5.29.3 | |
| // 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" | |
| ) | |
| 
 | |
| const ( | |
| 	// Verify that this generated code is sufficiently up-to-date. | |
| 	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) | |
| 	// Verify that runtime/protoimpl is sufficiently up-to-date. | |
| 	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) | |
| ) | |
| 
 | |
| type S3ApiConfiguration struct { | |
| 	state         protoimpl.MessageState `protogen:"open.v1"` | |
| 	Identities    []*Identity            `protobuf:"bytes,1,rep,name=identities,proto3" json:"identities,omitempty"` | |
| 	Accounts      []*Account             `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` | |
| 	unknownFields protoimpl.UnknownFields | |
| 	sizeCache     protoimpl.SizeCache | |
| } | |
| 
 | |
| func (x *S3ApiConfiguration) Reset() { | |
| 	*x = S3ApiConfiguration{} | |
| 	mi := &file_iam_proto_msgTypes[0] | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |
| 	ms.StoreMessageInfo(mi) | |
| } | |
| 
 | |
| func (x *S3ApiConfiguration) String() string { | |
| 	return protoimpl.X.MessageStringOf(x) | |
| } | |
| 
 | |
| func (*S3ApiConfiguration) ProtoMessage() {} | |
| 
 | |
| func (x *S3ApiConfiguration) ProtoReflect() protoreflect.Message { | |
| 	mi := &file_iam_proto_msgTypes[0] | |
| 	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 S3ApiConfiguration.ProtoReflect.Descriptor instead. | |
| func (*S3ApiConfiguration) Descriptor() ([]byte, []int) { | |
| 	return file_iam_proto_rawDescGZIP(), []int{0} | |
| } | |
| 
 | |
| func (x *S3ApiConfiguration) GetIdentities() []*Identity { | |
| 	if x != nil { | |
| 		return x.Identities | |
| 	} | |
| 	return nil | |
| } | |
| 
 | |
| func (x *S3ApiConfiguration) GetAccounts() []*Account { | |
| 	if x != nil { | |
| 		return x.Accounts | |
| 	} | |
| 	return nil | |
| } | |
| 
 | |
| type Identity struct { | |
| 	state         protoimpl.MessageState `protogen:"open.v1"` | |
| 	Name          string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` | |
| 	Credentials   []*Credential          `protobuf:"bytes,2,rep,name=credentials,proto3" json:"credentials,omitempty"` | |
| 	Actions       []string               `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` | |
| 	Account       *Account               `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"` | |
| 	unknownFields protoimpl.UnknownFields | |
| 	sizeCache     protoimpl.SizeCache | |
| } | |
| 
 | |
| func (x *Identity) Reset() { | |
| 	*x = Identity{} | |
| 	mi := &file_iam_proto_msgTypes[1] | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |
| 	ms.StoreMessageInfo(mi) | |
| } | |
| 
 | |
| func (x *Identity) String() string { | |
| 	return protoimpl.X.MessageStringOf(x) | |
| } | |
| 
 | |
| func (*Identity) ProtoMessage() {} | |
| 
 | |
| func (x *Identity) 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 Identity.ProtoReflect.Descriptor instead. | |
| func (*Identity) Descriptor() ([]byte, []int) { | |
| 	return file_iam_proto_rawDescGZIP(), []int{1} | |
| } | |
| 
 | |
| func (x *Identity) GetName() string { | |
| 	if x != nil { | |
| 		return x.Name | |
| 	} | |
| 	return "" | |
| } | |
| 
 | |
| func (x *Identity) GetCredentials() []*Credential { | |
| 	if x != nil { | |
| 		return x.Credentials | |
| 	} | |
| 	return nil | |
| } | |
| 
 | |
| func (x *Identity) GetActions() []string { | |
| 	if x != nil { | |
| 		return x.Actions | |
| 	} | |
| 	return nil | |
| } | |
| 
 | |
| func (x *Identity) GetAccount() *Account { | |
| 	if x != nil { | |
| 		return x.Account | |
| 	} | |
| 	return nil | |
| } | |
| 
 | |
| type Credential struct { | |
| 	state         protoimpl.MessageState `protogen:"open.v1"` | |
| 	AccessKey     string                 `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` | |
| 	SecretKey     string                 `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` | |
| 	unknownFields protoimpl.UnknownFields | |
| 	sizeCache     protoimpl.SizeCache | |
| } | |
| 
 | |
| func (x *Credential) Reset() { | |
| 	*x = Credential{} | |
| 	mi := &file_iam_proto_msgTypes[2] | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |
| 	ms.StoreMessageInfo(mi) | |
| } | |
| 
 | |
| func (x *Credential) String() string { | |
| 	return protoimpl.X.MessageStringOf(x) | |
| } | |
| 
 | |
| func (*Credential) ProtoMessage() {} | |
| 
 | |
| func (x *Credential) 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 Credential.ProtoReflect.Descriptor instead. | |
| func (*Credential) Descriptor() ([]byte, []int) { | |
| 	return file_iam_proto_rawDescGZIP(), []int{2} | |
| } | |
| 
 | |
| func (x *Credential) GetAccessKey() string { | |
| 	if x != nil { | |
| 		return x.AccessKey | |
| 	} | |
| 	return "" | |
| } | |
| 
 | |
| func (x *Credential) GetSecretKey() string { | |
| 	if x != nil { | |
| 		return x.SecretKey | |
| 	} | |
| 	return "" | |
| } | |
| 
 | |
| type Account struct { | |
| 	state         protoimpl.MessageState `protogen:"open.v1"` | |
| 	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` | |
| 	DisplayName   string                 `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` | |
| 	EmailAddress  string                 `protobuf:"bytes,3,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"` | |
| 	unknownFields protoimpl.UnknownFields | |
| 	sizeCache     protoimpl.SizeCache | |
| } | |
| 
 | |
| func (x *Account) Reset() { | |
| 	*x = Account{} | |
| 	mi := &file_iam_proto_msgTypes[3] | |
| 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |
| 	ms.StoreMessageInfo(mi) | |
| } | |
| 
 | |
| func (x *Account) String() string { | |
| 	return protoimpl.X.MessageStringOf(x) | |
| } | |
| 
 | |
| func (*Account) ProtoMessage() {} | |
| 
 | |
| func (x *Account) 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 Account.ProtoReflect.Descriptor instead. | |
| func (*Account) Descriptor() ([]byte, []int) { | |
| 	return file_iam_proto_rawDescGZIP(), []int{3} | |
| } | |
| 
 | |
| func (x *Account) GetId() string { | |
| 	if x != nil { | |
| 		return x.Id | |
| 	} | |
| 	return "" | |
| } | |
| 
 | |
| func (x *Account) GetDisplayName() string { | |
| 	if x != nil { | |
| 		return x.DisplayName | |
| 	} | |
| 	return "" | |
| } | |
| 
 | |
| func (x *Account) GetEmailAddress() string { | |
| 	if x != nil { | |
| 		return x.EmailAddress | |
| 	} | |
| 	return "" | |
| } | |
| 
 | |
| var File_iam_proto protoreflect.FileDescriptor | |
| 
 | |
| const file_iam_proto_rawDesc = "" + | |
| 	"\n" + | |
| 	"\tiam.proto\x12\x06iam_pb\"s\n" + | |
| 	"\x12S3ApiConfiguration\x120\n" + | |
| 	"\n" + | |
| 	"identities\x18\x01 \x03(\v2\x10.iam_pb.IdentityR\n" + | |
| 	"identities\x12+\n" + | |
| 	"\baccounts\x18\x02 \x03(\v2\x0f.iam_pb.AccountR\baccounts\"\x99\x01\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" + | |
| 	"\aactions\x18\x03 \x03(\tR\aactions\x12)\n" + | |
| 	"\aaccount\x18\x04 \x01(\v2\x0f.iam_pb.AccountR\aaccount\"J\n" + | |
| 	"\n" + | |
| 	"Credential\x12\x1d\n" + | |
| 	"\n" + | |
| 	"access_key\x18\x01 \x01(\tR\taccessKey\x12\x1d\n" + | |
| 	"\n" + | |
| 	"secret_key\x18\x02 \x01(\tR\tsecretKey\"a\n" + | |
| 	"\aAccount\x12\x0e\n" + | |
| 	"\x02id\x18\x01 \x01(\tR\x02id\x12!\n" + | |
| 	"\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12#\n" + | |
| 	"\remail_address\x18\x03 \x01(\tR\femailAddress2!\n" + | |
| 	"\x1fSeaweedIdentityAccessManagementBK\n" + | |
| 	"\x10seaweedfs.clientB\bIamProtoZ-github.com/seaweedfs/seaweedfs/weed/pb/iam_pbb\x06proto3" | |
| 
 | |
| var ( | |
| 	file_iam_proto_rawDescOnce sync.Once | |
| 	file_iam_proto_rawDescData []byte | |
| ) | |
| 
 | |
| func file_iam_proto_rawDescGZIP() []byte { | |
| 	file_iam_proto_rawDescOnce.Do(func() { | |
| 		file_iam_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_iam_proto_rawDesc), len(file_iam_proto_rawDesc))) | |
| 	}) | |
| 	return file_iam_proto_rawDescData | |
| } | |
| 
 | |
| var file_iam_proto_msgTypes = make([]protoimpl.MessageInfo, 4) | |
| 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 | |
| } | |
| 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 | |
| 	2, // 2: iam_pb.Identity.credentials:type_name -> iam_pb.Credential | |
| 	3, // 3: iam_pb.Identity.account:type_name -> iam_pb.Account | |
| 	4, // [4:4] is the sub-list for method output_type | |
| 	4, // [4:4] is the sub-list for method input_type | |
| 	4, // [4:4] is the sub-list for extension type_name | |
| 	4, // [4:4] is the sub-list for extension extendee | |
| 	0, // [0:4] is the sub-list for field type_name | |
| } | |
| 
 | |
| func init() { file_iam_proto_init() } | |
| func file_iam_proto_init() { | |
| 	if File_iam_proto != nil { | |
| 		return | |
| 	} | |
| 	type x struct{} | |
| 	out := protoimpl.TypeBuilder{ | |
| 		File: protoimpl.DescBuilder{ | |
| 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(), | |
| 			RawDescriptor: unsafe.Slice(unsafe.StringData(file_iam_proto_rawDesc), len(file_iam_proto_rawDesc)), | |
| 			NumEnums:      0, | |
| 			NumMessages:   4, | |
| 			NumExtensions: 0, | |
| 			NumServices:   1, | |
| 		}, | |
| 		GoTypes:           file_iam_proto_goTypes, | |
| 		DependencyIndexes: file_iam_proto_depIdxs, | |
| 		MessageInfos:      file_iam_proto_msgTypes, | |
| 	}.Build() | |
| 	File_iam_proto = out.File | |
| 	file_iam_proto_goTypes = nil | |
| 	file_iam_proto_depIdxs = nil | |
| }
 |