Documentation ¶
Overview ¶
Package args contains utils to handle args/flags
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeLabelsMap ¶
type NodeLabelsMap struct { StringValues liqoargs.StringList NodeLabels map[string]string }
NodeLabelsMap contains labels.
func (*NodeLabelsMap) Set ¶
func (n *NodeLabelsMap) Set(str string) error
Set function sets the label.
func (*NodeLabelsMap) String ¶
func (n *NodeLabelsMap) String() string
String returns the stringified map entries.
type QuantityMap ¶
type QuantityMap struct { StringValues liqoargs.StringList ResourceMap map[string]*resource.Quantity }
QuantityMap implements the flag.Value interface and allows to parse strings expressing resource quantities.
func (*QuantityMap) Set ¶
func (q *QuantityMap) Set(str string) error
Set parses the provided string as a resource quantity and put it in the map.
func (*QuantityMap) String ¶
func (q *QuantityMap) String() string
String returns the stringified map entries.
Click to show internal directories.
Click to hide internal directories.