cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddApply

func AddApply(parent *cobra.Command)

AddApply adds a hidden "apply" command as an alias for "schema apply".

func AddCheck

func AddCheck(parent *cobra.Command)

AddCheck adds the check command to the parent command.

func AddDelete

func AddDelete(parent *cobra.Command)

AddDelete adds the delete command to the parent command.

func AddGet

func AddGet(parent *cobra.Command)

AddGet adds a hidden "get" command as an alias for "schema get".

func AddIAM

func AddIAM(parent *cobra.Command)

AddIAM adds the iam command and its subcommands to the parent command.

func AddLs

func AddLs(parent *cobra.Command)

AddLs adds the ls command and its subcommands to the parent command.

func AddRead

func AddRead(parent *cobra.Command)

AddRead adds the read command to the parent command.

func AddSchema

func AddSchema(parent *cobra.Command)

AddSchema adds the schema command and its subcommands to the parent command.

func AddWrite

func AddWrite(parent *cobra.Command)

AddWrite adds the write command to the parent command.

Types

type CheckOptions

type CheckOptions struct {
	ServerOptions
}

CheckOptions contains the options for the check command.

func (*CheckOptions) AddFlags

func (o *CheckOptions) AddFlags(cmd *cobra.Command)

func (*CheckOptions) Config

func (o *CheckOptions) Config() *command.OptionsSetConfig

func (*CheckOptions) Validate

func (o *CheckOptions) Validate() error

type DeleteOptions

type DeleteOptions struct {
	ServerOptions
	ObjectType string
	ObjectID   string
	Relation   string
}

DeleteOptions contains the options for the delete command.

func (*DeleteOptions) AddFlags

func (o *DeleteOptions) AddFlags(cmd *cobra.Command)

func (*DeleteOptions) Config

func (o *DeleteOptions) Config() *command.OptionsSetConfig

func (*DeleteOptions) Validate

func (o *DeleteOptions) Validate() error

type IAMOptions

type IAMOptions struct {
	ServerOptions
}

IAMOptions contains the options for IAM commands.

func (*IAMOptions) AddFlags

func (o *IAMOptions) AddFlags(cmd *cobra.Command)

func (*IAMOptions) Config

func (o *IAMOptions) Config() *command.OptionsSetConfig

func (*IAMOptions) Validate

func (o *IAMOptions) Validate() error

type LsOptions

type LsOptions struct {
	ServerOptions
	Decode bool
	System bool
}

LsOptions contains the options for the ls command.

func (*LsOptions) AddFlags

func (o *LsOptions) AddFlags(cmd *cobra.Command)

func (*LsOptions) Config

func (o *LsOptions) Config() *command.OptionsSetConfig

func (*LsOptions) Validate

func (o *LsOptions) Validate() error

type ReadOptions

type ReadOptions struct {
	ServerOptions
	ObjectType string
	ObjectID   string
	Relation   string
	Decode     bool
}

ReadOptions contains the options for the read command.

func (*ReadOptions) AddFlags

func (o *ReadOptions) AddFlags(cmd *cobra.Command)

func (*ReadOptions) Config

func (o *ReadOptions) Config() *command.OptionsSetConfig

func (*ReadOptions) Validate

func (o *ReadOptions) Validate() error

type SchemaOptions

type SchemaOptions struct {
	ServerOptions
}

SchemaOptions contains the options for schema commands.

func (*SchemaOptions) AddFlags

func (o *SchemaOptions) AddFlags(cmd *cobra.Command)

func (*SchemaOptions) Config

func (o *SchemaOptions) Config() *command.OptionsSetConfig

func (*SchemaOptions) Validate

func (o *SchemaOptions) Validate() error

type ServerOptions

type ServerOptions struct {
	Server string
	Token  string
}

ServerOptions contains the common server connection options.

func (*ServerOptions) AddFlags

func (so *ServerOptions) AddFlags(cmd *cobra.Command)

func (*ServerOptions) Config

func (so *ServerOptions) Config() *command.OptionsSetConfig

func (*ServerOptions) GetToken

func (so *ServerOptions) GetToken() (string, error)

GetToken returns the authentication token. If Token looks like a file path and the file exists, it reads the token from the file. Otherwise, it returns Token as-is.

func (*ServerOptions) Validate

func (so *ServerOptions) Validate() error

type WriteOptions

type WriteOptions struct {
	ServerOptions
}

WriteOptions contains the options for the write command.

func (*WriteOptions) AddFlags

func (o *WriteOptions) AddFlags(cmd *cobra.Command)

func (*WriteOptions) Config

func (o *WriteOptions) Config() *command.OptionsSetConfig

func (*WriteOptions) Validate

func (o *WriteOptions) Validate() error

Jump to

Keyboard shortcuts

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