cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: Apache-2.0 Imports: 10 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

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 AddPath added in v0.2.0

func AddPath(parent *cobra.Command)

AddPath adds the path command group to the parent command.

func AddRead

func AddRead(parent *cobra.Command)

AddRead adds the read command to the parent command.

func AddRole added in v0.2.0

func AddRole(parent *cobra.Command)

AddRole adds the role command group 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 RoleListOptions added in v0.2.0

type RoleListOptions struct {
	ServerOptions
	ObjectType  string
	ObjectID    string
	SubjectType string
	SubjectID   string
	Role        string
}

RoleListOptions contains options for the role list command.

func (*RoleListOptions) AddFlags added in v0.2.0

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

func (*RoleListOptions) Config added in v0.2.0

func (*RoleListOptions) Validate added in v0.2.0

func (o *RoleListOptions) Validate() error

type RoleOptions added in v0.2.0

type RoleOptions struct {
	ServerOptions
}

RoleOptions contains the options for role commands.

func (*RoleOptions) AddFlags added in v0.2.0

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

func (*RoleOptions) Config added in v0.2.0

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

func (*RoleOptions) Validate added in v0.2.0

func (o *RoleOptions) 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
	UseREST  bool
	Insecure bool
}

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) NewClient added in v0.2.0

func (so *ServerOptions) NewClient() (ll.Client, error)

NewClient creates a new Lamplight client based on the configured options. If UseREST is true, it creates a REST client; otherwise, it creates a gRPC client.

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