Documentation ¶
Index ¶
- Constants
- Variables
- type BackupCmd
- type CLI
- type CertsCmd
- type ConfigureCmd
- type ConsoleCmd
- type DeleteManifestCmd
- type ExportCmd
- type FormatVersion
- type GenerateCertsCmd
- type GetManifestCmd
- type ImportCmd
- type InstallCmd
- type InstallTemplateCmd
- type ListCertsCmd
- type ListTemplatesCmd
- type LoadCmd
- type ManifestCmd
- type RemoveCertFileCmd
- type RestartCmd
- type RestoreCmd
- type RunCmd
- type SaveCmd
- type SetManifestCmd
- type StartCmd
- type StartRunCmd
- type StatusCmd
- type StopCmd
- type TemplateCmd
- type TestCmd
- type TestExecCmd
- type TestTemplateCmd
- type TrustCertsCmd
- type UninstallCmd
- type UpdateCmd
- type VerifyTemplateCmd
- type VersionCmd
Constants ¶
View Source
const ( CheckUnknown checkType = iota Check CheckRelation CheckPermission CheckDecision )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BackupCmd ¶
type BackupCmd struct { File string `arg:"" default:"backup.tar.gz" help:"absolute file path to make backup to"` Format FormatVersion `flag:"" short:"f" enum:"3,2" name:"format" default:"3" help:"format of json data"` clients.Config }
type CLI ¶
type CLI struct { Start StartCmd `cmd:"" help:"start topaz in daemon mode"` Stop StopCmd `cmd:"" help:"stop topaz instance"` Restart RestartCmd `cmd:"" help:"restart topaz instance"` Status StatusCmd `cmd:"" help:"status of topaz daemon process"` Run RunCmd `cmd:"" help:"run topaz in console mode"` Manifest ManifestCmd `cmd:"" help:"manifest commands"` Test TestCmd `cmd:"" help:"test assertions commands"` Templates TemplateCmd `cmd:"" help:"template commands"` Console ConsoleCmd `cmd:"" help:"open console in the browser"` 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"` Install InstallCmd `cmd:"" help:"install topaz container"` Configure ConfigureCmd `cmd:"" help:"configure topaz service"` Certs CertsCmd `cmd:"" help:"cert commands"` Update UpdateCmd `cmd:"" help:"update topaz container version"` Uninstall UninstallCmd `cmd:"" help:"uninstall topaz container"` Load LoadCmd `cmd:"" help:"load manifest from file (DEPRECATED)" hidden:""` Save SaveCmd `cmd:"" help:"save manifest to file (DEPRECATED)" hidden:""` Version VersionCmd `cmd:"" help:"version information"` NoCheck bool `name:"no-check" 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"` }
type CertsCmd ¶ added in v0.30.25
type CertsCmd struct { List ListCertsCmd `cmd:"" help:"list dev certs"` Generate GenerateCertsCmd `cmd:"" help:"generate dev certs"` Trust TrustCertsCmd `cmd:"" help:"trust/untrust dev certs"` Remove RemoveCertFileCmd `cmd:"" help:"remove dev certs"` }
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"` Force bool `flag:"" default:"false" short:"f" help:"forcefully create configuration"` EnableDirectoryV2 bool `flag:"" name:"enable-v2" default:"false" help:"enable directory version 2 services for backward compatibility"` }
type ConsoleCmd ¶ added in v0.30.0
type ConsoleCmd struct {
ConsoleAddress string `arg:"" default:"https://localhost:8080/ui/directory" help:"gateway address of the console service"`
}
type DeleteManifestCmd ¶ added in v0.30.0
type ExportCmd ¶
type ExportCmd struct { Directory string `short:"d" required:"" help:"directory to write .json data"` Format FormatVersion `flag:"" short:"f" enum:"3,2" name:"format" default:"3" help:"format of json data"` clients.Config }
type FormatVersion ¶ added in v0.30.1
type FormatVersion int
const ( V2 FormatVersion = 2 V3 FormatVersion = 3 )
type GenerateCertsCmd ¶ added in v0.30.25
type GenerateCertsCmd struct { CertsDir string `flag:"" default:"${topaz_certs_dir}" help:"path to dev certs folder" ` Force bool `flag:"" default:"false" help:"force generation of dev certs, overwriting existing cert files"` Trust bool `flag:"" default:"false" help:"add generated certs to trust store"` DNSNames []string `flag:"" default:"localhost" help:"list of DNS names used to generate dev certs"` }
type GetManifestCmd ¶ added in v0.30.0
type ImportCmd ¶
type ImportCmd struct { Directory string `short:"d" required:"" help:"directory containing .json data"` Format FormatVersion `flag:"" short:"f" enum:"3,2" name:"format" default:"3" help:"format of json data"` clients.Config }
type InstallCmd ¶
type InstallCmd struct { 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"` }
type InstallTemplateCmd ¶ added in v0.30.24
type InstallTemplateCmd struct { Name string `arg:"" required:"" help:"template name"` Force bool `flag:"" short:"f" default:"false" required:"false" help:"skip confirmation prompt"` NoConfigure bool `optional:"" default:"false" help:"do not run configure step, to prevent changes to the config .yaml file"` NoTests bool `optional:"" default:"false" help:"do not execute assertions as part of template installation"` NoConsole bool `optional:"" default:"false" help:"do not open console when template installation is finished"` 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"` ContainerName string `optional:"" default:"${container_name}" env:"CONTAINER_NAME" help:"container name"` ContainerHostname string `optional:"" name:"hostname" default:"" env:"CONTAINER_HOSTNAME" help:"hostname for docker to set"` TemplatesURL string `arg:"" required:"false" default:"https://topaz.sh/assets/templates/templates.json" help:"URL of template catalog"` ContainerVersion string `optional:"" hidden:"" default:"" env:"CONTAINER_VERSION"` clients.Config }
type ListCertsCmd ¶ added in v0.30.25
type ListCertsCmd struct {
CertsDir string `flag:"" required:"false" default:"${topaz_certs_dir}" help:"path to dev certs folder" `
}
type ListTemplatesCmd ¶ added in v0.30.24
type ListTemplatesCmd struct {
TemplatesURL string `arg:"" required:"false" default:"https://topaz.sh/assets/templates/templates.json" help:"URL of template catalog"`
}
type LoadCmd ¶
type ManifestCmd ¶ added in v0.30.0
type ManifestCmd struct { Get GetManifestCmd `cmd:"" help:"get manifest"` Set SetManifestCmd `cmd:"" help:"set manifest"` Delete DeleteManifestCmd `cmd:"" help:"delete manifest"` }
type RemoveCertFileCmd ¶ added in v0.30.25
type RemoveCertFileCmd struct {
CertsDir string `flag:"" required:"false" default:"${topaz_certs_dir}" help:"path to dev certs folder" `
}
type RestartCmd ¶ added in v0.31.5
type RestartCmd struct { StartRunCmd Wait bool `optional:"" default:"false" help:"wait for ports to be opened"` }
type RestoreCmd ¶
type RestoreCmd struct { File string `arg:"" default:"backup.tar.gz" help:"absolute file path to local backup tarball"` Format FormatVersion `flag:"" short:"f" enum:"3,2" name:"format" default:"3" help:"format of json data"` clients.Config }
type RunCmd ¶
type RunCmd struct {
StartRunCmd
}
type SaveCmd ¶
type SetManifestCmd ¶ added in v0.30.0
type StartCmd ¶
type StartCmd struct { StartRunCmd Wait bool `optional:"" default:"false" help:"wait for ports to be opened"` }
type StartRunCmd ¶ added in v0.31.0
type StartRunCmd struct { 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"` ContainerName string `optional:"" default:"${container_name}" env:"CONTAINER_NAME" help:"container name"` ContainerHostname string `optional:"" name:"hostname" default:"" env:"CONTAINER_HOSTNAME" help:"hostname for docker to set"` Env []string `optional:"" short:"e" help:"additional environment variable names to be passed to container"` ContainerVersion string `optional:"" hidden:"" default:"" env:"CONTAINER_VERSION"` }
type StatusCmd ¶
type StatusCmd struct {
ContainerName string `optional:"" default:"${container_name}" env:"CONTAINER_NAME" help:"container name"`
}
type StopCmd ¶
type TemplateCmd ¶ added in v0.30.24
type TemplateCmd struct { List ListTemplatesCmd `cmd:"" help:"list template"` Install InstallTemplateCmd `cmd:"" help:"install template"` Verify VerifyTemplateCmd `cmd:"" help:"verify template content links" hidden:""` }
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 TestExecCmd struct { File string `arg:"" default:"assertions.json" help:"filepath to assertions file"` NoColor bool `flag:"" default:"false" help:"disable colorized output"` Summary bool `flag:"" default:"false" help:"display test summary"` clients.Config // contains filtered or unexported fields }
type TestTemplateCmd ¶ added in v0.25.8
type TrustCertsCmd ¶ added in v0.30.25
type UninstallCmd ¶
type UninstallCmd struct { 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"` ContainerName string `optional:"" default:"${container_name}" env:"CONTAINER_NAME" help:"container name"` ContainerVersion string `optional:"" hidden:"" default:"" env:"CONTAINER_VERSION"` }
type UpdateCmd ¶ added in v0.20.19
type UpdateCmd struct { 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"` }
type VerifyTemplateCmd ¶ added in v0.31.0
type VerifyTemplateCmd struct {
TemplatesURL string `arg:"" required:"false" default:"https://topaz.sh/assets/templates/templates.json" help:"URL of template catalog"`
}
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"` }
Click to show internal directories.
Click to hide internal directories.