Documentation
¶
Index ¶
- Constants
- Variables
- func FormatJson(i interface{}) (string, error)
- func GetServerConnection(c *cli.Context) (context.Context, *grpc.ClientConn, error)
- func NewApp(params AppParams) (*cli.App, error)
- func PrintObj(i interface{}) error
- func PrintProto(m proto.Message) error
- type AppParams
- type CommandOut
- type GetNamespaceClientFn
- type GetRequestClientFn
- type LoginClient
- type NamespaceClient
- type OauthDeviceCodeResponse
- type OauthTokenResponse
- type RequestClient
Constants ¶
View Source
const ( ServerFlagName = "server" ConfigDirFlagName = "config-dir" NamespaceFlagName = "namespace" RequestIDFlagName = "request-id" ResourceVersionFlagName = "resource-version" )
Variables ¶
View Source
var ( ServerFlag = &cli.StringFlag{ Name: ServerFlagName, Aliases: []string{"s"}, Value: "saas-api.tmprl.cloud:443", Usage: "saas-api server endpoint", EnvVars: []string{"TEMPORAL_CLOUD_API_SERVER"}, Hidden: true, Required: false, } ConfigDirFlag = &cli.PathFlag{ Name: ConfigDirFlagName, Value: path.Join(os.Getenv("HOME"), ".config", "tcld"), Usage: "the config directory to use", Hidden: true, Required: false, } NamespaceFlag = &cli.StringFlag{ Name: NamespaceFlagName, Usage: "the namespace hosted on temporal cloud", Aliases: []string{"n"}, EnvVars: []string{"TEMPORAL_CLOUD_NAMESPACE"}, Required: true, } RequestIDFlag = &cli.StringFlag{ Name: RequestIDFlagName, Usage: "the request-id to use for the asynchronous operation, if not set the server will assign one (optional)", Aliases: []string{"r"}, } ResourceVersionFlag = &cli.StringFlag{ Name: ResourceVersionFlagName, Usage: "the resource-version (etag) to update from, if not set the cli will use the latest (optional)", Aliases: []string{"v"}, } )
View Source
var ( BuildDate string Commit string Version string )
Functions ¶
func FormatJson ¶
func GetServerConnection ¶
func PrintProto ¶
Types ¶
type CommandOut ¶
func NewLoginCommand ¶
func NewLoginCommand(c *LoginClient) (CommandOut, error)
func NewNamespaceCommand ¶
func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, error)
func NewRequestCommand ¶
func NewRequestCommand(getRequestClientFn GetRequestClientFn) (CommandOut, error)
func NewVersionCommand ¶
func NewVersionCommand() (CommandOut, error)
type GetNamespaceClientFn ¶
type GetNamespaceClientFn func(ctx *cli.Context) (*NamespaceClient, error)
type GetRequestClientFn ¶
type GetRequestClientFn func(ctx *cli.Context) (*RequestClient, error)
type LoginClient ¶
type LoginClient struct {
// contains filtered or unexported fields
}
func GetLoginClient ¶
func GetLoginClient() *LoginClient
type NamespaceClient ¶
type NamespaceClient struct {
// contains filtered or unexported fields
}
func GetNamespaceClient ¶
func GetNamespaceClient(ctx *cli.Context) (*NamespaceClient, error)
type OauthDeviceCodeResponse ¶
type OauthTokenResponse ¶
type RequestClient ¶
type RequestClient struct {
// contains filtered or unexported fields
}
func GetRequestClient ¶
func GetRequestClient(ctx *cli.Context) (*RequestClient, error)
Click to show internal directories.
Click to hide internal directories.