Documentation ¶
Index ¶
- func NewKeyValueStorageConnection(address string, opts ...grpc.DialOption) (*grpc.ClientConn, keyvaluestorage.KeyValueStorageServiceClient, error)
- func NewNamespaceConnection(address string, opts ...grpc.DialOption) (*grpc.ClientConn, namespace.NamespaceServiceClient, error)
- type GrpcServiceConfig
- type IAMService
- type IamActorServices
- type IamAuthenticationOAuthServices
- type IamAuthenticationServices
- type NativeStub
- type StorageService
- type StubConfig
- func (sc *StubConfig) WithIAMService(conf ...GrpcServiceConfig) *StubConfig
- func (sc *StubConfig) WithKeyValueStorageService(conf ...GrpcServiceConfig) *StubConfig
- func (sc *StubConfig) WithLogger(logger *log.Logger) *StubConfig
- func (sc *StubConfig) WithNamespaceService(conf ...GrpcServiceConfig) *StubConfig
- func (sc *StubConfig) WithStorageService(conf ...GrpcServiceConfig) *StubConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKeyValueStorageConnection ¶
func NewKeyValueStorageConnection(address string, opts ...grpc.DialOption) (*grpc.ClientConn, keyvaluestorage.KeyValueStorageServiceClient, error)
Connect to KeyValueStorage service
func NewNamespaceConnection ¶
func NewNamespaceConnection(address string, opts ...grpc.DialOption) (*grpc.ClientConn, namespace.NamespaceServiceClient, error)
Connect to Namespace service
Types ¶
type GrpcServiceConfig ¶
type GrpcServiceConfig struct {
// contains filtered or unexported fields
}
type IAMService ¶
type IAMService struct { Actor *IamActorServices Authentication *IamAuthenticationServices Identity iamIdentityGrpc.IAMIdentityServiceClient Auth iamAuthGrpc.IAMAuthServiceClient Policy iamPolicyGrpc.IAMPolicyServiceClient Role iamRoleGrpc.IAMRoleServiceClient Token iamTokenGrpc.IAMTokenServiceClient }
func NewIAMConnection ¶
func NewIAMConnection(address string, opts ...grpc.DialOption) (*grpc.ClientConn, *IAMService, error)
Connect to IAM service
type IamActorServices ¶
type IamActorServices struct {
User iamActorUserGrpc.ActorUserServiceClient
}
type IamAuthenticationOAuthServices ¶
type IamAuthenticationOAuthServices struct { Config iamAuthenticationOAuth2Grpc.IAMAuthenticationOAuth2ConfigServiceClient OAuth2 iamAuthenticationOAuth2Grpc.IAMAuthenticationOAuth2ServiceClient }
type IamAuthenticationServices ¶
type IamAuthenticationServices struct { Password iamAuthenticationPasswordGrpc.IAMAuthenticationPasswordServiceClient X509 iamAuthenticationX509Grpc.IAMAuthenticationX509ServiceClient OAuth IamAuthenticationOAuthServices }
type NativeStub ¶
type NativeStub struct { Services services // contains filtered or unexported fields }
func NewNativeStub ¶
func NewNativeStub(config *StubConfig) *NativeStub
func (*NativeStub) Close ¶
func (n *NativeStub) Close()
func (*NativeStub) Connect ¶
func (n *NativeStub) Connect() error
type StorageService ¶
type StorageService struct { Bucket storageBucketGrpc.BucketServiceClient FS storageFSGrpc.FSServiceClient }
func NewStorageConnection ¶
func NewStorageConnection(address string, opts ...grpc.DialOption) (*grpc.ClientConn, *StorageService, error)
Connect to Storage service
type StubConfig ¶
type StubConfig struct {
// contains filtered or unexported fields
}
func NewStubConfig ¶
func NewStubConfig() *StubConfig
func (*StubConfig) WithIAMService ¶
func (sc *StubConfig) WithIAMService(conf ...GrpcServiceConfig) *StubConfig
func (*StubConfig) WithKeyValueStorageService ¶
func (sc *StubConfig) WithKeyValueStorageService(conf ...GrpcServiceConfig) *StubConfig
func (*StubConfig) WithLogger ¶
func (sc *StubConfig) WithLogger(logger *log.Logger) *StubConfig
func (*StubConfig) WithNamespaceService ¶
func (sc *StubConfig) WithNamespaceService(conf ...GrpcServiceConfig) *StubConfig
func (*StubConfig) WithStorageService ¶
func (sc *StubConfig) WithStorageService(conf ...GrpcServiceConfig) *StubConfig
Click to show internal directories.
Click to hide internal directories.