configure

package
v0.32.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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"`
}

func (*ConfigCmd) Run

func (cmd *ConfigCmd) Run(c *cc.CommonCtx) error

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" `
}

func (*DeleteConfigCmd) Run

func (cmd *DeleteConfigCmd) Run(c *cc.CommonCtx) error

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"`
		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 InfoConfigCmd struct{}

func (InfoConfigCmd) Run

func (cmd InfoConfigCmd) Run(c *cc.CommonCtx) error

type ListConfigCmd

type ListConfigCmd struct {
	ConfigDir string `flag:"" required:"false" default:"${topaz_cfg_dir}" help:"path to config folder" `
}

func (ListConfigCmd) Run

func (cmd ListConfigCmd) Run(c *cc.CommonCtx) error

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"`
}

func (*NewConfigCmd) Run

func (cmd *NewConfigCmd) Run(c *cc.CommonCtx) error

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" `
}

func (*RenameConfigCmd) Run

func (cmd *RenameConfigCmd) Run(c *cc.CommonCtx) error

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" `
}

func (*UseConfigCmd) Run

func (cmd *UseConfigCmd) Run(c *cc.CommonCtx) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL