Documentation ¶
Index ¶
- Constants
- type Incrementor
- func (incr *Incrementor) Debug() *Incrementor
- func (incr *Incrementor) GetValInt() int
- func (incr *Incrementor) GetValQty() *resource.Quantity
- func (incr *Incrementor) GetValString() string
- func (incr *Incrementor) GetValStringUnit() string
- func (incr *Incrementor) GetValType() string
- func (incr *Incrementor) GetValUnit() string
- func (incr *Incrementor) IsPercentage() bool
- func (incr *Incrementor) LoadFromString(val string) *Incrementor
- func (incr *Incrementor) SetIsPercentage(isPercentage bool) *Incrementor
- func (incr *Incrementor) SetValInt(val int) *Incrementor
- func (incr *Incrementor) SetValQty(val resource.Quantity) *Incrementor
- func (incr *Incrementor) SetValString(val string) *Incrementor
- func (incr *Incrementor) SetValType(valType string) *Incrementor
- func (incr *Incrementor) SetValUnit(valUnit string) *Incrementor
Constants ¶
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.