Documentation
¶
Index ¶
- func GetConfigPath(userConfigDir string) string
- func GetDefaultConfigPath() (string, error)
- type ClusterConfig
- type Config
- type Option
- type TLSConfig
- type Tctx
- func (t *Tctx) DeleteContext(name string) error
- func (t *Tctx) GetActiveContext() (*ClusterConfig, error)
- func (t *Tctx) GetActiveContextName() (string, error)
- func (t *Tctx) GetAllContexts() (*Config, error)
- func (t *Tctx) GetContext(name string) (*ClusterConfig, error)
- func (t *Tctx) GetContextNames() ([]string, error)
- func (t *Tctx) SetActiveContext(name, namespace string) error
- func (t *Tctx) UpsertContext(name string, new *ClusterConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigPath ¶
func GetDefaultConfigPath ¶
Types ¶
type ClusterConfig ¶
type ClusterConfig struct {
// host:port for Temporal frontend service
Address string `json:"address"`
// Web UI Link
WebAddress string `json:"webAddress"`
// Temporal workflow namespace (default: "default")
Namespace string `json:"namespace"`
// Headers provider plugin executable name
HeadersProvider string `json:"headersProvider"`
// Data converter plugin executable name
DataConverter string `json:"dataConverter"`
TLS *TLSConfig `json:"tls,omitempty"`
// Any additional environment variables that are needed
Environment map[string]string `json:"additional,omitempty"`
}
func (ClusterConfig) GetTLS ¶
func (c ClusterConfig) GetTLS() TLSConfig
type Config ¶
type Config struct {
ActiveContext string `json:"active"`
// Map of context names to cluster configuration
Contexts map[string]*ClusterConfig `json:"contexts"`
}
type TLSConfig ¶
type TLSConfig struct {
// Path to x509 certificate
CertPath string `json:"certPath"`
// Path to private key
KeyPath string `json:"keyPath"`
// Path to server CA certificate
CACertPath string `json:"caPath"`
// Disable tls host name verification (tls must be enabled)
DisableHostVerification bool `json:"disableHostVerification"`
// Override for target server name
ServerName string `json:"serverName"`
}
type Tctx ¶
type Tctx struct {
// contains filtered or unexported fields
}
func (*Tctx) DeleteContext ¶
func (*Tctx) GetActiveContext ¶
func (t *Tctx) GetActiveContext() (*ClusterConfig, error)
func (*Tctx) GetActiveContextName ¶
func (*Tctx) GetAllContexts ¶
func (*Tctx) GetContext ¶
func (t *Tctx) GetContext(name string) (*ClusterConfig, error)
func (*Tctx) GetContextNames ¶
func (*Tctx) SetActiveContext ¶
func (*Tctx) UpsertContext ¶
func (t *Tctx) UpsertContext(name string, new *ClusterConfig) error
Click to show internal directories.
Click to hide internal directories.