Documentation
¶
Index ¶
- type BackupCmd
- type CheckCmd
- type ChecksCmd
- type DataCmd
- type DeleteCmd
- type DeleteManifestCmd
- type DeleteObjectCmd
- type DeleteRelationCmd
- type DirectoryCmd
- type ExportCmd
- type GetCmd
- type GetManifestCmd
- type GetModelCmd
- 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 StatsCmd
- type TestCmd
- type TestExecCmd
- type TestTemplateCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupCmd ¶
type CheckCmd ¶
type CheckCmd struct {
clients.RequestArgs
dsc.Config
// contains filtered or unexported fields
}
type ChecksCmd ¶
type ChecksCmd struct {
clients.RequestArgs
dsc.Config
// contains filtered or unexported fields
}
type DataCmd ¶ added in v0.33.15
type DataCmd struct {
Import data.ImportCmd `cmd:"" help:"import directory data (COMPAT)"`
Export data.ExportCmd `cmd:"" help:"export directory data (COMPAT)"`
Backup data.BackupCmd `cmd:"" help:"backup directory data (COMPAT)"`
Restore data.RestoreCmd `cmd:"" help:"restore directory data (COMPAT)"`
}
type DeleteCmd ¶
type DeleteCmd struct {
Object DeleteObjectCmd `cmd:"" help:"delete object"`
Relation DeleteRelationCmd `cmd:"" help:"delete relation"`
Manifest DeleteManifestCmd `cmd:"" help:"delete manifest"`
}
type DeleteManifestCmd ¶
type DeleteObjectCmd ¶
type DeleteObjectCmd struct {
clients.RequestArgs
dsc.Config
// contains filtered or unexported fields
}
func (*DeleteObjectCmd) BeforeReset ¶
func (cmd *DeleteObjectCmd) BeforeReset(ctx *kong.Context) error
type DeleteRelationCmd ¶
type DeleteRelationCmd struct {
clients.RequestArgs
dsc.Config
// contains filtered or unexported fields
}
type DirectoryCmd ¶
type DirectoryCmd struct {
Check CheckCmd `cmd:"" help:"check single permission"`
Checks ChecksCmd `cmd:"" help:"check multiple permissions"`
Search SearchCmd `cmd:"" help:"search relation graph"`
Get GetCmd `cmd:"" help:"get object|relation|manifest|model"`
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"`
Stats StatsCmd `cmd:"" help:"directory statistics"`
Test TestCmd `cmd:"" help:"execute directory assertions"`
Data DataCmd `cmd:"" help:"backwards compatible [import|export|backup|restore] commands"`
}
type ExportCmd ¶
type ExportCmd struct {
dsc.Config
File string `flag:"file" short:"f" type:"path" help:"path to target export file"`
Stdout bool `flag:"stdout" help:"output to stdout" xor:"file,stdout" required:""`
Export string `flag:"export" short:"x" enum:"obj,rel,all" default:"all" help:"export [obj|rel|all] types" required:""`
}
type GetCmd ¶
type GetCmd struct {
Object GetObjectCmd `cmd:"" help:"get object"`
Relation GetRelationCmd `cmd:"" help:"get relation"`
Manifest GetManifestCmd `cmd:"" help:"get manifest"`
}
type GetManifestCmd ¶
type GetModelCmd ¶ added in v0.33.15
type GetModelCmd struct {
dsc.Config
File string `flag:"" help:"file path to model target file" type:"path" optional:""`
Stdout bool `flag:"" help:"output model to --stdout" default:"true"`
Manifest string `flag:"" help:"file path to manifest source file" type:"existingfile" optional:""`
Invert bool `flag:"" help:"return the inverted model representation" hidden:""`
}
type GetObjectCmd ¶
type GetObjectCmd struct {
clients.RequestArgs
dsc.Config
// contains filtered or unexported fields
}
func (*GetObjectCmd) BeforeReset ¶
func (cmd *GetObjectCmd) BeforeReset(ctx *kong.Context) error
type GetRelationCmd ¶
type GetRelationCmd struct {
clients.RequestArgs
dsc.Config
// contains filtered or unexported fields
}
type ImportCmd ¶
type ListCmd ¶
type ListCmd struct {
Objects ListObjectsCmd `cmd:"" help:"list objects"`
Relations ListRelationsCmd `cmd:"" help:"list relations"`
}
type ListObjectsCmd ¶
type ListObjectsCmd struct {
clients.RequestArgs
dsc.Config
// contains filtered or unexported fields
}
func (*ListObjectsCmd) BeforeReset ¶
func (cmd *ListObjectsCmd) BeforeReset(ctx *kong.Context) error
type ListRelationsCmd ¶
type ListRelationsCmd struct {
clients.RequestArgs
dsc.Config
// contains filtered or unexported fields
}
type RestoreCmd ¶
type SearchCmd ¶
type SearchCmd struct {
clients.RequestArgs
dsc.Config
// contains filtered or unexported fields
}
type SetCmd ¶
type SetCmd struct {
Object SetObjectCmd `cmd:"" help:"set object"`
Relation SetRelationCmd `cmd:"" help:"set relation"`
Manifest SetManifestCmd `cmd:"" help:"set manifest"`
}
type SetManifestCmd ¶
type SetObjectCmd ¶
type SetObjectCmd struct {
clients.RequestArgs
dsc.Config
// contains filtered or unexported fields
}
func (*SetObjectCmd) BeforeReset ¶
func (cmd *SetObjectCmd) BeforeReset(ctx *kong.Context) error
type SetRelationCmd ¶
type SetRelationCmd struct {
clients.RequestArgs
dsc.Config
// contains filtered or unexported fields
}
type StatsCmd ¶
type TestCmd ¶
type TestCmd struct {
Exec TestExecCmd `cmd:"" help:"execute assertions"`
Template TestTemplateCmd `cmd:"" help:"output assertions template"`
}
type TestExecCmd ¶
type TestExecCmd struct {
common.TestExecCmd
dsc.Config
}
type TestTemplateCmd ¶
type TestTemplateCmd struct {
Pretty bool `flag:"" default:"false" help:"pretty print JSON"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.