parsing

package
v0.0.0-...-e40a182 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func ListOptions(cmd *cobra.Command, searches []string) (client.ListOptions, error)

ListOptions parses a client.ListOptions from a command

func LogOptions

func LogOptions(cmd *cobra.Command, searches []string) (client.LogOptions, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL