pool

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 28 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppAuthProviderServiceClient

func GetAppAuthProviderServiceClient(endpoint string, opts ...Option) (applicationauth.ApplicationsAPIClient, error)

GetAppAuthProviderServiceClient returns a new AppAuthProviderServiceClient.

func GetAppProviderClient

func GetAppProviderClient(endpoint string, opts ...Option) (appprovider.ProviderAPIClient, error)

GetAppProviderClient returns a new AppRegistryClient.

func GetAppRegistryClient

func GetAppRegistryClient(endpoint string, opts ...Option) (appregistry.RegistryAPIClient, error)

GetAppRegistryClient returns a new AppRegistryClient.

func GetAuthProviderServiceClient

func GetAuthProviderServiceClient(endpoint string, opts ...Option) (authprovider.ProviderAPIClient, error)

GetAuthProviderServiceClient returns a new AuthProviderServiceClient.

func GetAuthRegistryServiceClient

func GetAuthRegistryServiceClient(endpoint string, opts ...Option) (authregistry.RegistryAPIClient, error)

GetAuthRegistryServiceClient returns a new AuthRegistryServiceClient.

func GetDataTxClient

func GetDataTxClient(endpoint string, opts ...Option) (datatx.TxAPIClient, error)

GetDataTxClient returns a new DataTxClient.

func GetGatewayServiceClient

func GetGatewayServiceClient(endpoint string, opts ...Option) (gateway.GatewayAPIClient, error)

GetGatewayServiceClient returns a GatewayServiceClient.

func GetGroupProviderServiceClient

func GetGroupProviderServiceClient(endpoint string, opts ...Option) (group.GroupAPIClient, error)

GetGroupProviderServiceClient returns a GroupProviderServiceClient.

func GetOCMCoreClient

func GetOCMCoreClient(endpoint string, opts ...Option) (ocmcore.OcmCoreAPIClient, error)

GetOCMCoreClient returns a new OCMCoreClient.

func GetOCMInviteManagerClient

func GetOCMInviteManagerClient(endpoint string, opts ...Option) (invitepb.InviteAPIClient, error)

GetOCMInviteManagerClient returns a new OCMInviteManagerClient.

func GetOCMProviderAuthorizerClient

func GetOCMProviderAuthorizerClient(endpoint string, opts ...Option) (ocmprovider.ProviderAPIClient, error)

GetOCMProviderAuthorizerClient returns a new OCMProviderAuthorizerClient.

func GetOCMShareProviderClient

func GetOCMShareProviderClient(endpoint string, opts ...Option) (ocm.OcmAPIClient, error)

GetOCMShareProviderClient returns a new OCMShareProviderClient.

func GetPermissionsClient

func GetPermissionsClient(endpoint string, opts ...Option) (permissions.PermissionsAPIClient, error)

GetPermissionsClient returns a new PermissionsClient.

func GetPreferencesClient

func GetPreferencesClient(endpoint string, opts ...Option) (preferences.PreferencesAPIClient, error)

GetPreferencesClient returns a new PreferencesClient.

func GetPublicShareProviderClient

func GetPublicShareProviderClient(endpoint string, opts ...Option) (link.LinkAPIClient, error)

GetPublicShareProviderClient returns a new PublicShareProviderClient.

func GetStorageProviderServiceClient

func GetStorageProviderServiceClient(endpoint string, opts ...Option) (storageprovider.ProviderAPIClient, error)

GetStorageProviderServiceClient returns a StorageProviderServiceClient.

func GetStorageRegistryClient

func GetStorageRegistryClient(endpoint string, opts ...Option) (storageregistry.RegistryAPIClient, error)

GetStorageRegistryClient returns a new StorageRegistryClient.

func GetUserProviderServiceClient

func GetUserProviderServiceClient(endpoint string, opts ...Option) (user.UserAPIClient, error)

GetUserProviderServiceClient returns a UserProviderServiceClient.

func GetUserShareProviderClient

func GetUserShareProviderClient(endpoint string, opts ...Option) (collaboration.CollaborationAPIClient, error)

GetUserShareProviderClient returns a new UserShareProviderClient.

func NewConn

func NewConn(endpoint string, opts ...Option) (*grpc.ClientConn, error)

NewConn creates a new connection to a grpc server with open census tracing support. TODO(labkode): make grpc tls configurable. TODO make maxCallRecvMsgSize configurable, raised from the default 4MB to be able to list 10k files

Types

type ClientOptions added in v2.11.0

type ClientOptions struct {
	// contains filtered or unexported fields
}

ClientOptions represent additional options (e.g. tls settings) for the grpc clients

type Option added in v2.11.0

type Option func(opts *ClientOptions)

Option is used to pass client options

func WithTLSCACert added in v2.11.0

func WithTLSCACert(v string) Option

WithTLSCACert allows to set the CA Certificate for grpc clients

func WithTLSMode added in v2.11.0

func WithTLSMode(v TLSMode) Option

WithTLSMode allows to set the TLSMode option for grpc clients

type TLSMode added in v2.11.0

type TLSMode int

TLSMode represents TLS mode for the clients

const (
	// TLSOff completely disables transport security
	TLSOff TLSMode = iota
	// TLSOn enables transport security
	TLSOn
	// TLSInsecure enables transport security, but disables the verification of the
	// server certificate
	TLSInsecure
)

func StringToTLSMode added in v2.11.0

func StringToTLSMode(m string) (TLSMode, error)

StringToTLSMode converts the supply string into the equivalent TLSMode constant

Jump to

Keyboard shortcuts

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