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 AddRead(parent *cobra.Command)
- func AddSchema(parent *cobra.Command)
- func AddWrite(parent *cobra.Command)
- type CheckOptions
- type DeleteOptions
- type IAMOptions
- type LsOptions
- type ReadOptions
- 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 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) 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
Click to show internal directories.
Click to hide internal directories.