Documentation
¶
Index ¶
- func GetSDKClient(c *cli.Context) (sdkclient.Client, error)
- func Init(c *cli.Context)
- 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 ¶
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
var (
CFactory ClientFactory
)
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.