cmd

package
v0.32.9 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 {
	Start      topaz.StartCmd           `cmd:"" help:"start topaz instance (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"`
	Config     configure.ConfigCmd      `cmd:"" help:"configure topaz instance"`
	Run        topaz.RunCmd             `cmd:"" help:"start topaz instance (console mode)"`
	Templates  templates.TemplateCmd    `cmd:"" help:"template commands"`
	Console    topaz.ConsoleCmd         `cmd:"" help:"open topaz console in the browser"`
	Directory  directory.DirectoryCmd   `cmd:"" aliases:"ds" help:"directory commands"`
	Authorizer authorizer.AuthorizerCmd `cmd:"" aliases:"az" help:"authorizer commands"`
	Certs      certs.CertsCmd           `cmd:"" help:"certificate management"`
	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:""`
	Manifest   ManifestCmd              `cmd:"" help:"'topaz manifest ...' was moved to 'topaz directory get|set|delete manifest'" hidden:""`
}

type ConfigureCmd

type ConfigureCmd struct{}

func (*ConfigureCmd) Run

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

type DeleteManifestCmd added in v0.30.0

type DeleteManifestCmd struct{}

func (*DeleteManifestCmd) Run added in v0.30.0

func (cmd *DeleteManifestCmd) 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 GetManifestCmd added in v0.30.0

type GetManifestCmd struct{}

func (*GetManifestCmd) Run added in v0.30.0

func (cmd *GetManifestCmd) 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 ManifestCmd added in v0.30.0

type ManifestCmd struct {
	Get    GetManifestCmd    `cmd:"" help:"'topaz manifest get' was moved to 'topaz directory get manifest'" hidden:""`
	Set    SetManifestCmd    `cmd:"" help:"'topaz manifest set' was moved to 'topaz directory set manifest'" hidden:""`
	Delete DeleteManifestCmd `cmd:"" help:"'topaz manifest delete' was moved to 'topaz directory delete manifest'" hidden:""`
}

func (*ManifestCmd) Run added in v0.32.4

func (cmd *ManifestCmd) 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 SetManifestCmd added in v0.30.0

type SetManifestCmd struct{}

func (*SetManifestCmd) Run added in v0.30.0

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

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