directory

package
v0.33.28 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 31 Imported by: 1 module, 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 {
	dsc.Config

	File string `arg:"" default:"backup.tar.gz" help:"path to target backup file"`
}

func (*BackupCmd) Run

func (cmd *BackupCmd) Run(ctx context.Context) error

type CheckCmd

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

func (*CheckCmd) Run

func (cmd *CheckCmd) Run(ctx context.Context) error

type ChecksCmd

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

func (*ChecksCmd) Run

func (cmd *ChecksCmd) Run(ctx context.Context) error

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 DeleteManifestCmd struct {
	dsc.Config

	Force bool `flag:"" short:"f" default:"false" help:"do not ask for confirmation to delete the manifest"`
}

func (*DeleteManifestCmd) Run

func (cmd *DeleteManifestCmd) Run(ctx context.Context) error

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

func (*DeleteObjectCmd) Run

func (cmd *DeleteObjectCmd) Run(ctx context.Context) error

type DeleteRelationCmd

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

func (*DeleteRelationCmd) Run

func (cmd *DeleteRelationCmd) Run(ctx context.Context) 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|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:""`
}

func (*ExportCmd) Run

func (cmd *ExportCmd) Run(ctx context.Context) error

type GetCmd

type GetCmd struct {
	Object   GetObjectCmd   `cmd:"" help:"get object"`
	Relation GetRelationCmd `cmd:"" help:"get relation"`
	Manifest GetManifestCmd `cmd:"" help:"get manifest"`
	Model    GetModelCmd    `cmd:"" help:"get model"`
}

type GetManifestCmd

type GetManifestCmd struct {
	dsc.Config

	File   string `arg:"" help:"file path to manifest target file" type:"path" optional:""`
	Stdout bool   `flag:"" help:"output manifest to --stdout"`
}

func (*GetManifestCmd) Run

func (cmd *GetManifestCmd) Run(ctx context.Context) error

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

func (*GetModelCmd) Run added in v0.33.15

func (cmd *GetModelCmd) Run(ctx context.Context) error

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

func (*GetObjectCmd) Run

func (cmd *GetObjectCmd) Run(ctx context.Context) error

type GetRelationCmd

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

func (*GetRelationCmd) Run

func (cmd *GetRelationCmd) Run(ctx context.Context) error

type ImportCmd

type ImportCmd struct {
	dsc.Config

	File  string `flag:"file" short:"f" type:"path" help:"path to source import file"`
	Stdin bool   `flag:"stdin" help:"import data from --stdin" xor:"file,stdin" required:""`
}

func (*ImportCmd) Run

func (cmd *ImportCmd) Run(ctx context.Context) error

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

func (*ListObjectsCmd) Run

func (cmd *ListObjectsCmd) Run(ctx context.Context) error

type ListRelationsCmd

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

func (*ListRelationsCmd) Run

func (cmd *ListRelationsCmd) Run(ctx context.Context) error

type RestoreCmd

type RestoreCmd struct {
	dsc.Config

	File string `arg:"" default:"backup.tar.gz" help:"path to source backup file"`
}

func (*RestoreCmd) Run

func (cmd *RestoreCmd) Run(ctx context.Context) error

type SearchCmd

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

func (*SearchCmd) Run

func (cmd *SearchCmd) Run(ctx context.Context) error

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 SetManifestCmd struct {
	dsc.Config

	File  string `arg:"" help:"file path to manifest source file" type:"path" optional:""`
	Stdin bool   `flag:"" help:"set manifest from --stdin"`
}

func (*SetManifestCmd) Run

func (cmd *SetManifestCmd) Run(ctx context.Context) error

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

func (*SetObjectCmd) Run

func (cmd *SetObjectCmd) Run(ctx context.Context) error

type SetRelationCmd

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

func (*SetRelationCmd) Run

func (cmd *SetRelationCmd) Run(ctx context.Context) error

type StatsCmd

type StatsCmd struct {
	dsc.Config

	Output string `flag:"" short:"o" enum:"table,json" default:"table" help:"output format"`
}

func (*StatsCmd) Run

func (cmd *StatsCmd) Run(ctx context.Context) 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(ctx context.Context) error

type TestTemplateCmd

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

func (*TestTemplateCmd) Run

func (cmd *TestTemplateCmd) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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