Documentation
¶
Index ¶
- Constants
- func UnmarshalRequest[T any, M Message[T]](src string, msg M) error
- type BackupCmd
- type DeleteManifestCmd
- type DirectoryCmd
- type ExportCmd
- type FormatVersion
- type GetManifestCmd
- type ImportCmd
- type ManifestCmd
- type Message
- type RestoreCmd
- type SetManifestCmd
- type TestCmd
- type TestExecCmd
- type TestTemplateCmd
Constants ¶
View Source
const ( CheckUnknown checkType = iota Check CheckRelation CheckPermission CheckDecision )
Variables ¶
This section is empty.
Functions ¶
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.DirectoryConfig }
type DeleteManifestCmd ¶ added in v0.32.2
type DeleteManifestCmd struct { Force bool `flag:"" help:"do not ask for conformation to delete manifest"` clients.DirectoryConfig }
type DirectoryCmd ¶
type DirectoryCmd struct { Import ImportCmd `cmd:"" help:"import directory data"` Export ExportCmd `cmd:"" help:"export directory data"` Backup BackupCmd `cmd:"" help:"backup directory data"` Restore RestoreCmd `cmd:"" help:"restore directory data"` Test TestCmd `cmd:"" help:"execute directory assertions"` }
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.DirectoryConfig }
type GetManifestCmd ¶ added in v0.32.2
type GetManifestCmd struct { Path string `arg:"path" help:"filepath to manifest file" type:"path" optional:""` Stdout bool `flag:"" help:"output manifest to --stdout"` clients.DirectoryConfig }
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.DirectoryConfig }
type ManifestCmd ¶ added in v0.32.2
type ManifestCmd struct { Get GetManifestCmd `cmd:"" help:"get manifest"` Set SetManifestCmd `cmd:"" help:"set manifest"` Delete DeleteManifestCmd `cmd:"" help:"delete manifest"` }
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.DirectoryConfig }
type SetManifestCmd ¶ added in v0.32.2
type SetManifestCmd struct { Path string `arg:"" help:"filepath to manifest file" type:"path" optional:""` Stdin bool `flag:"" help:"set manifest from --stdin"` clients.DirectoryConfig }
type TestCmd ¶
type TestCmd struct { Exec TestExecCmd `cmd:"" help:"execute assertions"` Template TestTemplateCmd `cmd:"" help:"output assertions template"` }
type TestExecCmd ¶
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.DirectoryConfig // contains filtered or unexported fields }
type TestTemplateCmd ¶
Click to show internal directories.
Click to hide internal directories.