Documentation ¶
Index ¶
- Constants
- type BackupCmd
- type CheckCmd
- type DeleteCmd
- type DeleteManifestCmd
- type DeleteObjectCmd
- type DeleteRelationCmd
- type DirectoryCmd
- type ExportCmd
- type FormatVersion
- type GetCmd
- type GetManifestCmd
- type GetObjectCmd
- type GetRelationCmd
- type ImportCmd
- type ListCmd
- type ListObjectsCmd
- type ListRelationsCmd
- type RestoreCmd
- type SearchCmd
- type SetCmd
- type SetManifestCmd
- type SetObjectCmd
- type SetRelationCmd
- type TestCmd
- type TestExecCmd
- type TestTemplateCmd
Constants ¶
View Source
const ( CheckUnknown checkType = iota Check CheckRelation CheckPermission CheckDecision )
Variables ¶
This section is empty.
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"` clients.DirectoryConfig }
type CheckCmd ¶ added in v0.32.4
type CheckCmd struct { Request string `` /* 134-byte string literal not displayed */ Template bool `name:"template" short:"t" help:"prints a check permission request template on stdout"` Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"` clients.DirectoryConfig }
type DeleteCmd ¶ added in v0.32.4
type DeleteCmd struct { Object DeleteObjectCmd `cmd:"" help:"delete object"` Relation DeleteRelationCmd `cmd:"" help:"delete relation"` Manifest DeleteManifestCmd `cmd:"" help:"delete manifest"` }
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 DeleteObjectCmd ¶ added in v0.32.4
type DeleteObjectCmd struct { Request string `arg:"" type:"string" name:"request" optional:"" help:"file path to delete object request or '-' to read from stdin"` Template bool `name:"template" short:"t" help:"prints a delete object request template on stdout"` Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"` clients.DirectoryConfig }
func (*DeleteObjectCmd) BeforeReset ¶ added in v0.32.6
func (cmd *DeleteObjectCmd) BeforeReset(ctx *kong.Context) error
type DeleteRelationCmd ¶ added in v0.32.4
type DeleteRelationCmd struct { Request string `arg:"" type:"string" name:"request" optional:"" help:"file path to delete relation request or '-' to read from stdin"` Template bool `name:"template" short:"t" help:"prints a delete relation request template on stdout"` Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"` clients.DirectoryConfig }
type DirectoryCmd ¶
type DirectoryCmd struct { Check CheckCmd `cmd:"" help:"check permission"` Search SearchCmd `cmd:"" help:"search relation graph"` Get GetCmd `cmd:"" help:"get object|relation|manifest"` Set SetCmd `cmd:"" help:"set object|relation|manifest"` Delete DeleteCmd `cmd:"" help:"delete object|relation|manifest"` List ListCmd `cmd:"" help:"list objects|relations"` 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"` clients.DirectoryConfig }
type GetCmd ¶ added in v0.32.4
type GetCmd struct { Object GetObjectCmd `cmd:"" help:"get object"` Relation GetRelationCmd `cmd:"" help:"get relation"` Manifest GetManifestCmd `cmd:"" help:"get manifest"` }
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 GetObjectCmd ¶ added in v0.32.4
type GetObjectCmd struct { Request string `` /* 128-byte string literal not displayed */ Template bool `name:"template" short:"t" help:"prints a get object request template on stdout"` Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"` clients.DirectoryConfig }
func (*GetObjectCmd) BeforeReset ¶ added in v0.32.6
func (cmd *GetObjectCmd) BeforeReset(ctx *kong.Context) error
type GetRelationCmd ¶ added in v0.32.4
type GetRelationCmd struct { Request string `` /* 130-byte string literal not displayed */ Template bool `name:"template" short:"t" help:"prints a get relation request template on stdout"` Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"` clients.DirectoryConfig }
type ImportCmd ¶
type ImportCmd struct { Directory string `short:"d" required:"" help:"directory containing .json data"` clients.DirectoryConfig }
type ListCmd ¶ added in v0.32.4
type ListCmd struct { Objects ListObjectsCmd `cmd:"" help:"list objects"` Relations ListRelationsCmd `cmd:"" help:"list relations"` }
type ListObjectsCmd ¶ added in v0.32.4
type ListObjectsCmd struct { Request string `arg:"" type:"string" name:"request" optional:"" help:"file path to list objects request or '-' to read from stdin"` Template bool `name:"template" short:"t" help:"prints a list objects request template on stdout"` Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"` clients.DirectoryConfig }
func (*ListObjectsCmd) BeforeReset ¶ added in v0.32.6
func (cmd *ListObjectsCmd) BeforeReset(ctx *kong.Context) error
type ListRelationsCmd ¶ added in v0.32.4
type ListRelationsCmd struct { Request string `arg:"" type:"s" name:"request" optional:"" help:"file path to list relations request or '-' to read from stdin"` Template bool `name:"template" short:"t" help:"prints a list relations request template on stdout"` Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"` clients.DirectoryConfig }
type RestoreCmd ¶
type RestoreCmd struct { File string `arg:"" default:"backup.tar.gz" help:"absolute file path to local backup tarball"` clients.DirectoryConfig }
type SearchCmd ¶ added in v0.32.4
type SearchCmd struct { Request string `` /* 127-byte string literal not displayed */ Template bool `name:"template" short:"t" help:"prints a get graph request template on stdout"` Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"` clients.DirectoryConfig }
type SetCmd ¶ added in v0.32.4
type SetCmd struct { Object SetObjectCmd `cmd:"" help:"set object"` Relation SetRelationCmd `cmd:"" help:"set relation"` Manifest SetManifestCmd `cmd:"" help:"set manifest"` }
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 SetObjectCmd ¶ added in v0.32.4
type SetObjectCmd struct { Request string `arg:"" type:"string" name:"request" optional:"" help:"file path to set object request or '-' to read from stdin"` Template bool `name:"template" short:"t" help:"prints a set object request template on stdout"` Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"` clients.DirectoryConfig }
func (*SetObjectCmd) BeforeReset ¶ added in v0.32.6
func (cmd *SetObjectCmd) BeforeReset(ctx *kong.Context) error
type SetRelationCmd ¶ added in v0.32.4
type SetRelationCmd struct { Request string `arg:"" type:"string" name:"request" optional:"" help:"file path to set relation request or '-' to read from stdin"` Template bool `name:"template" short:"t" help:"prints a set relation request template on stdout"` Editor bool `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"` 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 ¶
type TestTemplateCmd struct {
Pretty bool `flag:"" default:"false" help:"pretty print JSON"`
}
Click to show internal directories.
Click to hide internal directories.