Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAccountCollectorServer(s grpc.ServiceRegistrar, srv AccountCollectorServer)
- func RegisterExternalAuthServer(s grpc.ServiceRegistrar, srv ExternalAuthServer)
- type AccountCollectorClient
- type AccountCollectorServer
- type AccountInfo
- func (*AccountInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AccountInfo) GetData() *_struct.Struct
- func (x *AccountInfo) GetLocation() []*_struct.Struct
- func (x *AccountInfo) GetName() string
- func (x *AccountInfo) GetResourceId() string
- func (x *AccountInfo) GetSecretData() *_struct.Struct
- func (x *AccountInfo) GetSecretSchemaId() string
- func (x *AccountInfo) GetTags() *_struct.Struct
- func (*AccountInfo) ProtoMessage()
- func (x *AccountInfo) ProtoReflect() protoreflect.Message
- func (x *AccountInfo) Reset()
- func (x *AccountInfo) String() string
- type AccountsInfo
- type AuthorizeRequest
- func (*AuthorizeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeRequest) GetCredentials() *_struct.Struct
- func (x *AuthorizeRequest) GetDomainId() string
- func (x *AuthorizeRequest) GetMetadata() *_struct.Struct
- func (x *AuthorizeRequest) GetOptions() *_struct.Struct
- func (x *AuthorizeRequest) GetSchemaId() string
- func (x *AuthorizeRequest) GetSecretData() *_struct.Struct
- func (*AuthorizeRequest) ProtoMessage()
- func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message
- func (x *AuthorizeRequest) Reset()
- func (x *AuthorizeRequest) String() string
- type ExternalAuthClient
- type ExternalAuthServer
- type InitRequest
- func (*InitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InitRequest) GetDomainId() string
- func (x *InitRequest) GetOptions() *_struct.Struct
- func (*InitRequest) ProtoMessage()
- func (x *InitRequest) ProtoReflect() protoreflect.Message
- func (x *InitRequest) Reset()
- func (x *InitRequest) String() string
- type PluginInfo
- type SyncRequest
- func (*SyncRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncRequest) GetDomainId() string
- func (x *SyncRequest) GetOptions() *_struct.Struct
- func (x *SyncRequest) GetSchemaId() string
- func (x *SyncRequest) GetSecretData() *_struct.Struct
- func (*SyncRequest) ProtoMessage()
- func (x *SyncRequest) ProtoReflect() protoreflect.Message
- func (x *SyncRequest) Reset()
- func (x *SyncRequest) String() string
- type UnimplementedAccountCollectorServer
- type UnimplementedExternalAuthServer
- type UnsafeAccountCollectorServer
- type UnsafeExternalAuthServer
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetEmail() string
- func (x *UserInfo) GetGroup() string
- func (x *UserInfo) GetMobile() string
- func (x *UserInfo) GetName() string
- func (x *UserInfo) GetState() UserInfo_State
- func (x *UserInfo) GetUserId() string
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
- type UserInfo_State
- func (UserInfo_State) Descriptor() protoreflect.EnumDescriptor
- func (x UserInfo_State) Enum() *UserInfo_State
- func (UserInfo_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserInfo_State) Number() protoreflect.EnumNumber
- func (x UserInfo_State) String() string
- func (UserInfo_State) Type() protoreflect.EnumType
Constants ¶
const ( AccountCollector_Init_FullMethodName = "/spaceone.api.identity.plugin.AccountCollector/init" AccountCollector_Sync_FullMethodName = "/spaceone.api.identity.plugin.AccountCollector/sync" )
const ( ExternalAuth_Init_FullMethodName = "/spaceone.api.identity.plugin.ExternalAuth/init" ExternalAuth_Authorize_FullMethodName = "/spaceone.api.identity.plugin.ExternalAuth/authorize" )
Variables ¶
var ( UserInfo_State_name = map[int32]string{ 0: "NONE", 1: "ENABLED", 2: "DISABLED", 3: "UNIDENTIFIED", } UserInfo_State_value = map[string]int32{ "NONE": 0, "ENABLED": 1, "DISABLED": 2, "UNIDENTIFIED": 3, } )
Enum value maps for UserInfo_State.
var AccountCollector_ServiceDesc = grpc.ServiceDesc{ ServiceName: "spaceone.api.identity.plugin.AccountCollector", HandlerType: (*AccountCollectorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "init", Handler: _AccountCollector_Init_Handler, }, { MethodName: "sync", Handler: _AccountCollector_Sync_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "spaceone/api/identity/plugin/account_collector.proto", }
AccountCollector_ServiceDesc is the grpc.ServiceDesc for AccountCollector service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ExternalAuth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "spaceone.api.identity.plugin.ExternalAuth", HandlerType: (*ExternalAuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "init", Handler: _ExternalAuth_Init_Handler, }, { MethodName: "authorize", Handler: _ExternalAuth_Authorize_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "spaceone/api/identity/plugin/external_auth.proto", }
ExternalAuth_ServiceDesc is the grpc.ServiceDesc for ExternalAuth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_spaceone_api_identity_plugin_account_collector_proto protoreflect.FileDescriptor
var File_spaceone_api_identity_plugin_external_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountCollectorServer ¶
func RegisterAccountCollectorServer(s grpc.ServiceRegistrar, srv AccountCollectorServer)
func RegisterExternalAuthServer ¶
func RegisterExternalAuthServer(s grpc.ServiceRegistrar, srv ExternalAuthServer)
Types ¶
type AccountCollectorClient ¶
type AccountCollectorClient interface { Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*PluginInfo, error) Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*AccountsInfo, error) }
AccountCollectorClient is the client API for AccountCollector service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAccountCollectorClient ¶
func NewAccountCollectorClient(cc grpc.ClientConnInterface) AccountCollectorClient
type AccountCollectorServer ¶
type AccountCollectorServer interface { Init(context.Context, *InitRequest) (*PluginInfo, error) Sync(context.Context, *SyncRequest) (*AccountsInfo, error) // contains filtered or unexported methods }
AccountCollectorServer is the server API for AccountCollector service. All implementations must embed UnimplementedAccountCollectorServer for forward compatibility
type AccountInfo ¶
type AccountInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Data *_struct.Struct `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` ResourceId string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` SecretSchemaId string `protobuf:"bytes,4,opt,name=secret_schema_id,json=secretSchemaId,proto3" json:"secret_schema_id,omitempty"` SecretData *_struct.Struct `protobuf:"bytes,5,opt,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty"` Tags *_struct.Struct `protobuf:"bytes,6,opt,name=tags,proto3" json:"tags,omitempty"` Location []*_struct.Struct `protobuf:"bytes,7,rep,name=location,proto3" json:"location,omitempty"` // contains filtered or unexported fields }
func (*AccountInfo) Descriptor
deprecated
func (*AccountInfo) Descriptor() ([]byte, []int)
Deprecated: Use AccountInfo.ProtoReflect.Descriptor instead.
func (*AccountInfo) GetData ¶
func (x *AccountInfo) GetData() *_struct.Struct
func (*AccountInfo) GetLocation ¶
func (x *AccountInfo) GetLocation() []*_struct.Struct
func (*AccountInfo) GetName ¶
func (x *AccountInfo) GetName() string
func (*AccountInfo) GetResourceId ¶
func (x *AccountInfo) GetResourceId() string
func (*AccountInfo) GetSecretData ¶
func (x *AccountInfo) GetSecretData() *_struct.Struct
func (*AccountInfo) GetSecretSchemaId ¶
func (x *AccountInfo) GetSecretSchemaId() string
func (*AccountInfo) GetTags ¶
func (x *AccountInfo) GetTags() *_struct.Struct
func (*AccountInfo) ProtoMessage ¶
func (*AccountInfo) ProtoMessage()
func (*AccountInfo) ProtoReflect ¶
func (x *AccountInfo) ProtoReflect() protoreflect.Message
func (*AccountInfo) Reset ¶
func (x *AccountInfo) Reset()
func (*AccountInfo) String ¶
func (x *AccountInfo) String() string
type AccountsInfo ¶
type AccountsInfo struct { Results []*AccountInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*AccountsInfo) Descriptor
deprecated
func (*AccountsInfo) Descriptor() ([]byte, []int)
Deprecated: Use AccountsInfo.ProtoReflect.Descriptor instead.
func (*AccountsInfo) GetResults ¶
func (x *AccountsInfo) GetResults() []*AccountInfo
func (*AccountsInfo) ProtoMessage ¶
func (*AccountsInfo) ProtoMessage()
func (*AccountsInfo) ProtoReflect ¶
func (x *AccountsInfo) ProtoReflect() protoreflect.Message
func (*AccountsInfo) Reset ¶
func (x *AccountsInfo) Reset()
func (*AccountsInfo) String ¶
func (x *AccountsInfo) String() string
type AuthorizeRequest ¶
type AuthorizeRequest struct { Options *_struct.Struct `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` // +optional SchemaId string `protobuf:"bytes,2,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"` // +optional SecretData *_struct.Struct `protobuf:"bytes,3,opt,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty"` Credentials *_struct.Struct `protobuf:"bytes,4,opt,name=credentials,proto3" json:"credentials,omitempty"` // +optional Metadata *_struct.Struct `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` DomainId string `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` // contains filtered or unexported fields }
func (*AuthorizeRequest) Descriptor
deprecated
func (*AuthorizeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeRequest.ProtoReflect.Descriptor instead.
func (*AuthorizeRequest) GetCredentials ¶
func (x *AuthorizeRequest) GetCredentials() *_struct.Struct
func (*AuthorizeRequest) GetDomainId ¶
func (x *AuthorizeRequest) GetDomainId() string
func (*AuthorizeRequest) GetMetadata ¶
func (x *AuthorizeRequest) GetMetadata() *_struct.Struct
func (*AuthorizeRequest) GetOptions ¶
func (x *AuthorizeRequest) GetOptions() *_struct.Struct
func (*AuthorizeRequest) GetSchemaId ¶
func (x *AuthorizeRequest) GetSchemaId() string
func (*AuthorizeRequest) GetSecretData ¶
func (x *AuthorizeRequest) GetSecretData() *_struct.Struct
func (*AuthorizeRequest) ProtoMessage ¶
func (*AuthorizeRequest) ProtoMessage()
func (*AuthorizeRequest) ProtoReflect ¶
func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message
func (*AuthorizeRequest) Reset ¶
func (x *AuthorizeRequest) Reset()
func (*AuthorizeRequest) String ¶
func (x *AuthorizeRequest) String() string
type ExternalAuthClient ¶
type ExternalAuthClient interface { Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*PluginInfo, error) Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*UserInfo, error) }
ExternalAuthClient is the client API for ExternalAuth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewExternalAuthClient ¶
func NewExternalAuthClient(cc grpc.ClientConnInterface) ExternalAuthClient
type ExternalAuthServer ¶
type ExternalAuthServer interface { Init(context.Context, *InitRequest) (*PluginInfo, error) Authorize(context.Context, *AuthorizeRequest) (*UserInfo, error) // contains filtered or unexported methods }
ExternalAuthServer is the server API for ExternalAuth service. All implementations must embed UnimplementedExternalAuthServer for forward compatibility
type InitRequest ¶
type InitRequest struct { Options *_struct.Struct `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` DomainId string `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` // contains filtered or unexported fields }
func (*InitRequest) Descriptor
deprecated
func (*InitRequest) GetDomainId ¶
func (x *InitRequest) GetDomainId() string
func (*InitRequest) GetOptions ¶
func (x *InitRequest) GetOptions() *_struct.Struct
func (*InitRequest) ProtoMessage ¶
func (*InitRequest) ProtoMessage()
func (*InitRequest) ProtoReflect ¶
func (x *InitRequest) ProtoReflect() protoreflect.Message
func (*InitRequest) Reset ¶
func (x *InitRequest) Reset()
func (*InitRequest) String ¶
func (x *InitRequest) String() string
type PluginInfo ¶
type PluginInfo struct { Metadata *_struct.Struct `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*PluginInfo) Descriptor
deprecated
func (*PluginInfo) GetMetadata ¶
func (x *PluginInfo) GetMetadata() *_struct.Struct
func (*PluginInfo) ProtoMessage ¶
func (*PluginInfo) ProtoMessage()
func (*PluginInfo) ProtoReflect ¶
func (x *PluginInfo) ProtoReflect() protoreflect.Message
func (*PluginInfo) Reset ¶
func (x *PluginInfo) Reset()
func (*PluginInfo) String ¶
func (x *PluginInfo) String() string
type SyncRequest ¶
type SyncRequest struct { Options *_struct.Struct `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` // +optional SchemaId string `protobuf:"bytes,2,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"` // +optional SecretData *_struct.Struct `protobuf:"bytes,3,opt,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty"` DomainId string `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` // contains filtered or unexported fields }
func (*SyncRequest) Descriptor
deprecated
func (*SyncRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.
func (*SyncRequest) GetDomainId ¶
func (x *SyncRequest) GetDomainId() string
func (*SyncRequest) GetOptions ¶
func (x *SyncRequest) GetOptions() *_struct.Struct
func (*SyncRequest) GetSchemaId ¶
func (x *SyncRequest) GetSchemaId() string
func (*SyncRequest) GetSecretData ¶
func (x *SyncRequest) GetSecretData() *_struct.Struct
func (*SyncRequest) ProtoMessage ¶
func (*SyncRequest) ProtoMessage()
func (*SyncRequest) ProtoReflect ¶
func (x *SyncRequest) ProtoReflect() protoreflect.Message
func (*SyncRequest) Reset ¶
func (x *SyncRequest) Reset()
func (*SyncRequest) String ¶
func (x *SyncRequest) String() string
type UnimplementedAccountCollectorServer ¶
type UnimplementedAccountCollectorServer struct { }
UnimplementedAccountCollectorServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountCollectorServer) Init ¶
func (UnimplementedAccountCollectorServer) Init(context.Context, *InitRequest) (*PluginInfo, error)
func (UnimplementedAccountCollectorServer) Sync ¶
func (UnimplementedAccountCollectorServer) Sync(context.Context, *SyncRequest) (*AccountsInfo, error)
type UnimplementedExternalAuthServer ¶
type UnimplementedExternalAuthServer struct { }
UnimplementedExternalAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedExternalAuthServer) Authorize ¶
func (UnimplementedExternalAuthServer) Authorize(context.Context, *AuthorizeRequest) (*UserInfo, error)
func (UnimplementedExternalAuthServer) Init ¶
func (UnimplementedExternalAuthServer) Init(context.Context, *InitRequest) (*PluginInfo, error)
type UnsafeAccountCollectorServer ¶
type UnsafeAccountCollectorServer interface {
// contains filtered or unexported methods
}
UnsafeAccountCollectorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountCollectorServer will result in compilation errors.
type UnsafeExternalAuthServer ¶
type UnsafeExternalAuthServer interface {
// contains filtered or unexported methods
}
UnsafeExternalAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExternalAuthServer will result in compilation errors.
type UserInfo ¶
type UserInfo struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` Group string `protobuf:"bytes,5,opt,name=group,proto3" json:"group,omitempty"` State UserInfo_State `protobuf:"varint,6,opt,name=state,proto3,enum=spaceone.api.identity.plugin.UserInfo_State" json:"state,omitempty"` // contains filtered or unexported fields }
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) GetState ¶
func (x *UserInfo) GetState() UserInfo_State
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
type UserInfo_State ¶
type UserInfo_State int32
const ( UserInfo_NONE UserInfo_State = 0 UserInfo_ENABLED UserInfo_State = 1 UserInfo_DISABLED UserInfo_State = 2 UserInfo_UNIDENTIFIED UserInfo_State = 3 )
func (UserInfo_State) Descriptor ¶
func (UserInfo_State) Descriptor() protoreflect.EnumDescriptor
func (UserInfo_State) Enum ¶
func (x UserInfo_State) Enum() *UserInfo_State
func (UserInfo_State) EnumDescriptor
deprecated
func (UserInfo_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserInfo_State.Descriptor instead.
func (UserInfo_State) Number ¶
func (x UserInfo_State) Number() protoreflect.EnumNumber
func (UserInfo_State) String ¶
func (x UserInfo_State) String() string
func (UserInfo_State) Type ¶
func (UserInfo_State) Type() protoreflect.EnumType