Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigCmd ¶
type ConfigCmd struct { Use UseConfigCmd `cmd:"" help:"set active configuration"` New NewConfigCmd `cmd:"" help:"create new configuration"` List ListConfigCmd `cmd:"" help:"list configurations"` Rename RenameConfigCmd `cmd:"" help:"rename configuration"` Delete DeleteConfigCmd `cmd:"" help:"delete configuration"` Info InfoConfigCmd `cmd:"" help:"display configuration information"` Edit EditConfigCmd `cmd:"" help:"edit config file (defaults to active)" hidden:"" type:"fflag.Editor"` }
func (*ConfigCmd) BeforeReset ¶ added in v0.32.6
type ConfigName ¶
type ConfigName string
func (ConfigName) AfterApply ¶
func (c ConfigName) AfterApply(ctx *kong.Context) error
func (ConfigName) String ¶
func (c ConfigName) String() string
type DeleteConfigCmd ¶
type DeleteConfigCmd struct { Name ConfigName `arg:"" required:"" help:"topaz config name"` ConfigDir string `flag:"" required:"false" default:"${topaz_cfg_dir}" help:"path to config folder" ` }
type EditConfigCmd ¶ added in v0.32.6
type EditConfigCmd struct { Name ConfigName `arg:"" required:"" default:"${active_config}" help:"topaz config name"` ConfigDir string `flag:"" default:"${topaz_cfg_dir}" help:"path to config folder"` }
type Info ¶
type Info struct { Environment struct { Home string `json:"home"` XdgConfigHome string `json:"xdg_config_home"` XdgDataHome string `json:"xdg_data_home"` } `json:"environment"` Config struct { TopazCfgDir string `json:"topaz_cfg_dir"` TopazCertsDir string `json:"topaz_certs_dir"` TopazDataDir string `json:"topaz_db_dir"` TopazTemplateDir string `json:"topaz_tmpl_dir"` TopazDir string `json:"topaz_dir"` } `json:"config"` Runtime struct { ActiveConfigurationName string `json:"active_configuration_name"` ActiveConfigurationFile string `json:"active_configuration_file"` RunningConfigurationName string `json:"running_configuration_name"` RunningConfigurationFile string `json:"running_configuration_file"` RunningContainerName string `json:"running_container_name"` TopazConfigFile string `json:"topaz_json"` } `json:"runtime"` Default struct { ContainerRegistry string `json:"container_registry"` ContainerImage string `json:"container_image"` ContainerTag string `json:"container_tag"` ContainerPlatform string `json:"container_platform"` NoCheck bool `json:"topaz_no_check"` } `json:"default"` Directory struct { DirectorySvc string `json:"topaz_directory_svc"` DirectoryKey string `json:"topaz_directory_key"` DirectoryToken string `json:"topaz_directory_token"` Insecure bool `json:"topaz_insecure"` TenantID string `json:"aserto_tenant_id"` } `json:"directory"` Authorizer struct { AuthorizerSvc string `json:"topaz_authorizer_svc"` AuthorizerKey string `json:"topaz_authorizer_key"` AuthorizerToken string `json:"topaz_authorizer_token"` Insecure bool `json:"topaz_insecure"` TenantID string `json:"aserto_tenant_id"` } `json:"authorizer"` }
type InfoConfigCmd ¶
type ListConfigCmd ¶
type ListConfigCmd struct {
ConfigDir string `flag:"" required:"false" default:"${topaz_cfg_dir}" help:"path to config folder" `
}
type NewConfigCmd ¶
type NewConfigCmd struct { Name ConfigName `short:"n" help:"config name"` LocalPolicyImage string `short:"l" help:"local policy image name"` Resource string `short:"r" help:"resource url"` Stdout bool `short:"p" help:"print to stdout"` EdgeDirectory bool `short:"d" help:"enable edge directory" default:"false"` Force bool `flag:"" default:"false" short:"f" required:"false" help:"skip confirmation prompt"` }
type RenameConfigCmd ¶
type RenameConfigCmd struct { Name ConfigName `arg:"" required:"" help:"topaz config name"` NewName ConfigName `arg:"" required:"" help:"topaz new config name"` ConfigDir string `flag:"" required:"false" default:"${topaz_cfg_dir}" help:"path to config folder" ` }
type UseConfigCmd ¶
type UseConfigCmd struct { Name ConfigName `arg:"" required:"" help:"topaz config name"` ConfigDir string `flag:"" required:"false" default:"${topaz_cfg_dir}" help:"path to config folder" ` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.