plugin

package
v0.0.0-...-ae3c806 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AccountCollector_Init_FullMethodName = "/spaceone.api.identity.plugin.AccountCollector/init"
	AccountCollector_Sync_FullMethodName = "/spaceone.api.identity.plugin.AccountCollector/sync"
)
View Source
const (
	ExternalAuth_Init_FullMethodName      = "/spaceone.api.identity.plugin.ExternalAuth/init"
	ExternalAuth_Authorize_FullMethodName = "/spaceone.api.identity.plugin.ExternalAuth/authorize"
)

Variables

View Source
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.

View Source
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)

View Source
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)

View Source
var File_spaceone_api_identity_plugin_account_collector_proto protoreflect.FileDescriptor
View Source
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.

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.

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) Descriptor() ([]byte, []int)

Deprecated: Use PluginInfo.ProtoReflect.Descriptor instead.

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) Sync

type UnimplementedExternalAuthServer

type UnimplementedExternalAuthServer struct {
}

UnimplementedExternalAuthServer must be embedded to have forward compatible implementations.

func (UnimplementedExternalAuthServer) Authorize

func (UnimplementedExternalAuthServer) Init

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) Descriptor() ([]byte, []int)

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetEmail

func (x *UserInfo) GetEmail() string

func (*UserInfo) GetGroup

func (x *UserInfo) GetGroup() string

func (*UserInfo) GetMobile

func (x *UserInfo) GetMobile() string

func (*UserInfo) GetName

func (x *UserInfo) GetName() string

func (*UserInfo) GetState

func (x *UserInfo) GetState() UserInfo_State

func (*UserInfo) GetUserId

func (x *UserInfo) GetUserId() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

func (x *UserInfo) ProtoReflect() protoreflect.Message

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

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) 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 (UserInfo_State) String

func (x UserInfo_State) String() string

func (UserInfo_State) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL