Skip to content

Latest commit

 

History

History
160 lines (87 loc) · 5.04 KB

V1Toleration.md

File metadata and controls

160 lines (87 loc) · 5.04 KB

V1Toleration

Properties

Name Type Description Notes
Effect Pointer to string Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. [optional]
Key Pointer to string Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. [optional]
Operator Pointer to string Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. [optional]
TolerationSeconds Pointer to int64 TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. [optional]
Value Pointer to string Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. [optional]

Methods

NewV1Toleration

func NewV1Toleration() *V1Toleration

NewV1Toleration instantiates a new V1Toleration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewV1TolerationWithDefaults

func NewV1TolerationWithDefaults() *V1Toleration

NewV1TolerationWithDefaults instantiates a new V1Toleration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetEffect

func (o *V1Toleration) GetEffect() string

GetEffect returns the Effect field if non-nil, zero value otherwise.

GetEffectOk

func (o *V1Toleration) GetEffectOk() (*string, bool)

GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetEffect

func (o *V1Toleration) SetEffect(v string)

SetEffect sets Effect field to given value.

HasEffect

func (o *V1Toleration) HasEffect() bool

HasEffect returns a boolean if a field has been set.

GetKey

func (o *V1Toleration) GetKey() string

GetKey returns the Key field if non-nil, zero value otherwise.

GetKeyOk

func (o *V1Toleration) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetKey

func (o *V1Toleration) SetKey(v string)

SetKey sets Key field to given value.

HasKey

func (o *V1Toleration) HasKey() bool

HasKey returns a boolean if a field has been set.

GetOperator

func (o *V1Toleration) GetOperator() string

GetOperator returns the Operator field if non-nil, zero value otherwise.

GetOperatorOk

func (o *V1Toleration) GetOperatorOk() (*string, bool)

GetOperatorOk returns a tuple with the Operator field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOperator

func (o *V1Toleration) SetOperator(v string)

SetOperator sets Operator field to given value.

HasOperator

func (o *V1Toleration) HasOperator() bool

HasOperator returns a boolean if a field has been set.

GetTolerationSeconds

func (o *V1Toleration) GetTolerationSeconds() int64

GetTolerationSeconds returns the TolerationSeconds field if non-nil, zero value otherwise.

GetTolerationSecondsOk

func (o *V1Toleration) GetTolerationSecondsOk() (*int64, bool)

GetTolerationSecondsOk returns a tuple with the TolerationSeconds field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTolerationSeconds

func (o *V1Toleration) SetTolerationSeconds(v int64)

SetTolerationSeconds sets TolerationSeconds field to given value.

HasTolerationSeconds

func (o *V1Toleration) HasTolerationSeconds() bool

HasTolerationSeconds returns a boolean if a field has been set.

GetValue

func (o *V1Toleration) GetValue() string

GetValue returns the Value field if non-nil, zero value otherwise.

GetValueOk

func (o *V1Toleration) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetValue

func (o *V1Toleration) SetValue(v string)

SetValue sets Value field to given value.

HasValue

func (o *V1Toleration) HasValue() bool

HasValue returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]