Documentation ¶
Overview ¶
Package actions defines all the discrete actions of available to the CLI
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TemplateRun ¶
TemplateRun generates all templates for the given directory.
Types ¶
type Client ¶
Client is the action group for all client commands.
func (*Client) AddClientConfigOverride ¶
func (action *Client) AddClientConfigOverride(override ...ClientConfigOverride)
AddClientConfigOverride adds an override function that will be called in GetConfig to edit config after loading.
func (*Client) GetClientConfig ¶
GetClientConfig returns the client's configuration object.
type ClientConfig ¶
ClientConfig is an action for managing the client configuration.
type ClientConfigOverride ¶
type ClientConfigOverride func(ctx context.Context, c *v1alpha1.ClientConfiguration) error
ClientConfigOverride is a function used to override the client configuration.
type ServerConfigOverride ¶
type ServerConfigOverride func(ctx context.Context, c *v1alpha1.ServerConfiguration) error
ServerConfigOverride is a function used to override the server configuration.
type Telemetry ¶
type Telemetry struct { ConfigFiles []string // contains filtered or unexported fields }
Telemetry action for all commands.
func NewTelemetry ¶
NewTelemetry creates a new telemetry action versionOverride is the optional build version provided by the build system (not necessarily GIT).
func (*Telemetry) AddServerConfigOverride ¶
func (action *Telemetry) AddServerConfigOverride(override ...ServerConfigOverride)
AddServerConfigOverride adds an override function that will be called in GetConfig to edit config after loading.
func (*Telemetry) GetConfigScheme ¶
GetConfigScheme returns the runtime scheme used for configuration file loading.
func (*Telemetry) GetServerConfig ¶
func (action *Telemetry) GetServerConfig(ctx context.Context) (*v1alpha1.ServerConfiguration, error)
GetServerConfig returns the server configuration.
func (Telemetry) GetVersionInfo ¶
GetVersionInfo returns the version information (overwritten by main.version if needed).