Documentation ¶
Index ¶
- func Configure(opts ...ClientOption) error
- func DefaultClient() client.Client
- type ClientOption
- type ClientOptions
- type Option
- func Address(a string) Option
- func Context(ctx context.Context) Option
- func Flags(flags ...cli.Flag) Option
- func Logger(l log.Logger) Option
- func Name(n string) Option
- func Namespace(n string) Option
- func TLSCert(c string, k string) Option
- func TLSEnabled(v bool) Option
- func Version(v string) Option
- type Options
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure(opts ...ClientOption) error
Configure configures the default oOCIS grpc client (e.g. TLS settings)
func DefaultClient ¶
DefaultClient returns a custom oCIS grpc configured client.
Types ¶
type ClientOption ¶
type ClientOption func(opts *ClientOptions)
Option is used to pass client options
func GetClientOptions ¶
func GetClientOptions(t *shared.GRPCClientTLS) []ClientOption
func WithTLSCACert ¶
func WithTLSCACert(v string) ClientOption
WithTLSCACert allows to set the CA Certificate for grpc clients
func WithTLSMode ¶
func WithTLSMode(v string) ClientOption
WithTLSMode allows to set the TLSMode option for grpc clients
type ClientOptions ¶
type ClientOptions struct {
// contains filtered or unexported fields
}
ClientOptions represent options (e.g. tls settings) for the grpc clients
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func Flags ¶
func Flags(flags ...cli.Flag) Option
Flags provides a function to set the flags option.
func TLSEnabled ¶
TLSEnabled provides a function to enable/disable TLS
Click to show internal directories.
Click to hide internal directories.