Documentation ¶
Index ¶
- func GetOptions(cmd *cobra.Command) (client.GetOptions, error)
- func LabelMatch(s string) (filter.LabelMatch, error)
- func LabelMatchFromCmd(cmd *cobra.Command) (filter.LabelMatch, error)
- func LabelMatchSlice(values []string) (filter.LabelMatch, error)
- func ListOptions(cmd *cobra.Command, searches []string) (client.ListOptions, error)
- func LogOptions(cmd *cobra.Command, searches []string) (client.LogOptions, error)
- func StatusFromCmd(cmd *cobra.Command) (filter.StatusMatch, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOptions ¶
func GetOptions(cmd *cobra.Command) (client.GetOptions, error)
GetOptions parses a client.GetOptions from a command
func LabelMatch ¶
func LabelMatch(s string) (filter.LabelMatch, error)
LabelMatch takes in a single label specification string and returns a corresponding filter.LabelMatch.
func LabelMatchFromCmd ¶
func LabelMatchFromCmd(cmd *cobra.Command) (filter.LabelMatch, error)
LabelMatchFromCmd automatically parses the "label" flag from a command and returns the filtering.LabelMatch specified.
func LabelMatchSlice ¶
func LabelMatchSlice(values []string) (filter.LabelMatch, error)
LabelMatchSlice is like LabelMatch but handles multiple labels
func ListOptions ¶
ListOptions parses a client.ListOptions from a command
func LogOptions ¶
LogOptions parses a client.LogOptions from a command
func StatusFromCmd ¶
func StatusFromCmd(cmd *cobra.Command) (filter.StatusMatch, error)
StatusFromCmd automatically parses the status flag from a command and returns the filtering.StatusMatch specified.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.