Documentation ¶
Index ¶
- type Cluster
- type Config
- func (c *Config) APIUrl() string
- func (c *Config) Format() string
- func (c *Config) Namespace() string
- func (c *Config) SaveAPIUrl(url string) error
- func (c *Config) SaveFormat(format string) error
- func (c *Config) SaveNamespace(namespace string) error
- func (c *Config) SaveTokens(tokens *types.Tokens) error
- func (c *Config) Tokens() *types.Tokens
- type Profile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { APIUrl string `json:"api-url"` TrustedCAFile string `json:"trusted-ca-file"` InsecureSkipTLSVerify bool `json:"insecure-skip-tls-verify"` *types.Tokens }
Cluster contains the Sensu cluster access information
type Config ¶
Config contains the CLI configuration
func (*Config) SaveAPIUrl ¶
SaveAPIUrl saves the API URL into a configuration file
func (*Config) SaveFormat ¶
SaveFormat saves the user's format preference into a configuration file
func (*Config) SaveNamespace ¶
SaveNamespace saves the user's default namespace to a configuration file
func (*Config) SaveTokens ¶
SaveTokens saves the JWT into a configuration file
Click to show internal directories.
Click to hide internal directories.