Documentation
¶
Index ¶
- Variables
- func CheckRunning(c *cc.CommonCtx) error
- func CreateCertsDir() (string, error)
- func CreateConfigDir() (string, error)
- func CreateDataDir() (string, error)
- func ProtoToStr(msg proto.Message) string
- func WriteConfig(w io.Writer, templ string, params *templateParams) error
- type BackupCmd
- type CLI
- type ConfigureCmd
- type ExportCmd
- type ImportCmd
- type InstallCmd
- type LoadCmd
- type RestoreCmd
- type RunCmd
- type SaveCmd
- type StartCmd
- type StatusCmd
- type StopCmd
- type TestCmd
- type TestExecCmd
- type TestTemplateCmd
- type UninstallCmd
- type UpdateCmd
- type VersionCmd
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotRunning = errors.New("topaz is not running, use 'topaz start' or 'topaz run' to start")
Functions ¶
func CheckRunning ¶ added in v0.20.17
func CreateCertsDir ¶ added in v0.20.8
func CreateConfigDir ¶
func CreateDataDir ¶ added in v0.20.8
func ProtoToStr ¶ added in v0.25.8
Types ¶
type BackupCmd ¶
type CLI ¶
type CLI struct {
Start StartCmd `cmd:"" help:"start topaz in daemon mode"`
Stop StopCmd `cmd:"" help:"stop topaz instance"`
Status StatusCmd `cmd:"" help:"status of topaz daemon process"`
Run RunCmd `cmd:"" help:"run topaz in console mode"`
Load LoadCmd `cmd:"" help:"load manifest from file"`
Save SaveCmd `cmd:"" help:"save manifest to file"`
Import ImportCmd `cmd:"" help:"import directory objects"`
Export ExportCmd `cmd:"" help:"export directory objects"`
Backup BackupCmd `cmd:"" help:"backup directory data"`
Restore RestoreCmd `cmd:"" help:"restore directory data"`
Test TestCmd `cmd:"" help:"execute assertions"`
Install InstallCmd `cmd:"" help:"install topaz container"`
Configure ConfigureCmd `cmd:"" help:"configure topaz service"`
Update UpdateCmd `cmd:"" help:"update topaz container version"`
Uninstall UninstallCmd `cmd:"" help:"uninstall topaz container"`
Version VersionCmd `cmd:"" help:"version information"`
NoCheck bool `name:"no-check" env:"TOPAZ_NO_CHECK" help:"disable local container status check"`
}
type ConfigureCmd ¶
type ConfigureCmd struct {
PolicyName string `short:"n" help:"policy name"`
LocalPolicyImage string `short:"l" help:"local policy image name"`
Resource string `short:"r" help:"resource url"`
Stdout bool `short:"p" help:"generated configuration is printed to stdout but not saved"`
EdgeDirectory bool `short:"d" help:"enable edge directory" default:"false"`
SeedMetadata bool `short:"s" help:"enable seed metadata" default:"false"`
}
type ExportCmd ¶
type ImportCmd ¶
type InstallCmd ¶
type LoadCmd ¶
type RestoreCmd ¶
type RunCmd ¶
type RunCmd struct {
ContainerName string `optional:"" default:"topaz" help:"container name"`
ContainerVersion string `optional:"" default:"latest" help:"container version" `
Hostname string `optional:"" help:"hostname for docker to set"`
Env []string `optional:"" short:"e" help:"additional environment variable names to be passed to container"`
}
type SaveCmd ¶
type StartCmd ¶
type StartCmd struct {
ContainerName string `optional:"" default:"topaz" help:"container name"`
ContainerVersion string `optional:"" default:"latest" help:"container version" `
Hostname string `optional:"" help:"hostname for docker to set"`
Env []string `optional:"" short:"e" help:"additional environment variable names to be passed to container"`
}
type TestCmd ¶ added in v0.25.8
type TestCmd struct {
Exec TestExecCmd `cmd:"" help:"execute assertions"`
Template TestTemplateCmd `cmd:"" help:"output assertions template"`
}
type TestExecCmd ¶ added in v0.25.8
type TestTemplateCmd ¶ added in v0.25.8
type TestTemplateCmd struct {
Pretty bool `arg:"" default:"false" help:"pretty print JSON"`
}
type UninstallCmd ¶
type UninstallCmd struct{}
type UpdateCmd ¶ added in v0.20.19
type VersionCmd ¶
type VersionCmd struct {
Container bool `short:"c" help:"display topazd container version" default:"false"`
ContainerName string `optional:"" default:"topaz" help:"container name"`
ContainerVersion string `optional:"" default:"latest" help:"container version"`
Platform string `optional:"" default:"linux/amd64" help:"set platform if server is multi-platform capable"`
}
Click to show internal directories.
Click to hide internal directories.