args

package
v0.0.0-...-ee5c703 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

func (*NodeLabelsMap) Type

func (n *NodeLabelsMap) Type() string

Type return the type name.

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.

func (*QuantityMap) Type

func (q *QuantityMap) Type() string

Type return the type name.

Jump to

Keyboard shortcuts

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