Documentation
¶
Index ¶
- func AddApply(parent *cobra.Command)
- func AddCheck(parent *cobra.Command)
- func AddDelete(parent *cobra.Command)
- func AddGet(parent *cobra.Command)
- func AddIAM(parent *cobra.Command)
- func AddLs(parent *cobra.Command)
- func AddPath(parent *cobra.Command)
- func AddRead(parent *cobra.Command)
- func AddRole(parent *cobra.Command)
- func AddSchema(parent *cobra.Command)
- func AddWrite(parent *cobra.Command)
- type CheckOptions
- type DeleteOptions
- type IAMOptions
- type LsOptions
- type ReadOptions
- type RoleListOptions
- type RoleOptions
- type SchemaOptions
- type ServerOptions
- type WriteOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) Config ¶
func (o *LsOptions) Config() *command.OptionsSetConfig
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 (o *RoleListOptions) Config() *command.OptionsSetConfig
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 ¶
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