cmd

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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLIConfigurationFile = "topaz.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupCmd

type BackupCmd struct{}

func (*BackupCmd) Run added in v0.0.16

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

type CLI

type CLI struct {
	Run        topaz.RunCmd             `cmd:"" help:"run topaz in console mode"`
	Start      topaz.StartCmd           `cmd:"" help:"start topaz in daemon mode"`
	Stop       topaz.StopCmd            `cmd:"" help:"stop topaz instance"`
	Restart    topaz.RestartCmd         `cmd:"" help:"restart topaz instance"`
	Status     topaz.StatusCmd          `cmd:"" help:"status of topaz daemon process"`
	Manifest   directory.ManifestCmd    `cmd:"" help:"manifest commands"`
	Templates  templates.TemplateCmd    `cmd:"" help:"template commands"`
	Console    topaz.ConsoleCmd         `cmd:"" help:"open console in the browser"`
	Directory  directory.DirectoryCmd   `cmd:"" aliases:"ds" help:"directory commands"`
	Authorizer authorizer.AuthorizerCmd `cmd:"" aliases:"az" help:"authorizer commands"`
	Config     configure.ConfigCmd      `cmd:"" help:"configure topaz service"`
	Certs      certs.CertsCmd           `cmd:"" help:"cert commands"`
	Install    topaz.InstallCmd         `cmd:"" help:"install topaz container"`
	Uninstall  topaz.UninstallCmd       `cmd:"" help:"uninstall topaz container"`
	Update     topaz.UpdateCmd          `cmd:"" help:"update topaz container version"`
	Version    VersionCmd               `cmd:"" help:"version information"`
	NoCheck    bool                     `name:"no-check" json:"noCheck,omitempty" short:"N" env:"TOPAZ_NO_CHECK" help:"disable local container status check"`
	LogLevel   int                      `name:"log" short:"L" type:"counter" default:"0" help:"log level"`
	Import     ImportCmd                `cmd:"" help:"'topaz import' was moved to 'topaz directory import'" hidden:""`
	Export     ExportCmd                `cmd:"" help:"'topaz export' was moved to 'topaz directory export'" hidden:""`
	Backup     BackupCmd                `cmd:"" help:"'topaz backup' was moved to 'topaz directory backup'" hidden:""`
	Restore    RestoreCmd               `cmd:"" help:"'topaz restore' was moved to 'topaz directory restore'" hidden:""`
	Configure  ConfigureCmd             `cmd:"" help:"'topaz configure' was moved to 'topaz config new'" hidden:""`
	Test       TestCmd                  `cmd:"" help:"'topaz test' was moved to 'topaz directory test'" hidden:""`
}

type ConfigureCmd

type ConfigureCmd struct{}

func (*ConfigureCmd) Run

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

type ExportCmd

type ExportCmd struct{}

func (*ExportCmd) Run added in v0.20.7

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

type ImportCmd

type ImportCmd struct{}

func (*ImportCmd) Run added in v0.20.0

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

type RestoreCmd

type RestoreCmd struct{}

func (*RestoreCmd) Run added in v0.0.16

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

type SaveContext added in v0.32.0

type SaveContext bool
var (
	Save SaveContext
)

type TestCmd added in v0.25.8

type TestCmd struct {
	Exec     TestExecCmd     `cmd:"" help:"'topaz test exec' was moved to 'topaz directory test exec'" hidden:""`
	Template TestTemplateCmd `cmd:"" help:"'topaz test template' was moved to 'topaz directory test template'" hidden:""`
}

func (*TestCmd) Run added in v0.32.0

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

type TestExecCmd added in v0.25.8

type TestExecCmd struct{}

func (*TestExecCmd) Run added in v0.25.8

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

type TestTemplateCmd added in v0.25.8

type TestTemplateCmd struct{}

func (*TestTemplateCmd) Run added in v0.25.8

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

type VersionCmd

type VersionCmd struct {
	Container         bool   `short:"c" help:"display topazd container version" default:"false"`
	ContainerRegistry string `optional:"" default:"${container_registry}" env:"CONTAINER_REGISTRY" help:"container registry (host[:port]/repo)"`
	ContainerImage    string `optional:"" default:"${container_image}" env:"CONTAINER_IMAGE" help:"container image name"`
	ContainerTag      string `optional:"" default:"${container_tag}" env:"CONTAINER_TAG" help:"container tag"`
	ContainerPlatform string `optional:"" default:"${container_platform}" env:"CONTAINER_PLATFORM" help:"container platform"`
	ContainerVersion  string `optional:"" hidden:"" default:"" env:"CONTAINER_VERSION"`
}

func (*VersionCmd) Run

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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