task

package
v0.0.0-...-3d8ba93 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TaskType = "task"

Variables

This section is empty.

Functions

func FromComponent

func FromComponent(from common.ApplicationComponent) (apis.Component, error)

Types

type ConfigMapKeyRef

type ConfigMapKeyRef struct {
	// The key of the config map to select from. Must be a valid secret key
	Key *string `json:"key"`
	// The name of the config map in the pod's namespace to select from
	Name *string `json:"name"`
}

ConfigMapKeyRef Selects a key of a config map in the pod's namespace

func NewConfigMapKeyRef

func NewConfigMapKeyRef() *ConfigMapKeyRef

NewConfigMapKeyRef is short for NewConfigMapKeyRefWithDefault which instantiates a new ConfigMapKeyRef 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

func NewConfigMapKeyRefEmpty

func NewConfigMapKeyRefEmpty() *ConfigMapKeyRef

NewConfigMapKeyRefEmpty instantiates a new ConfigMapKeyRef object with no properties set. This constructor will not assign any default values to properties.

func NewConfigMapKeyRefList

func NewConfigMapKeyRefList(ps ...*ConfigMapKeyRef) []ConfigMapKeyRef

NewConfigMapKeyRefs converts a list ConfigMapKeyRef pointers to objects. This is helpful when the SetConfigMapKeyRef requires a list of objects

func NewConfigMapKeyRefWith

func NewConfigMapKeyRefWith(key string, name string) *ConfigMapKeyRef

NewConfigMapKeyRefWith instantiates a new ConfigMapKeyRef object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewConfigMapKeyRefWithDefault

func NewConfigMapKeyRefWithDefault() *ConfigMapKeyRef

NewConfigMapKeyRefWithDefault instantiates a new ConfigMapKeyRef 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

func (*ConfigMapKeyRef) GetKey

func (o *ConfigMapKeyRef) GetKey() string

GetKey returns the Key field value

func (*ConfigMapKeyRef) GetKeyOk

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

GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.

func (*ConfigMapKeyRef) GetName

func (o *ConfigMapKeyRef) GetName() string

GetName returns the Name field value

func (*ConfigMapKeyRef) GetNameOk

func (o *ConfigMapKeyRef) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (ConfigMapKeyRef) MarshalJSON

func (o ConfigMapKeyRef) MarshalJSON() ([]byte, error)

func (*ConfigMapKeyRef) SetKey

func (o *ConfigMapKeyRef) SetKey(v string) *ConfigMapKeyRef

SetKey sets field value

func (*ConfigMapKeyRef) SetName

func (o *ConfigMapKeyRef) SetName(v string) *ConfigMapKeyRef

SetName sets field value

func (ConfigMapKeyRef) ToMap

func (o ConfigMapKeyRef) ToMap() (map[string]interface{}, error)

func (*ConfigMapKeyRef) Validate

func (o *ConfigMapKeyRef) Validate() error

Validate validates this ConfigMapKeyRef 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type Env

type Env struct {
	// Environment variable name
	Name *string `json:"name"`
	// The value of the environment variable
	Value     *string    `json:"value,omitempty"`
	ValueFrom *ValueFrom `json:"valueFrom,omitempty"`
}

Env struct for Env

func NewEnv

func NewEnv() *Env

NewEnv is short for NewEnvWithDefault which instantiates a new Env 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

func NewEnvEmpty

func NewEnvEmpty() *Env

NewEnvEmpty instantiates a new Env object with no properties set. This constructor will not assign any default values to properties.

func NewEnvList

func NewEnvList(ps ...*Env) []Env

NewEnvs converts a list Env pointers to objects. This is helpful when the SetEnv requires a list of objects

func NewEnvWith

func NewEnvWith(name string) *Env

NewEnvWith instantiates a new Env object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewEnvWithDefault

func NewEnvWithDefault() *Env

NewEnvWithDefault instantiates a new Env 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

func (*Env) GetName

func (o *Env) GetName() string

GetName returns the Name field value

func (*Env) GetNameOk

func (o *Env) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Env) GetValue

func (o *Env) GetValue() string

GetValue returns the Value field value if set, zero value otherwise.

func (*Env) GetValueFrom

func (o *Env) GetValueFrom() ValueFrom

GetValueFrom returns the ValueFrom field value if set, zero value otherwise.

func (*Env) GetValueFromOk

func (o *Env) GetValueFromOk() (*ValueFrom, bool)

GetValueFromOk returns a tuple with the ValueFrom field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Env) GetValueOk

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

GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Env) HasValue

func (o *Env) HasValue() bool

HasValue returns a boolean if a field has been set.

func (*Env) HasValueFrom

func (o *Env) HasValueFrom() bool

HasValueFrom returns a boolean if a field has been set.

func (Env) MarshalJSON

func (o Env) MarshalJSON() ([]byte, error)

func (*Env) SetName

func (o *Env) SetName(v string) *Env

SetName sets field value

func (*Env) SetValue

func (o *Env) SetValue(v string) *Env

SetValue gets a reference to the given string and assigns it to the value field. Value: The value of the environment variable

func (*Env) SetValueFrom

func (o *Env) SetValueFrom(v ValueFrom) *Env

SetValueFrom gets a reference to the given ValueFrom and assigns it to the valueFrom field. ValueFrom:

func (Env) ToMap

func (o Env) ToMap() (map[string]interface{}, error)

func (*Env) Validate

func (o *Env) Validate() error

Validate validates this Env 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type Exec

type Exec struct {
	// A command to be executed inside the container to assess its health. Each space delimited token of the command is a separate array element. Commands exiting 0 are considered to be successful probes, whilst all other exit codes are considered failures.
	Command []string `json:"command"`
}

Exec Instructions for assessing container health by executing a command. Either this attribute or the httpGet attribute or the tcpSocket attribute MUST be specified. This attribute is mutually exclusive with both the httpGet attribute and the tcpSocket attribute.

func NewExec

func NewExec() *Exec

NewExec is short for NewExecWithDefault which instantiates a new Exec 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

func NewExecEmpty

func NewExecEmpty() *Exec

NewExecEmpty instantiates a new Exec object with no properties set. This constructor will not assign any default values to properties.

func NewExecList

func NewExecList(ps ...*Exec) []Exec

NewExecs converts a list Exec pointers to objects. This is helpful when the SetExec requires a list of objects

func NewExecWith

func NewExecWith(command []string) *Exec

NewExecWith instantiates a new Exec object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewExecWithDefault

func NewExecWithDefault() *Exec

NewExecWithDefault instantiates a new Exec 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

func (*Exec) GetCommand

func (o *Exec) GetCommand() []string

GetCommand returns the Command field value

func (*Exec) GetCommandOk

func (o *Exec) GetCommandOk() ([]string, bool)

GetCommandOk returns a tuple with the Command field value and a boolean to check if the value has been set.

func (Exec) MarshalJSON

func (o Exec) MarshalJSON() ([]byte, error)

func (*Exec) SetCommand

func (o *Exec) SetCommand(v []string) *Exec

SetCommand sets field value

func (Exec) ToMap

func (o Exec) ToMap() (map[string]interface{}, error)

func (*Exec) Validate

func (o *Exec) Validate() error

Validate validates this Exec 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type HealthProbe

type HealthProbe struct {
	Exec *Exec `json:"exec,omitempty"`
	// Number of consecutive failures required to determine the container is not alive (liveness probe) or not ready (readiness probe).
	FailureThreshold *int32   `json:"failureThreshold"`
	HttpGet          *HttpGet `json:"httpGet,omitempty"`
	// Number of seconds after the container is started before the first probe is initiated.
	InitialDelaySeconds *int32 `json:"initialDelaySeconds"`
	// How often, in seconds, to execute the probe.
	PeriodSeconds *int32 `json:"periodSeconds"`
	// Minimum consecutive successes for the probe to be considered successful after having failed.
	SuccessThreshold *int32     `json:"successThreshold"`
	TcpSocket        *TcpSocket `json:"tcpSocket,omitempty"`
	// Number of seconds after which the probe times out.
	TimeoutSeconds *int32 `json:"timeoutSeconds"`
}

HealthProbe struct for HealthProbe

func NewHealthProbe

func NewHealthProbe() *HealthProbe

NewHealthProbe is short for NewHealthProbeWithDefault which instantiates a new HealthProbe 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

func NewHealthProbeEmpty

func NewHealthProbeEmpty() *HealthProbe

NewHealthProbeEmpty instantiates a new HealthProbe object with no properties set. This constructor will not assign any default values to properties.

func NewHealthProbeList

func NewHealthProbeList(ps ...*HealthProbe) []HealthProbe

NewHealthProbes converts a list HealthProbe pointers to objects. This is helpful when the SetHealthProbe requires a list of objects

func NewHealthProbeWith

func NewHealthProbeWith(failureThreshold int32, initialDelaySeconds int32, periodSeconds int32, successThreshold int32, timeoutSeconds int32) *HealthProbe

NewHealthProbeWith instantiates a new HealthProbe object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewHealthProbeWithDefault

func NewHealthProbeWithDefault() *HealthProbe

NewHealthProbeWithDefault instantiates a new HealthProbe 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

func (*HealthProbe) GetExec

func (o *HealthProbe) GetExec() Exec

GetExec returns the Exec field value if set, zero value otherwise.

func (*HealthProbe) GetExecOk

func (o *HealthProbe) GetExecOk() (*Exec, bool)

GetExecOk returns a tuple with the Exec field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HealthProbe) GetFailureThreshold

func (o *HealthProbe) GetFailureThreshold() int32

GetFailureThreshold returns the FailureThreshold field value

func (*HealthProbe) GetFailureThresholdOk

func (o *HealthProbe) GetFailureThresholdOk() (*int32, bool)

GetFailureThresholdOk returns a tuple with the FailureThreshold field value and a boolean to check if the value has been set.

func (*HealthProbe) GetHttpGet

func (o *HealthProbe) GetHttpGet() HttpGet

GetHttpGet returns the HttpGet field value if set, zero value otherwise.

func (*HealthProbe) GetHttpGetOk

func (o *HealthProbe) GetHttpGetOk() (*HttpGet, bool)

GetHttpGetOk returns a tuple with the HttpGet field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HealthProbe) GetInitialDelaySeconds

func (o *HealthProbe) GetInitialDelaySeconds() int32

GetInitialDelaySeconds returns the InitialDelaySeconds field value

func (*HealthProbe) GetInitialDelaySecondsOk

func (o *HealthProbe) GetInitialDelaySecondsOk() (*int32, bool)

GetInitialDelaySecondsOk returns a tuple with the InitialDelaySeconds field value and a boolean to check if the value has been set.

func (*HealthProbe) GetPeriodSeconds

func (o *HealthProbe) GetPeriodSeconds() int32

GetPeriodSeconds returns the PeriodSeconds field value

func (*HealthProbe) GetPeriodSecondsOk

func (o *HealthProbe) GetPeriodSecondsOk() (*int32, bool)

GetPeriodSecondsOk returns a tuple with the PeriodSeconds field value and a boolean to check if the value has been set.

func (*HealthProbe) GetSuccessThreshold

func (o *HealthProbe) GetSuccessThreshold() int32

GetSuccessThreshold returns the SuccessThreshold field value

func (*HealthProbe) GetSuccessThresholdOk

func (o *HealthProbe) GetSuccessThresholdOk() (*int32, bool)

GetSuccessThresholdOk returns a tuple with the SuccessThreshold field value and a boolean to check if the value has been set.

func (*HealthProbe) GetTcpSocket

func (o *HealthProbe) GetTcpSocket() TcpSocket

GetTcpSocket returns the TcpSocket field value if set, zero value otherwise.

func (*HealthProbe) GetTcpSocketOk

func (o *HealthProbe) GetTcpSocketOk() (*TcpSocket, bool)

GetTcpSocketOk returns a tuple with the TcpSocket field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HealthProbe) GetTimeoutSeconds

func (o *HealthProbe) GetTimeoutSeconds() int32

GetTimeoutSeconds returns the TimeoutSeconds field value

func (*HealthProbe) GetTimeoutSecondsOk

func (o *HealthProbe) GetTimeoutSecondsOk() (*int32, bool)

GetTimeoutSecondsOk returns a tuple with the TimeoutSeconds field value and a boolean to check if the value has been set.

func (*HealthProbe) HasExec

func (o *HealthProbe) HasExec() bool

HasExec returns a boolean if a field has been set.

func (*HealthProbe) HasHttpGet

func (o *HealthProbe) HasHttpGet() bool

HasHttpGet returns a boolean if a field has been set.

func (*HealthProbe) HasTcpSocket

func (o *HealthProbe) HasTcpSocket() bool

HasTcpSocket returns a boolean if a field has been set.

func (HealthProbe) MarshalJSON

func (o HealthProbe) MarshalJSON() ([]byte, error)

func (*HealthProbe) SetExec

func (o *HealthProbe) SetExec(v Exec) *HealthProbe

SetExec gets a reference to the given Exec and assigns it to the exec field. Exec:

func (*HealthProbe) SetFailureThreshold

func (o *HealthProbe) SetFailureThreshold(v int32) *HealthProbe

SetFailureThreshold sets field value

func (*HealthProbe) SetHttpGet

func (o *HealthProbe) SetHttpGet(v HttpGet) *HealthProbe

SetHttpGet gets a reference to the given HttpGet and assigns it to the httpGet field. HttpGet:

func (*HealthProbe) SetInitialDelaySeconds

func (o *HealthProbe) SetInitialDelaySeconds(v int32) *HealthProbe

SetInitialDelaySeconds sets field value

func (*HealthProbe) SetPeriodSeconds

func (o *HealthProbe) SetPeriodSeconds(v int32) *HealthProbe

SetPeriodSeconds sets field value

func (*HealthProbe) SetSuccessThreshold

func (o *HealthProbe) SetSuccessThreshold(v int32) *HealthProbe

SetSuccessThreshold sets field value

func (*HealthProbe) SetTcpSocket

func (o *HealthProbe) SetTcpSocket(v TcpSocket) *HealthProbe

SetTcpSocket gets a reference to the given TcpSocket and assigns it to the tcpSocket field. TcpSocket:

func (*HealthProbe) SetTimeoutSeconds

func (o *HealthProbe) SetTimeoutSeconds(v int32) *HealthProbe

SetTimeoutSeconds sets field value

func (HealthProbe) ToMap

func (o HealthProbe) ToMap() (map[string]interface{}, error)

func (*HealthProbe) Validate

func (o *HealthProbe) Validate() error

Validate validates this HealthProbe 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type HttpGet

type HttpGet struct {
	HttpHeaders []HttpHeaders `json:"httpHeaders,omitempty"`
	// The endpoint, relative to the port, to which the HTTP GET request should be directed.
	Path *string `json:"path"`
	// The TCP socket within the container to which the HTTP GET request should be directed.
	Port *int32 `json:"port"`
}

HttpGet Instructions for assessing container health by executing an HTTP GET request. Either this attribute or the exec attribute or the tcpSocket attribute MUST be specified. This attribute is mutually exclusive with both the exec attribute and the tcpSocket attribute.

func NewHttpGet

func NewHttpGet() *HttpGet

NewHttpGet is short for NewHttpGetWithDefault which instantiates a new HttpGet 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

func NewHttpGetEmpty

func NewHttpGetEmpty() *HttpGet

NewHttpGetEmpty instantiates a new HttpGet object with no properties set. This constructor will not assign any default values to properties.

func NewHttpGetList

func NewHttpGetList(ps ...*HttpGet) []HttpGet

NewHttpGets converts a list HttpGet pointers to objects. This is helpful when the SetHttpGet requires a list of objects

func NewHttpGetWith

func NewHttpGetWith(path string, port int32) *HttpGet

NewHttpGetWith instantiates a new HttpGet object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewHttpGetWithDefault

func NewHttpGetWithDefault() *HttpGet

NewHttpGetWithDefault instantiates a new HttpGet 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

func (*HttpGet) GetHttpHeaders

func (o *HttpGet) GetHttpHeaders() []HttpHeaders

GetHttpHeaders returns the HttpHeaders field value if set, zero value otherwise.

func (*HttpGet) GetHttpHeadersOk

func (o *HttpGet) GetHttpHeadersOk() ([]HttpHeaders, bool)

GetHttpHeadersOk returns a tuple with the HttpHeaders field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HttpGet) GetPath

func (o *HttpGet) GetPath() string

GetPath returns the Path field value

func (*HttpGet) GetPathOk

func (o *HttpGet) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.

func (*HttpGet) GetPort

func (o *HttpGet) GetPort() int32

GetPort returns the Port field value

func (*HttpGet) GetPortOk

func (o *HttpGet) GetPortOk() (*int32, bool)

GetPortOk returns a tuple with the Port field value and a boolean to check if the value has been set.

func (*HttpGet) HasHttpHeaders

func (o *HttpGet) HasHttpHeaders() bool

HasHttpHeaders returns a boolean if a field has been set.

func (HttpGet) MarshalJSON

func (o HttpGet) MarshalJSON() ([]byte, error)

func (*HttpGet) SetHttpHeaders

func (o *HttpGet) SetHttpHeaders(v []HttpHeaders) *HttpGet

SetHttpHeaders gets a reference to the given []HttpHeaders and assigns it to the httpHeaders field. HttpHeaders:

func (*HttpGet) SetPath

func (o *HttpGet) SetPath(v string) *HttpGet

SetPath sets field value

func (*HttpGet) SetPort

func (o *HttpGet) SetPort(v int32) *HttpGet

SetPort sets field value

func (HttpGet) ToMap

func (o HttpGet) ToMap() (map[string]interface{}, error)

func (*HttpGet) Validate

func (o *HttpGet) Validate() error

Validate validates this HttpGet 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type HttpHeaders

type HttpHeaders struct {
	Name  *string `json:"name"`
	Value *string `json:"value"`
}

HttpHeaders struct for HttpHeaders

func NewHttpHeaders

func NewHttpHeaders() *HttpHeaders

NewHttpHeaders is short for NewHttpHeadersWithDefault which instantiates a new HttpHeaders 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

func NewHttpHeadersEmpty

func NewHttpHeadersEmpty() *HttpHeaders

NewHttpHeadersEmpty instantiates a new HttpHeaders object with no properties set. This constructor will not assign any default values to properties.

func NewHttpHeadersList

func NewHttpHeadersList(ps ...*HttpHeaders) []HttpHeaders

NewHttpHeaderss converts a list HttpHeaders pointers to objects. This is helpful when the SetHttpHeaders requires a list of objects

func NewHttpHeadersWith

func NewHttpHeadersWith(name string, value string) *HttpHeaders

NewHttpHeadersWith instantiates a new HttpHeaders object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewHttpHeadersWithDefault

func NewHttpHeadersWithDefault() *HttpHeaders

NewHttpHeadersWithDefault instantiates a new HttpHeaders 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

func (*HttpHeaders) GetName

func (o *HttpHeaders) GetName() string

GetName returns the Name field value

func (*HttpHeaders) GetNameOk

func (o *HttpHeaders) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*HttpHeaders) GetValue

func (o *HttpHeaders) GetValue() string

GetValue returns the Value field value

func (*HttpHeaders) GetValueOk

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

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (HttpHeaders) MarshalJSON

func (o HttpHeaders) MarshalJSON() ([]byte, error)

func (*HttpHeaders) SetName

func (o *HttpHeaders) SetName(v string) *HttpHeaders

SetName sets field value

func (*HttpHeaders) SetValue

func (o *HttpHeaders) SetValue(v string) *HttpHeaders

SetValue sets field value

func (HttpHeaders) ToMap

func (o HttpHeaders) ToMap() (map[string]interface{}, error)

func (*HttpHeaders) Validate

func (o *HttpHeaders) Validate() error

Validate validates this HttpHeaders 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type NullableConfigMapKeyRef

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

func NewNullableConfigMapKeyRef

func NewNullableConfigMapKeyRef(val *ConfigMapKeyRef) *NullableConfigMapKeyRef

func (*NullableConfigMapKeyRef) Get

func (*NullableConfigMapKeyRef) IsSet

func (v *NullableConfigMapKeyRef) IsSet() bool

func (NullableConfigMapKeyRef) MarshalJSON

func (v NullableConfigMapKeyRef) MarshalJSON() ([]byte, error)

func (*NullableConfigMapKeyRef) Set

func (*NullableConfigMapKeyRef) UnmarshalJSON

func (v *NullableConfigMapKeyRef) UnmarshalJSON(src []byte) error

func (*NullableConfigMapKeyRef) Unset

func (v *NullableConfigMapKeyRef) Unset()

type NullableEnv

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

func NewNullableEnv

func NewNullableEnv(val *Env) *NullableEnv

func (*NullableEnv) Get

func (v *NullableEnv) Get() *Env

func (*NullableEnv) IsSet

func (v *NullableEnv) IsSet() bool

func (NullableEnv) MarshalJSON

func (v NullableEnv) MarshalJSON() ([]byte, error)

func (*NullableEnv) Set

func (v *NullableEnv) Set(val *Env)

func (*NullableEnv) UnmarshalJSON

func (v *NullableEnv) UnmarshalJSON(src []byte) error

func (*NullableEnv) Unset

func (v *NullableEnv) Unset()

type NullableExec

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

func NewNullableExec

func NewNullableExec(val *Exec) *NullableExec

func (*NullableExec) Get

func (v *NullableExec) Get() *Exec

func (*NullableExec) IsSet

func (v *NullableExec) IsSet() bool

func (NullableExec) MarshalJSON

func (v NullableExec) MarshalJSON() ([]byte, error)

func (*NullableExec) Set

func (v *NullableExec) Set(val *Exec)

func (*NullableExec) UnmarshalJSON

func (v *NullableExec) UnmarshalJSON(src []byte) error

func (*NullableExec) Unset

func (v *NullableExec) Unset()

type NullableHealthProbe

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

func NewNullableHealthProbe

func NewNullableHealthProbe(val *HealthProbe) *NullableHealthProbe

func (*NullableHealthProbe) Get

func (v *NullableHealthProbe) Get() *HealthProbe

func (*NullableHealthProbe) IsSet

func (v *NullableHealthProbe) IsSet() bool

func (NullableHealthProbe) MarshalJSON

func (v NullableHealthProbe) MarshalJSON() ([]byte, error)

func (*NullableHealthProbe) Set

func (v *NullableHealthProbe) Set(val *HealthProbe)

func (*NullableHealthProbe) UnmarshalJSON

func (v *NullableHealthProbe) UnmarshalJSON(src []byte) error

func (*NullableHealthProbe) Unset

func (v *NullableHealthProbe) Unset()

type NullableHttpGet

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

func NewNullableHttpGet

func NewNullableHttpGet(val *HttpGet) *NullableHttpGet

func (*NullableHttpGet) Get

func (v *NullableHttpGet) Get() *HttpGet

func (*NullableHttpGet) IsSet

func (v *NullableHttpGet) IsSet() bool

func (NullableHttpGet) MarshalJSON

func (v NullableHttpGet) MarshalJSON() ([]byte, error)

func (*NullableHttpGet) Set

func (v *NullableHttpGet) Set(val *HttpGet)

func (*NullableHttpGet) UnmarshalJSON

func (v *NullableHttpGet) UnmarshalJSON(src []byte) error

func (*NullableHttpGet) Unset

func (v *NullableHttpGet) Unset()

type NullableHttpHeaders

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

func NewNullableHttpHeaders

func NewNullableHttpHeaders(val *HttpHeaders) *NullableHttpHeaders

func (*NullableHttpHeaders) Get

func (v *NullableHttpHeaders) Get() *HttpHeaders

func (*NullableHttpHeaders) IsSet

func (v *NullableHttpHeaders) IsSet() bool

func (NullableHttpHeaders) MarshalJSON

func (v NullableHttpHeaders) MarshalJSON() ([]byte, error)

func (*NullableHttpHeaders) Set

func (v *NullableHttpHeaders) Set(val *HttpHeaders)

func (*NullableHttpHeaders) UnmarshalJSON

func (v *NullableHttpHeaders) UnmarshalJSON(src []byte) error

func (*NullableHttpHeaders) Unset

func (v *NullableHttpHeaders) Unset()

type NullableSecretKeyRef

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

func NewNullableSecretKeyRef

func NewNullableSecretKeyRef(val *SecretKeyRef) *NullableSecretKeyRef

func (*NullableSecretKeyRef) Get

func (*NullableSecretKeyRef) IsSet

func (v *NullableSecretKeyRef) IsSet() bool

func (NullableSecretKeyRef) MarshalJSON

func (v NullableSecretKeyRef) MarshalJSON() ([]byte, error)

func (*NullableSecretKeyRef) Set

func (v *NullableSecretKeyRef) Set(val *SecretKeyRef)

func (*NullableSecretKeyRef) UnmarshalJSON

func (v *NullableSecretKeyRef) UnmarshalJSON(src []byte) error

func (*NullableSecretKeyRef) Unset

func (v *NullableSecretKeyRef) Unset()

type NullableTaskSpec

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

func NewNullableTaskSpec

func NewNullableTaskSpec(val *TaskSpec) *NullableTaskSpec

func (*NullableTaskSpec) Get

func (v *NullableTaskSpec) Get() *TaskSpec

func (*NullableTaskSpec) IsSet

func (v *NullableTaskSpec) IsSet() bool

func (NullableTaskSpec) MarshalJSON

func (v NullableTaskSpec) MarshalJSON() ([]byte, error)

func (*NullableTaskSpec) Set

func (v *NullableTaskSpec) Set(val *TaskSpec)

func (*NullableTaskSpec) UnmarshalJSON

func (v *NullableTaskSpec) UnmarshalJSON(src []byte) error

func (*NullableTaskSpec) Unset

func (v *NullableTaskSpec) Unset()

type NullableTcpSocket

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

func NewNullableTcpSocket

func NewNullableTcpSocket(val *TcpSocket) *NullableTcpSocket

func (*NullableTcpSocket) Get

func (v *NullableTcpSocket) Get() *TcpSocket

func (*NullableTcpSocket) IsSet

func (v *NullableTcpSocket) IsSet() bool

func (NullableTcpSocket) MarshalJSON

func (v NullableTcpSocket) MarshalJSON() ([]byte, error)

func (*NullableTcpSocket) Set

func (v *NullableTcpSocket) Set(val *TcpSocket)

func (*NullableTcpSocket) UnmarshalJSON

func (v *NullableTcpSocket) UnmarshalJSON(src []byte) error

func (*NullableTcpSocket) Unset

func (v *NullableTcpSocket) Unset()

type NullableValueFrom

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

func NewNullableValueFrom

func NewNullableValueFrom(val *ValueFrom) *NullableValueFrom

func (*NullableValueFrom) Get

func (v *NullableValueFrom) Get() *ValueFrom

func (*NullableValueFrom) IsSet

func (v *NullableValueFrom) IsSet() bool

func (NullableValueFrom) MarshalJSON

func (v NullableValueFrom) MarshalJSON() ([]byte, error)

func (*NullableValueFrom) Set

func (v *NullableValueFrom) Set(val *ValueFrom)

func (*NullableValueFrom) UnmarshalJSON

func (v *NullableValueFrom) UnmarshalJSON(src []byte) error

func (*NullableValueFrom) Unset

func (v *NullableValueFrom) Unset()

type NullableVolumes

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

func NewNullableVolumes

func NewNullableVolumes(val *Volumes) *NullableVolumes

func (*NullableVolumes) Get

func (v *NullableVolumes) Get() *Volumes

func (*NullableVolumes) IsSet

func (v *NullableVolumes) IsSet() bool

func (NullableVolumes) MarshalJSON

func (v NullableVolumes) MarshalJSON() ([]byte, error)

func (*NullableVolumes) Set

func (v *NullableVolumes) Set(val *Volumes)

func (*NullableVolumes) UnmarshalJSON

func (v *NullableVolumes) UnmarshalJSON(src []byte) error

func (*NullableVolumes) Unset

func (v *NullableVolumes) Unset()

type SecretKeyRef

type SecretKeyRef struct {
	// The key of the secret to select from. Must be a valid secret key
	Key *string `json:"key"`
	// The name of the secret in the pod's namespace to select from
	Name *string `json:"name"`
}

SecretKeyRef Selects a key of a secret in the pod's namespace

func NewSecretKeyRef

func NewSecretKeyRef() *SecretKeyRef

NewSecretKeyRef is short for NewSecretKeyRefWithDefault which instantiates a new SecretKeyRef 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

func NewSecretKeyRefEmpty

func NewSecretKeyRefEmpty() *SecretKeyRef

NewSecretKeyRefEmpty instantiates a new SecretKeyRef object with no properties set. This constructor will not assign any default values to properties.

func NewSecretKeyRefList

func NewSecretKeyRefList(ps ...*SecretKeyRef) []SecretKeyRef

NewSecretKeyRefs converts a list SecretKeyRef pointers to objects. This is helpful when the SetSecretKeyRef requires a list of objects

func NewSecretKeyRefWith

func NewSecretKeyRefWith(key string, name string) *SecretKeyRef

NewSecretKeyRefWith instantiates a new SecretKeyRef object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewSecretKeyRefWithDefault

func NewSecretKeyRefWithDefault() *SecretKeyRef

NewSecretKeyRefWithDefault instantiates a new SecretKeyRef 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

func (*SecretKeyRef) GetKey

func (o *SecretKeyRef) GetKey() string

GetKey returns the Key field value

func (*SecretKeyRef) GetKeyOk

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

GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.

func (*SecretKeyRef) GetName

func (o *SecretKeyRef) GetName() string

GetName returns the Name field value

func (*SecretKeyRef) GetNameOk

func (o *SecretKeyRef) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (SecretKeyRef) MarshalJSON

func (o SecretKeyRef) MarshalJSON() ([]byte, error)

func (*SecretKeyRef) SetKey

func (o *SecretKeyRef) SetKey(v string) *SecretKeyRef

SetKey sets field value

func (*SecretKeyRef) SetName

func (o *SecretKeyRef) SetName(v string) *SecretKeyRef

SetName sets field value

func (SecretKeyRef) ToMap

func (o SecretKeyRef) ToMap() (map[string]interface{}, error)

func (*SecretKeyRef) Validate

func (o *SecretKeyRef) Validate() error

Validate validates this SecretKeyRef 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type TaskComponent

type TaskComponent struct {
	Base       apis.ComponentBase
	Properties TaskSpec
}

func Task

func Task(name string) *TaskComponent

func (*TaskComponent) AddDependsOn

func (t *TaskComponent) AddDependsOn(dependsOn string) *TaskComponent

func (*TaskComponent) Build

func (*TaskComponent) ComponentName

func (t *TaskComponent) ComponentName() string

func (*TaskComponent) DefType

func (t *TaskComponent) DefType() string

func (*TaskComponent) DependsOn

func (t *TaskComponent) DependsOn(dependsOn []string) *TaskComponent

func (*TaskComponent) FromComponent

func (t *TaskComponent) FromComponent(from common.ApplicationComponent) (*TaskComponent, error)

func (*TaskComponent) GetAllTraits

func (t *TaskComponent) GetAllTraits() []apis.Trait

func (*TaskComponent) GetAnnotations

func (o *TaskComponent) GetAnnotations() map[string]string

GetAnnotations returns the Annotations field value if set, zero value otherwise.

func (*TaskComponent) GetAnnotationsOk

func (o *TaskComponent) GetAnnotationsOk() (map[string]string, bool)

GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaskComponent) GetCmd

func (o *TaskComponent) GetCmd() []string

GetCmd returns the Cmd field value if set, zero value otherwise.

func (*TaskComponent) GetCmdOk

func (o *TaskComponent) GetCmdOk() ([]string, bool)

GetCmdOk returns a tuple with the Cmd field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaskComponent) GetCount

func (o *TaskComponent) GetCount() int32

GetCount returns the Count field value

func (*TaskComponent) GetCountOk

func (o *TaskComponent) GetCountOk() (*int32, bool)

GetCountOk returns a tuple with the Count field value and a boolean to check if the value has been set.

func (*TaskComponent) GetCpu

func (o *TaskComponent) GetCpu() string

GetCpu returns the Cpu field value if set, zero value otherwise.

func (*TaskComponent) GetCpuOk

func (o *TaskComponent) GetCpuOk() (*string, bool)

GetCpuOk returns a tuple with the Cpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaskComponent) GetEnv

func (o *TaskComponent) GetEnv() []Env

GetEnv returns the Env field value if set, zero value otherwise.

func (*TaskComponent) GetEnvOk

func (o *TaskComponent) GetEnvOk() ([]Env, bool)

GetEnvOk returns a tuple with the Env field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaskComponent) GetImage

func (o *TaskComponent) GetImage() string

GetImage returns the Image field value

func (*TaskComponent) GetImageOk

func (o *TaskComponent) GetImageOk() (*string, bool)

GetImageOk returns a tuple with the Image field value and a boolean to check if the value has been set.

func (*TaskComponent) GetImagePullPolicy

func (o *TaskComponent) GetImagePullPolicy() string

GetImagePullPolicy returns the ImagePullPolicy field value if set, zero value otherwise.

func (*TaskComponent) GetImagePullPolicyOk

func (o *TaskComponent) GetImagePullPolicyOk() (*string, bool)

GetImagePullPolicyOk returns a tuple with the ImagePullPolicy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaskComponent) GetImagePullSecrets

func (o *TaskComponent) GetImagePullSecrets() []string

GetImagePullSecrets returns the ImagePullSecrets field value if set, zero value otherwise.

func (*TaskComponent) GetImagePullSecretsOk

func (o *TaskComponent) GetImagePullSecretsOk() ([]string, bool)

GetImagePullSecretsOk returns a tuple with the ImagePullSecrets field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaskComponent) GetLabels

func (o *TaskComponent) GetLabels() map[string]string

GetLabels returns the Labels field value if set, zero value otherwise.

func (*TaskComponent) GetLabelsOk

func (o *TaskComponent) GetLabelsOk() (map[string]string, bool)

GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaskComponent) GetLivenessProbe

func (o *TaskComponent) GetLivenessProbe() HealthProbe

GetLivenessProbe returns the LivenessProbe field value if set, zero value otherwise.

func (*TaskComponent) GetLivenessProbeOk

func (o *TaskComponent) GetLivenessProbeOk() (*HealthProbe, bool)

GetLivenessProbeOk returns a tuple with the LivenessProbe field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaskComponent) GetMemory

func (o *TaskComponent) GetMemory() string

GetMemory returns the Memory field value if set, zero value otherwise.

func (*TaskComponent) GetMemoryOk

func (o *TaskComponent) GetMemoryOk() (*string, bool)

GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaskComponent) GetReadinessProbe

func (o *TaskComponent) GetReadinessProbe() HealthProbe

GetReadinessProbe returns the ReadinessProbe field value if set, zero value otherwise.

func (*TaskComponent) GetReadinessProbeOk

func (o *TaskComponent) GetReadinessProbeOk() (*HealthProbe, bool)

GetReadinessProbeOk returns a tuple with the ReadinessProbe field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaskComponent) GetRestart

func (o *TaskComponent) GetRestart() string

GetRestart returns the Restart field value

func (*TaskComponent) GetRestartOk

func (o *TaskComponent) GetRestartOk() (*string, bool)

GetRestartOk returns a tuple with the Restart field value and a boolean to check if the value has been set.

func (*TaskComponent) GetTrait

func (t *TaskComponent) GetTrait(typ string) apis.Trait

func (*TaskComponent) GetVolumes

func (o *TaskComponent) GetVolumes() []Volumes

GetVolumes returns the Volumes field value if set, zero value otherwise.

func (*TaskComponent) GetVolumesOk

func (o *TaskComponent) GetVolumesOk() ([]Volumes, bool)

GetVolumesOk returns a tuple with the Volumes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaskComponent) HasAnnotations

func (o *TaskComponent) HasAnnotations() bool

HasAnnotations returns a boolean if a field has been set.

func (*TaskComponent) HasCmd

func (o *TaskComponent) HasCmd() bool

HasCmd returns a boolean if a field has been set.

func (*TaskComponent) HasCpu

func (o *TaskComponent) HasCpu() bool

HasCpu returns a boolean if a field has been set.

func (*TaskComponent) HasEnv

func (o *TaskComponent) HasEnv() bool

HasEnv returns a boolean if a field has been set.

func (*TaskComponent) HasImagePullPolicy

func (o *TaskComponent) HasImagePullPolicy() bool

HasImagePullPolicy returns a boolean if a field has been set.

func (*TaskComponent) HasImagePullSecrets

func (o *TaskComponent) HasImagePullSecrets() bool

HasImagePullSecrets returns a boolean if a field has been set.

func (*TaskComponent) HasLabels

func (o *TaskComponent) HasLabels() bool

HasLabels returns a boolean if a field has been set.

func (*TaskComponent) HasLivenessProbe

func (o *TaskComponent) HasLivenessProbe() bool

HasLivenessProbe returns a boolean if a field has been set.

func (*TaskComponent) HasMemory

func (o *TaskComponent) HasMemory() bool

HasMemory returns a boolean if a field has been set.

func (*TaskComponent) HasReadinessProbe

func (o *TaskComponent) HasReadinessProbe() bool

HasReadinessProbe returns a boolean if a field has been set.

func (*TaskComponent) HasVolumes

func (o *TaskComponent) HasVolumes() bool

HasVolumes returns a boolean if a field has been set.

func (*TaskComponent) Inputs

func (t *TaskComponent) Inputs(input common.StepInputs) *TaskComponent

func (*TaskComponent) Outputs

func (t *TaskComponent) Outputs(output common.StepOutputs) *TaskComponent

func (*TaskComponent) SetAnnotations

func (o *TaskComponent) SetAnnotations(v map[string]string) *TaskComponent

SetAnnotations gets a reference to the given map[string]string and assigns it to the annotations field. Annotations: Specify the annotations in the workload

func (*TaskComponent) SetCmd

func (o *TaskComponent) SetCmd(v []string) *TaskComponent

SetCmd gets a reference to the given []string and assigns it to the cmd field. Cmd: Commands to run in the container

func (*TaskComponent) SetCount

func (o *TaskComponent) SetCount(v int32) *TaskComponent

SetCount sets field value

func (*TaskComponent) SetCpu

func (o *TaskComponent) SetCpu(v string) *TaskComponent

SetCpu gets a reference to the given string and assigns it to the cpu field. Cpu: Number of CPU units for the service, like `0.5` (0.5 CPU core), `1` (1 CPU core)

func (*TaskComponent) SetEnv

func (o *TaskComponent) SetEnv(v []Env) *TaskComponent

SetEnv gets a reference to the given []Env and assigns it to the env field. Env: Define arguments by using environment variables

func (*TaskComponent) SetImage

func (o *TaskComponent) SetImage(v string) *TaskComponent

SetImage sets field value

func (*TaskComponent) SetImagePullPolicy

func (o *TaskComponent) SetImagePullPolicy(v string) *TaskComponent

SetImagePullPolicy gets a reference to the given string and assigns it to the imagePullPolicy field. ImagePullPolicy: Specify image pull policy for your service

func (*TaskComponent) SetImagePullSecrets

func (o *TaskComponent) SetImagePullSecrets(v []string) *TaskComponent

SetImagePullSecrets gets a reference to the given []string and assigns it to the imagePullSecrets field. ImagePullSecrets: Specify image pull secrets for your service

func (*TaskComponent) SetLabels

func (o *TaskComponent) SetLabels(v map[string]string) *TaskComponent

SetLabels gets a reference to the given map[string]string and assigns it to the labels field. Labels: Specify the labels in the workload

func (*TaskComponent) SetLivenessProbe

func (o *TaskComponent) SetLivenessProbe(v HealthProbe) *TaskComponent

SetLivenessProbe gets a reference to the given HealthProbe and assigns it to the livenessProbe field. LivenessProbe:

func (*TaskComponent) SetMemory

func (o *TaskComponent) SetMemory(v string) *TaskComponent

SetMemory gets a reference to the given string and assigns it to the memory field. Memory: Specifies the attributes of the memory resource required for the container.

func (*TaskComponent) SetReadinessProbe

func (o *TaskComponent) SetReadinessProbe(v HealthProbe) *TaskComponent

SetReadinessProbe gets a reference to the given HealthProbe and assigns it to the readinessProbe field. ReadinessProbe:

func (*TaskComponent) SetRestart

func (o *TaskComponent) SetRestart(v string) *TaskComponent

SetRestart sets field value

func (*TaskComponent) SetTraits

func (t *TaskComponent) SetTraits(traits ...apis.Trait) *TaskComponent

func (*TaskComponent) SetVolumes

func (o *TaskComponent) SetVolumes(v []Volumes) *TaskComponent

SetVolumes gets a reference to the given []Volumes and assigns it to the volumes field. Volumes: Declare volumes and volumeMounts

func (*TaskComponent) Validate

func (o *TaskComponent) Validate() error

Validate validates this TaskSpec 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type TaskSpec

type TaskSpec struct {
	// Specify the annotations in the workload
	Annotations map[string]string `json:"annotations,omitempty"`
	// Commands to run in the container
	Cmd []string `json:"cmd,omitempty"`
	// Specify number of tasks to run in parallel +short=c
	Count *int32 `json:"count"`
	// Number of CPU units for the service, like `0.5` (0.5 CPU core), `1` (1 CPU core)
	Cpu *string `json:"cpu,omitempty"`
	// Define arguments by using environment variables
	Env []Env `json:"env,omitempty"`
	// Which image would you like to use for your service +short=i
	Image *string `json:"image"`
	// Specify image pull policy for your service
	ImagePullPolicy *string `json:"imagePullPolicy,omitempty"`
	// Specify image pull secrets for your service
	ImagePullSecrets []string `json:"imagePullSecrets,omitempty"`
	// Specify the labels in the workload
	Labels        map[string]string `json:"labels,omitempty"`
	LivenessProbe *HealthProbe      `json:"livenessProbe,omitempty"`
	// Specifies the attributes of the memory resource required for the container.
	Memory         *string      `json:"memory,omitempty"`
	ReadinessProbe *HealthProbe `json:"readinessProbe,omitempty"`
	// Define the job restart policy, the value can only be Never or OnFailure. By default, it's Never.
	Restart *string `json:"restart"`
	// Declare volumes and volumeMounts
	Volumes []Volumes `json:"volumes,omitempty"`
}

TaskSpec struct for TaskSpec

func NewTaskSpec

func NewTaskSpec() *TaskSpec

NewTaskSpec is short for NewTaskSpecWithDefault which instantiates a new TaskSpec 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

func NewTaskSpecEmpty

func NewTaskSpecEmpty() *TaskSpec

NewTaskSpecEmpty instantiates a new TaskSpec object with no properties set. This constructor will not assign any default values to properties.

func NewTaskSpecList

func NewTaskSpecList(ps ...*TaskSpec) []TaskSpec

NewTaskSpecs converts a list TaskSpec pointers to objects. This is helpful when the SetTaskSpec requires a list of objects

func NewTaskSpecWith

func NewTaskSpecWith(count int32, image string, restart string) *TaskSpec

NewTaskSpecWith instantiates a new TaskSpec object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewTaskSpecWithDefault

func NewTaskSpecWithDefault() *TaskSpec

NewTaskSpecWithDefault instantiates a new TaskSpec 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

func (TaskSpec) MarshalJSON

func (o TaskSpec) MarshalJSON() ([]byte, error)

func (TaskSpec) ToMap

func (o TaskSpec) ToMap() (map[string]interface{}, error)

type TcpSocket

type TcpSocket struct {
	// The TCP socket within the container that should be probed to assess container health.
	Port *int32 `json:"port"`
}

TcpSocket Instructions for assessing container health by probing a TCP socket. Either this attribute or the exec attribute or the httpGet attribute MUST be specified. This attribute is mutually exclusive with both the exec attribute and the httpGet attribute.

func NewTcpSocket

func NewTcpSocket() *TcpSocket

NewTcpSocket is short for NewTcpSocketWithDefault which instantiates a new TcpSocket 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

func NewTcpSocketEmpty

func NewTcpSocketEmpty() *TcpSocket

NewTcpSocketEmpty instantiates a new TcpSocket object with no properties set. This constructor will not assign any default values to properties.

func NewTcpSocketList

func NewTcpSocketList(ps ...*TcpSocket) []TcpSocket

NewTcpSockets converts a list TcpSocket pointers to objects. This is helpful when the SetTcpSocket requires a list of objects

func NewTcpSocketWith

func NewTcpSocketWith(port int32) *TcpSocket

NewTcpSocketWith instantiates a new TcpSocket object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewTcpSocketWithDefault

func NewTcpSocketWithDefault() *TcpSocket

NewTcpSocketWithDefault instantiates a new TcpSocket 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

func (*TcpSocket) GetPort

func (o *TcpSocket) GetPort() int32

GetPort returns the Port field value

func (*TcpSocket) GetPortOk

func (o *TcpSocket) GetPortOk() (*int32, bool)

GetPortOk returns a tuple with the Port field value and a boolean to check if the value has been set.

func (TcpSocket) MarshalJSON

func (o TcpSocket) MarshalJSON() ([]byte, error)

func (*TcpSocket) SetPort

func (o *TcpSocket) SetPort(v int32) *TcpSocket

SetPort sets field value

func (TcpSocket) ToMap

func (o TcpSocket) ToMap() (map[string]interface{}, error)

func (*TcpSocket) Validate

func (o *TcpSocket) Validate() error

Validate validates this TcpSocket 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type ValueFrom

type ValueFrom struct {
	ConfigMapKeyRef *ConfigMapKeyRef `json:"configMapKeyRef,omitempty"`
	SecretKeyRef    *SecretKeyRef    `json:"secretKeyRef,omitempty"`
}

ValueFrom Specifies a source the value of this var should come from

func NewValueFrom

func NewValueFrom() *ValueFrom

NewValueFrom is short for NewValueFromWithDefault which instantiates a new ValueFrom 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

func NewValueFromEmpty

func NewValueFromEmpty() *ValueFrom

NewValueFromEmpty instantiates a new ValueFrom object with no properties set. This constructor will not assign any default values to properties.

func NewValueFromList

func NewValueFromList(ps ...*ValueFrom) []ValueFrom

NewValueFroms converts a list ValueFrom pointers to objects. This is helpful when the SetValueFrom requires a list of objects

func NewValueFromWith

func NewValueFromWith() *ValueFrom

NewValueFromWith instantiates a new ValueFrom object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewValueFromWithDefault

func NewValueFromWithDefault() *ValueFrom

NewValueFromWithDefault instantiates a new ValueFrom 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

func (*ValueFrom) GetConfigMapKeyRef

func (o *ValueFrom) GetConfigMapKeyRef() ConfigMapKeyRef

GetConfigMapKeyRef returns the ConfigMapKeyRef field value if set, zero value otherwise.

func (*ValueFrom) GetConfigMapKeyRefOk

func (o *ValueFrom) GetConfigMapKeyRefOk() (*ConfigMapKeyRef, bool)

GetConfigMapKeyRefOk returns a tuple with the ConfigMapKeyRef field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ValueFrom) GetSecretKeyRef

func (o *ValueFrom) GetSecretKeyRef() SecretKeyRef

GetSecretKeyRef returns the SecretKeyRef field value if set, zero value otherwise.

func (*ValueFrom) GetSecretKeyRefOk

func (o *ValueFrom) GetSecretKeyRefOk() (*SecretKeyRef, bool)

GetSecretKeyRefOk returns a tuple with the SecretKeyRef field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ValueFrom) HasConfigMapKeyRef

func (o *ValueFrom) HasConfigMapKeyRef() bool

HasConfigMapKeyRef returns a boolean if a field has been set.

func (*ValueFrom) HasSecretKeyRef

func (o *ValueFrom) HasSecretKeyRef() bool

HasSecretKeyRef returns a boolean if a field has been set.

func (ValueFrom) MarshalJSON

func (o ValueFrom) MarshalJSON() ([]byte, error)

func (*ValueFrom) SetConfigMapKeyRef

func (o *ValueFrom) SetConfigMapKeyRef(v ConfigMapKeyRef) *ValueFrom

SetConfigMapKeyRef gets a reference to the given ConfigMapKeyRef and assigns it to the configMapKeyRef field. ConfigMapKeyRef:

func (*ValueFrom) SetSecretKeyRef

func (o *ValueFrom) SetSecretKeyRef(v SecretKeyRef) *ValueFrom

SetSecretKeyRef gets a reference to the given SecretKeyRef and assigns it to the secretKeyRef field. SecretKeyRef:

func (ValueFrom) ToMap

func (o ValueFrom) ToMap() (map[string]interface{}, error)

func (*ValueFrom) Validate

func (o *ValueFrom) Validate() error

Validate validates this ValueFrom 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type Volumes

type Volumes struct {
	Medium    *string `json:"medium"`
	MountPath *string `json:"mountPath"`
	Name      *string `json:"name"`
	// Specify volume type, options: \"pvc\",\"configMap\",\"secret\",\"emptyDir\", default to emptyDir
	Type *string `json:"type"`
}

Volumes struct for Volumes

func NewVolumes

func NewVolumes() *Volumes

NewVolumes is short for NewVolumesWithDefault which instantiates a new Volumes 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

func NewVolumesEmpty

func NewVolumesEmpty() *Volumes

NewVolumesEmpty instantiates a new Volumes object with no properties set. This constructor will not assign any default values to properties.

func NewVolumesList

func NewVolumesList(ps ...*Volumes) []Volumes

NewVolumess converts a list Volumes pointers to objects. This is helpful when the SetVolumes requires a list of objects

func NewVolumesWith

func NewVolumesWith(medium string, mountPath string, name string, type_ string) *Volumes

NewVolumesWith instantiates a new Volumes object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewVolumesWithDefault

func NewVolumesWithDefault() *Volumes

NewVolumesWithDefault instantiates a new Volumes 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

func (*Volumes) GetMedium

func (o *Volumes) GetMedium() string

GetMedium returns the Medium field value

func (*Volumes) GetMediumOk

func (o *Volumes) GetMediumOk() (*string, bool)

GetMediumOk returns a tuple with the Medium field value and a boolean to check if the value has been set.

func (*Volumes) GetMountPath

func (o *Volumes) GetMountPath() string

GetMountPath returns the MountPath field value

func (*Volumes) GetMountPathOk

func (o *Volumes) GetMountPathOk() (*string, bool)

GetMountPathOk returns a tuple with the MountPath field value and a boolean to check if the value has been set.

func (*Volumes) GetName

func (o *Volumes) GetName() string

GetName returns the Name field value

func (*Volumes) GetNameOk

func (o *Volumes) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Volumes) GetType

func (o *Volumes) GetType() string

GetType returns the Type field value

func (*Volumes) GetTypeOk

func (o *Volumes) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (Volumes) MarshalJSON

func (o Volumes) MarshalJSON() ([]byte, error)

func (*Volumes) SetMedium

func (o *Volumes) SetMedium(v string) *Volumes

SetMedium sets field value

func (*Volumes) SetMountPath

func (o *Volumes) SetMountPath(v string) *Volumes

SetMountPath sets field value

func (*Volumes) SetName

func (o *Volumes) SetName(v string) *Volumes

SetName sets field value

func (*Volumes) SetType

func (o *Volumes) SetType(v string) *Volumes

SetType sets field value

func (Volumes) ToMap

func (o Volumes) ToMap() (map[string]interface{}, error)

func (*Volumes) Validate

func (o *Volumes) Validate() error

Validate validates this Volumes 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

Jump to

Keyboard shortcuts

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