Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCondCommand ¶
func NewCondCommand() *condCommand
NewCondCommand returns a Command that attenuates an opaque object auth with caveat conditions.
func NewDeleteCommand ¶
func NewDeleteCommand() *deleteCommand
NewDeleteCommand returns a Command that deletes an opaque object.
func NewFetchCommand ¶
func NewFetchCommand() *fetchCommand
NewFetchCommand returns a Command that fetches an opaque object.
func NewKeyCommand ¶
func NewKeyCommand() *keyCommand
NewKeyCommand returns a Command that displays the client's public key.
func NewNewCommand ¶
func NewNewCommand() *newCommand
NewNewCommand returns a Command that creates a new opaque object.
Types ¶
type Command ¶
type Command interface {
// CLICommand returns an initialized cli.Command.
CLICommand() cli.Command
// Do implements the command action.
Do(ctx Context) error
}
Command defines an ooclient subcommand.
type Context ¶
type Context interface {
// Args returns a slice of string arguments after flags are parsed.
Args() []string
// Bool returns the boolean value specified for the given flag name.
Bool(flagName string) bool
// ShowAppHelp prints command usage to the terminal.
ShowAppHelp()
// String returns the value specified for the given flag name, or empty
// string if not set.
String(flagName string) string
// Stdin returns the reader from standard input.
Stdin() io.ReadCloser
// Stdout returns the writer to standard output.
Stdout() io.WriteCloser
}
Context defines the command-line flags and other parameters exposed from the command-line.
Click to show internal directories.
Click to hide internal directories.