Documentation
¶
Index ¶
- func GetSDKClient(c *cli.Context) (sdkclient.Client, error)
- func Init(c *cli.Context)
- func SetFactory(app *cli.App, factory ClientFactory)
- type ClientFactory
- type HttpGetter
- type SdkLogger
- func (l *SdkLogger) Debug(msg string, keyvals ...interface{})
- func (l *SdkLogger) Error(msg string, keyvals ...interface{})
- func (l *SdkLogger) Info(msg string, keyvals ...interface{})
- func (l *SdkLogger) Warn(msg string, keyvals ...interface{})
- func (l *SdkLogger) With(keyvals ...interface{}) sdklog.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSDKClient ¶
GetSDKClient is a helper function to get an SDK client from a cli.Context
func SetFactory ¶ added in v0.9.0
func SetFactory(app *cli.App, factory ClientFactory)
SetFactory sets the app's metadata to include a ClientFactory
Types ¶
type ClientFactory ¶
type ClientFactory interface {
FrontendClient(c *cli.Context) workflowservice.WorkflowServiceClient
OperatorClient(c *cli.Context) operatorservice.OperatorServiceClient
SDKClient(c *cli.Context, namespace string) sdkclient.Client
HealthClient(c *cli.Context) healthpb.HealthClient
}
ClientFactory is used to construct rpc clients
func Factory ¶ added in v0.9.0
func Factory(app *cli.App) ClientFactory
Factory returns a ClientFactory from the app's metadata
func NewClientFactory ¶
func NewClientFactory() ClientFactory
NewClientFactory creates a new ClientFactory
type HttpGetter ¶
HttpGetter defines http.Client.Get(...) as an interface so we can mock it
type SdkLogger ¶
type SdkLogger struct {
// contains filtered or unexported fields
}
func NewSdkLogger ¶
Click to show internal directories.
Click to hide internal directories.