Documentation
¶
Overview ¶
Package config defines all the variables that users can set (through flags, environment vars, or the config file) to affect command behavior.
The variables are grouped into a hierarchy of structs that matches the subcommand tree. Each struct defines destination fields and the mapping from command-specific flags into those fields.
These structs are defined in a separate package from the actual behavior (in the 'internal/command' package) so that nested commands can refer to the "inherited" config from parent commands without creating an import loop.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
Root
// Config file values
Org string
// Runtime values
Client *client.SignadotAPI
}
func (*Api) InitAPIConfig ¶
type ClusterConnect ¶
func (*ClusterConnect) AddFlags ¶
func (c *ClusterConnect) AddFlags(cmd *cobra.Command)
type ClusterList ¶
type ClusterList struct {
*Cluster
}
type ClusterToken ¶
type ClusterToken struct {
*Cluster
}
type ClusterTokenCreate ¶
type ClusterTokenCreate struct {
*ClusterToken
// Flags
ClusterName string
}
func (*ClusterTokenCreate) AddFlags ¶
func (c *ClusterTokenCreate) AddFlags(cmd *cobra.Command)
type OutputFormat ¶
type OutputFormat string
const ( OutputFormatDefault OutputFormat = "" OutputFormatYAML OutputFormat = "yaml" OutputFormatJSON OutputFormat = "json" )
func (*OutputFormat) Set ¶
func (o *OutputFormat) Set(v string) error
Set implements the pflag.Value interface.
func (*OutputFormat) String ¶
func (o *OutputFormat) String() string
func (*OutputFormat) Type ¶
func (o *OutputFormat) Type() string
Type implements the pflag.Value interface.
type Root ¶
type Root struct {
// Config file values
DashboardURL *url.URL
// Flags
Debug bool
ConfigFile string
OutputFormat OutputFormat
}
type SandboxCreate ¶
func (*SandboxCreate) AddFlags ¶
func (c *SandboxCreate) AddFlags(cmd *cobra.Command)
type SandboxDelete ¶
func (*SandboxDelete) AddFlags ¶
func (c *SandboxDelete) AddFlags(cmd *cobra.Command)
type SandboxGet ¶
type SandboxGet struct {
*Sandbox
}
type SandboxGetStatus ¶
type SandboxGetStatus struct {
*Sandbox
}
type SandboxList ¶
type SandboxList struct {
*Sandbox
}