directory

package
v0.32.59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

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"`
	dsc.Config
}

func (*BackupCmd) Run

func (cmd *BackupCmd) Run(c *cc.CommonCtx) error

type CheckCmd added in v0.32.4

type CheckCmd struct {
	clients.RequestArgs
	dsc.Config
	// contains filtered or unexported fields
}

func (*CheckCmd) Run added in v0.32.4

func (cmd *CheckCmd) Run(c *cc.CommonCtx) error

type ChecksCmd added in v0.32.56

type ChecksCmd struct {
	clients.RequestArgs
	dsc.Config
	// contains filtered or unexported fields
}

func (*ChecksCmd) Run added in v0.32.56

func (cmd *ChecksCmd) Run(c *cc.CommonCtx) error

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"`
	dsc.Config
}

func (*DeleteManifestCmd) Run added in v0.32.2

func (cmd *DeleteManifestCmd) Run(c *cc.CommonCtx) error

type DeleteObjectCmd added in v0.32.4

type DeleteObjectCmd struct {
	clients.RequestArgs
	dsc.Config
	// contains filtered or unexported fields
}

func (*DeleteObjectCmd) BeforeReset added in v0.32.6

func (cmd *DeleteObjectCmd) BeforeReset(ctx *kong.Context) error

func (*DeleteObjectCmd) Run added in v0.32.4

func (cmd *DeleteObjectCmd) Run(c *cc.CommonCtx) error

type DeleteRelationCmd added in v0.32.4

type DeleteRelationCmd struct {
	clients.RequestArgs
	dsc.Config
	// contains filtered or unexported fields
}

func (*DeleteRelationCmd) Run added in v0.32.4

func (cmd *DeleteRelationCmd) Run(c *cc.CommonCtx) error

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"`
	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"`
}

type ExportCmd

type ExportCmd struct {
	Directory string `short:"d" required:"" help:"directory to write .json data" default:"${cwd}"`
	dsc.Config
}

func (*ExportCmd) Run

func (cmd *ExportCmd) Run(c *cc.CommonCtx) error

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"`
	dsc.Config
}

func (*GetManifestCmd) Run added in v0.32.2

func (cmd *GetManifestCmd) Run(c *cc.CommonCtx) error

type GetObjectCmd added in v0.32.4

type GetObjectCmd struct {
	clients.RequestArgs
	dsc.Config
	// contains filtered or unexported fields
}

func (*GetObjectCmd) BeforeReset added in v0.32.6

func (cmd *GetObjectCmd) BeforeReset(ctx *kong.Context) error

func (*GetObjectCmd) Run added in v0.32.4

func (cmd *GetObjectCmd) Run(c *cc.CommonCtx) error

type GetRelationCmd added in v0.32.4

type GetRelationCmd struct {
	clients.RequestArgs
	dsc.Config
	// contains filtered or unexported fields
}

func (*GetRelationCmd) Run added in v0.32.4

func (cmd *GetRelationCmd) Run(c *cc.CommonCtx) error

type ImportCmd

type ImportCmd struct {
	Directory string `short:"d" required:"" help:"directory containing .json data"  default:"${cwd}"`
	dsc.Config
}

func (*ImportCmd) Run

func (cmd *ImportCmd) Run(c *cc.CommonCtx) error

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 {
	clients.RequestArgs
	dsc.Config
	// contains filtered or unexported fields
}

func (*ListObjectsCmd) BeforeReset added in v0.32.6

func (cmd *ListObjectsCmd) BeforeReset(ctx *kong.Context) error

func (*ListObjectsCmd) Run added in v0.32.4

func (cmd *ListObjectsCmd) Run(c *cc.CommonCtx) error

type ListRelationsCmd added in v0.32.4

type ListRelationsCmd struct {
	clients.RequestArgs
	dsc.Config
	// contains filtered or unexported fields
}

func (*ListRelationsCmd) Run added in v0.32.4

func (cmd *ListRelationsCmd) Run(c *cc.CommonCtx) error

type RestoreCmd

type RestoreCmd struct {
	File string `arg:""  default:"backup.tar.gz" help:"absolute file path to local backup tarball"`
	dsc.Config
}

func (*RestoreCmd) Run

func (cmd *RestoreCmd) Run(c *cc.CommonCtx) error

type SearchCmd added in v0.32.4

type SearchCmd struct {
	clients.RequestArgs
	dsc.Config
	// contains filtered or unexported fields
}

func (*SearchCmd) Run added in v0.32.4

func (cmd *SearchCmd) Run(c *cc.CommonCtx) error

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"`
	dsc.Config
}

func (*SetManifestCmd) Run added in v0.32.2

func (cmd *SetManifestCmd) Run(c *cc.CommonCtx) error

type SetObjectCmd added in v0.32.4

type SetObjectCmd struct {
	clients.RequestArgs
	dsc.Config
	// contains filtered or unexported fields
}

func (*SetObjectCmd) BeforeReset added in v0.32.6

func (cmd *SetObjectCmd) BeforeReset(ctx *kong.Context) error

func (*SetObjectCmd) Run added in v0.32.4

func (cmd *SetObjectCmd) Run(c *cc.CommonCtx) error

type SetRelationCmd added in v0.32.4

type SetRelationCmd struct {
	clients.RequestArgs
	dsc.Config
	// contains filtered or unexported fields
}

func (*SetRelationCmd) Run added in v0.32.4

func (cmd *SetRelationCmd) Run(c *cc.CommonCtx) error

type StatsCmd added in v0.32.20

type StatsCmd struct {
	Output string `flag:"" short:"o" enum:"table,json" default:"table" help:"output format"`
	dsc.Config
}

func (*StatsCmd) Run added in v0.32.20

func (cmd *StatsCmd) Run(c *cc.CommonCtx) error

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
}

func (*TestExecCmd) Run

func (cmd *TestExecCmd) Run(c *cc.CommonCtx) error

type TestTemplateCmd

type TestTemplateCmd struct {
	Pretty bool `flag:"" default:"false" help:"pretty print JSON"`
}

func (*TestTemplateCmd) Run

func (cmd *TestTemplateCmd) Run(c *cc.CommonCtx) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL