init_container

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const InitContainerType = "init-container"

Variables

This section is empty.

Functions

func FromTrait

func FromTrait(from common.ApplicationTrait) (apis.Trait, 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 ExtraVolumeMounts

type ExtraVolumeMounts struct {
	// The mountPath for mount in the init container
	MountPath *string `json:"mountPath"`
	// The name of the volume to be mounted
	Name *string `json:"name"`
}

ExtraVolumeMounts struct for ExtraVolumeMounts

func NewExtraVolumeMounts

func NewExtraVolumeMounts() *ExtraVolumeMounts

NewExtraVolumeMounts is short for NewExtraVolumeMountsWithDefault which instantiates a new ExtraVolumeMounts 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 NewExtraVolumeMountsEmpty

func NewExtraVolumeMountsEmpty() *ExtraVolumeMounts

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

func NewExtraVolumeMountsList

func NewExtraVolumeMountsList(ps ...*ExtraVolumeMounts) []ExtraVolumeMounts

NewExtraVolumeMountss converts a list ExtraVolumeMounts pointers to objects. This is helpful when the SetExtraVolumeMounts requires a list of objects

func NewExtraVolumeMountsWith

func NewExtraVolumeMountsWith(mountPath string, name string) *ExtraVolumeMounts

NewExtraVolumeMountsWith instantiates a new ExtraVolumeMounts 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 NewExtraVolumeMountsWithDefault

func NewExtraVolumeMountsWithDefault() *ExtraVolumeMounts

NewExtraVolumeMountsWithDefault instantiates a new ExtraVolumeMounts 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 (*ExtraVolumeMounts) GetMountPath

func (o *ExtraVolumeMounts) GetMountPath() string

GetMountPath returns the MountPath field value

func (*ExtraVolumeMounts) GetMountPathOk

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

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

func (*ExtraVolumeMounts) GetName

func (o *ExtraVolumeMounts) GetName() string

GetName returns the Name field value

func (*ExtraVolumeMounts) GetNameOk

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

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

func (ExtraVolumeMounts) MarshalJSON

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

func (*ExtraVolumeMounts) SetMountPath

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

SetMountPath sets field value

func (*ExtraVolumeMounts) SetName

SetName sets field value

func (ExtraVolumeMounts) ToMap

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

func (*ExtraVolumeMounts) Validate

func (o *ExtraVolumeMounts) Validate() error

Validate validates this ExtraVolumeMounts 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 InitContainerSpec

type InitContainerSpec struct {
	// Specify the mount path of app container
	AppMountPath *string `json:"appMountPath"`
	// Specify the args run in the init container
	Args []string `json:"args,omitempty"`
	// Specify the commands run in the init container
	Cmd []string `json:"cmd,omitempty"`
	// Specify the env run in the init container
	Env []Env `json:"env,omitempty"`
	// Specify the extra volume mounts for the init container
	ExtraVolumeMounts []ExtraVolumeMounts `json:"extraVolumeMounts"`
	// Specify the image of init container
	Image *string `json:"image"`
	// Specify image pull policy for your service
	ImagePullPolicy *string `json:"imagePullPolicy"`
	// Specify the mount path of init container
	InitMountPath *string `json:"initMountPath"`
	// Specify the mount name of shared volume
	MountName *string `json:"mountName"`
	// Specify the name of init container
	Name *string `json:"name"`
}

InitContainerSpec struct for InitContainerSpec

func NewInitContainerSpec

func NewInitContainerSpec() *InitContainerSpec

NewInitContainerSpec is short for NewInitContainerSpecWithDefault which instantiates a new InitContainerSpec 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 NewInitContainerSpecEmpty

func NewInitContainerSpecEmpty() *InitContainerSpec

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

func NewInitContainerSpecList

func NewInitContainerSpecList(ps ...*InitContainerSpec) []InitContainerSpec

NewInitContainerSpecs converts a list InitContainerSpec pointers to objects. This is helpful when the SetInitContainerSpec requires a list of objects

func NewInitContainerSpecWith

func NewInitContainerSpecWith(appMountPath string, extraVolumeMounts []ExtraVolumeMounts, image string, imagePullPolicy string, initMountPath string, mountName string, name string) *InitContainerSpec

NewInitContainerSpecWith instantiates a new InitContainerSpec 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 NewInitContainerSpecWithDefault

func NewInitContainerSpecWithDefault() *InitContainerSpec

NewInitContainerSpecWithDefault instantiates a new InitContainerSpec 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 (InitContainerSpec) MarshalJSON

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

func (InitContainerSpec) ToMap

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

type InitContainerTrait

type InitContainerTrait struct {
	Base       apis.TraitBase
	Properties InitContainerSpec
}

func InitContainer

func InitContainer() *InitContainerTrait

func (*InitContainerTrait) Build

func (*InitContainerTrait) DefType

func (i *InitContainerTrait) DefType() string

func (*InitContainerTrait) FromTrait

func (*InitContainerTrait) GetAppMountPath

func (o *InitContainerTrait) GetAppMountPath() string

GetAppMountPath returns the AppMountPath field value

func (*InitContainerTrait) GetAppMountPathOk

func (o *InitContainerTrait) GetAppMountPathOk() (*string, bool)

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

func (*InitContainerTrait) GetArgs

func (o *InitContainerTrait) GetArgs() []string

GetArgs returns the Args field value if set, zero value otherwise.

func (*InitContainerTrait) GetArgsOk

func (o *InitContainerTrait) GetArgsOk() ([]string, bool)

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

func (*InitContainerTrait) GetCmd

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

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

func (*InitContainerTrait) GetCmdOk

func (o *InitContainerTrait) 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 (*InitContainerTrait) GetEnv

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

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

func (*InitContainerTrait) GetEnvOk

func (o *InitContainerTrait) 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 (*InitContainerTrait) GetExtraVolumeMounts

func (o *InitContainerTrait) GetExtraVolumeMounts() []ExtraVolumeMounts

GetExtraVolumeMounts returns the ExtraVolumeMounts field value

func (*InitContainerTrait) GetExtraVolumeMountsOk

func (o *InitContainerTrait) GetExtraVolumeMountsOk() ([]ExtraVolumeMounts, bool)

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

func (*InitContainerTrait) GetImage

func (o *InitContainerTrait) GetImage() string

GetImage returns the Image field value

func (*InitContainerTrait) GetImageOk

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

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

func (*InitContainerTrait) GetImagePullPolicy

func (o *InitContainerTrait) GetImagePullPolicy() string

GetImagePullPolicy returns the ImagePullPolicy field value

func (*InitContainerTrait) GetImagePullPolicyOk

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

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

func (*InitContainerTrait) GetInitMountPath

func (o *InitContainerTrait) GetInitMountPath() string

GetInitMountPath returns the InitMountPath field value

func (*InitContainerTrait) GetInitMountPathOk

func (o *InitContainerTrait) GetInitMountPathOk() (*string, bool)

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

func (*InitContainerTrait) GetMountName

func (o *InitContainerTrait) GetMountName() string

GetMountName returns the MountName field value

func (*InitContainerTrait) GetMountNameOk

func (o *InitContainerTrait) GetMountNameOk() (*string, bool)

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

func (*InitContainerTrait) GetName

func (o *InitContainerTrait) GetName() string

GetName returns the Name field value

func (*InitContainerTrait) GetNameOk

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

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

func (*InitContainerTrait) HasArgs

func (o *InitContainerTrait) HasArgs() bool

HasArgs returns a boolean if a field has been set.

func (*InitContainerTrait) HasCmd

func (o *InitContainerTrait) HasCmd() bool

HasCmd returns a boolean if a field has been set.

func (*InitContainerTrait) HasEnv

func (o *InitContainerTrait) HasEnv() bool

HasEnv returns a boolean if a field has been set.

func (*InitContainerTrait) SetAppMountPath

func (o *InitContainerTrait) SetAppMountPath(v string) *InitContainerTrait

SetAppMountPath sets field value

func (*InitContainerTrait) SetArgs

func (o *InitContainerTrait) SetArgs(v []string) *InitContainerTrait

SetArgs gets a reference to the given []string and assigns it to the args field. Args: Specify the args run in the init container

func (*InitContainerTrait) SetCmd

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

func (*InitContainerTrait) SetEnv

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

SetEnv gets a reference to the given []Env and assigns it to the env field. Env: Specify the env run in the init container

func (*InitContainerTrait) SetExtraVolumeMounts

func (o *InitContainerTrait) SetExtraVolumeMounts(v []ExtraVolumeMounts) *InitContainerTrait

SetExtraVolumeMounts sets field value

func (*InitContainerTrait) SetImage

SetImage sets field value

func (*InitContainerTrait) SetImagePullPolicy

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

SetImagePullPolicy sets field value

func (*InitContainerTrait) SetInitMountPath

func (o *InitContainerTrait) SetInitMountPath(v string) *InitContainerTrait

SetInitMountPath sets field value

func (*InitContainerTrait) SetMountName

func (o *InitContainerTrait) SetMountName(v string) *InitContainerTrait

SetMountName sets field value

func (*InitContainerTrait) SetName

SetName sets field value

func (*InitContainerTrait) Validate

func (o *InitContainerTrait) Validate() error

Validate validates this InitContainerSpec 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 NullableExtraVolumeMounts

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

func NewNullableExtraVolumeMounts

func NewNullableExtraVolumeMounts(val *ExtraVolumeMounts) *NullableExtraVolumeMounts

func (*NullableExtraVolumeMounts) Get

func (*NullableExtraVolumeMounts) IsSet

func (v *NullableExtraVolumeMounts) IsSet() bool

func (NullableExtraVolumeMounts) MarshalJSON

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

func (*NullableExtraVolumeMounts) Set

func (*NullableExtraVolumeMounts) UnmarshalJSON

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

func (*NullableExtraVolumeMounts) Unset

func (v *NullableExtraVolumeMounts) Unset()

type NullableInitContainerSpec

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

func NewNullableInitContainerSpec

func NewNullableInitContainerSpec(val *InitContainerSpec) *NullableInitContainerSpec

func (*NullableInitContainerSpec) Get

func (*NullableInitContainerSpec) IsSet

func (v *NullableInitContainerSpec) IsSet() bool

func (NullableInitContainerSpec) MarshalJSON

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

func (*NullableInitContainerSpec) Set

func (*NullableInitContainerSpec) UnmarshalJSON

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

func (*NullableInitContainerSpec) Unset

func (v *NullableInitContainerSpec) 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 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 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 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

Jump to

Keyboard shortcuts

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