args

package
v0.0.0-...-2e8aeb9 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package args groups the methods used for utils args.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Quantity

type Quantity struct {
	Quantity resource.Quantity
}

Quantity implements the flag.Value interface and allows to parse strings expressing resource quantities.

func NewQuantity

func NewQuantity(quantity string) Quantity

NewQuantity returns a new Quantity object initialized with the given resource quantity.

func (*Quantity) Set

func (q *Quantity) Set(str string) error

Set parses the provided string as a resource quantity.

func (*Quantity) String

func (q *Quantity) String() string

String returns the stringified quantity.

func (*Quantity) Type

func (q *Quantity) Type() string

Type returns the quantity type.

Jump to

Keyboard shortcuts

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