incrementor

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// GroupAPI is the group API scope use in this package
	GroupAPI = "sxlibs.k8s.startx.fr"
	// GroupName is the group name use in this package
	GroupName = "incrementor"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Incrementor

type Incrementor struct {
	// contains filtered or unexported fields
}

K8sClient represents a wrapper around the Kubernetes clientset.

func NewIncrementor

func NewIncrementor(val string) *Incrementor

NewIncrementor create a new Incrementor ready to use the clientset to interact with the kubernetes cluster

func (*Incrementor) Debug

func (incr *Incrementor) Debug() *Incrementor

Display the content of the Incrementor

func (*Incrementor) GetValInt

func (incr *Incrementor) GetValInt() int

GetValInt returns the valInt field.

func (*Incrementor) GetValQty

func (incr *Incrementor) GetValQty() *resource.Quantity

GetValQty returns the valQty field.

func (*Incrementor) GetValString

func (incr *Incrementor) GetValString() string

GetValString returns the valString field.

func (*Incrementor) GetValStringUnit

func (incr *Incrementor) GetValStringUnit() string

GetValStringUnit returns the valString + valUnit field.

func (*Incrementor) GetValType

func (incr *Incrementor) GetValType() string

GetValType returns the valType field.

func (*Incrementor) GetValUnit

func (incr *Incrementor) GetValUnit() string

GetValUnit returns the valUnit field.

func (*Incrementor) IsPercentage

func (incr *Incrementor) IsPercentage() bool

IsPercentage returns the incrementor is a percentage.

func (*Incrementor) LoadFromString

func (incr *Incrementor) LoadFromString(val string) *Incrementor

NewIncrementor create a new Incrementor ready to use the clientset to interact with the kubernetes cluster

func (*Incrementor) SetIsPercentage

func (incr *Incrementor) SetIsPercentage(isPercentage bool) *Incrementor

SetIsPercentage sets as a percentage value

func (*Incrementor) SetValInt

func (incr *Incrementor) SetValInt(val int) *Incrementor

SetValInt sets the valInt field.

func (*Incrementor) SetValQty

func (incr *Incrementor) SetValQty(val resource.Quantity) *Incrementor

SetValQty sets the valQty field.

func (*Incrementor) SetValString

func (incr *Incrementor) SetValString(val string) *Incrementor

SetValString sets the valString field.

func (*Incrementor) SetValType

func (incr *Incrementor) SetValType(valType string) *Incrementor

SetValType sets the valType field.

func (*Incrementor) SetValUnit

func (incr *Incrementor) SetValUnit(valUnit string) *Incrementor

SetValUnit sets the valUnit field.

Jump to

Keyboard shortcuts

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