env

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 EnvType = "env"

Variables

This section is empty.

Functions

func FromTrait

func FromTrait(from common.ApplicationTrait) (apis.Trait, error)

Types

type EnvSpec

type EnvSpec struct {
	EnvSpecOneOf *EnvSpecOneOf
	PatchParams  *PatchParams
}

EnvSpec - struct for EnvSpec

func EnvSpecOneOfAsEnvSpec

func EnvSpecOneOfAsEnvSpec(v *EnvSpecOneOf) EnvSpec

EnvSpecOneOfAsEnvSpec is is a convenience function that returns EnvSpecOneOf wrapped in EnvSpec

func PatchParamsAsEnvSpec

func PatchParamsAsEnvSpec(v *PatchParams) EnvSpec

PatchParamsAsEnvSpec is is a convenience function that returns PatchParams wrapped in EnvSpec

func (*EnvSpec) GetActualInstance

func (obj *EnvSpec) GetActualInstance() interface{}

Get the actual instance

func (EnvSpec) MarshalJSON

func (src EnvSpec) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*EnvSpec) UnmarshalJSON

func (dst *EnvSpec) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type EnvSpecOneOf

type EnvSpecOneOf struct {
	// Specify the environment variables for multiple containers
	Containers []PatchParams `json:"containers"`
}

EnvSpecOneOf struct for EnvSpecOneOf

func NewEnvSpecOneOf

func NewEnvSpecOneOf() *EnvSpecOneOf

NewEnvSpecOneOf is short for NewEnvSpecOneOfWithDefault which instantiates a new EnvSpecOneOf 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 NewEnvSpecOneOfEmpty

func NewEnvSpecOneOfEmpty() *EnvSpecOneOf

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

func NewEnvSpecOneOfList

func NewEnvSpecOneOfList(ps ...*EnvSpecOneOf) []EnvSpecOneOf

NewEnvSpecOneOfs converts a list EnvSpecOneOf pointers to objects. This is helpful when the SetEnvSpecOneOf requires a list of objects

func NewEnvSpecOneOfWith

func NewEnvSpecOneOfWith(containers []PatchParams) *EnvSpecOneOf

NewEnvSpecOneOfWith instantiates a new EnvSpecOneOf 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 NewEnvSpecOneOfWithDefault

func NewEnvSpecOneOfWithDefault() *EnvSpecOneOf

NewEnvSpecOneOfWithDefault instantiates a new EnvSpecOneOf 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 (*EnvSpecOneOf) GetContainers

func (o *EnvSpecOneOf) GetContainers() []PatchParams

GetContainers returns the Containers field value

func (*EnvSpecOneOf) GetContainersOk

func (o *EnvSpecOneOf) GetContainersOk() ([]PatchParams, bool)

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

func (EnvSpecOneOf) MarshalJSON

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

func (*EnvSpecOneOf) SetContainers

func (o *EnvSpecOneOf) SetContainers(v []PatchParams) *EnvSpecOneOf

SetContainers sets field value

func (EnvSpecOneOf) ToMap

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

func (*EnvSpecOneOf) Validate

func (o *EnvSpecOneOf) Validate() error

Validate validates this EnvSpecOneOf 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 EnvTrait

type EnvTrait struct {
	Base       apis.TraitBase
	Properties EnvSpec
}

func Env

func Env() *EnvTrait

func (*EnvTrait) Build

func (e *EnvTrait) Build() common.ApplicationTrait

func (*EnvTrait) DefType

func (e *EnvTrait) DefType() string

func (*EnvTrait) FromTrait

func (e *EnvTrait) FromTrait(from common.ApplicationTrait) (*EnvTrait, error)

func (*EnvTrait) Validate

func (o *EnvTrait) Validate() error

Validate validates this EnvSpec

type NullableEnvSpec

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

func NewNullableEnvSpec

func NewNullableEnvSpec(val *EnvSpec) *NullableEnvSpec

func (*NullableEnvSpec) Get

func (v *NullableEnvSpec) Get() *EnvSpec

func (*NullableEnvSpec) IsSet

func (v *NullableEnvSpec) IsSet() bool

func (NullableEnvSpec) MarshalJSON

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

func (*NullableEnvSpec) Set

func (v *NullableEnvSpec) Set(val *EnvSpec)

func (*NullableEnvSpec) UnmarshalJSON

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

func (*NullableEnvSpec) Unset

func (v *NullableEnvSpec) Unset()

type NullableEnvSpecOneOf

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

func NewNullableEnvSpecOneOf

func NewNullableEnvSpecOneOf(val *EnvSpecOneOf) *NullableEnvSpecOneOf

func (*NullableEnvSpecOneOf) Get

func (*NullableEnvSpecOneOf) IsSet

func (v *NullableEnvSpecOneOf) IsSet() bool

func (NullableEnvSpecOneOf) MarshalJSON

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

func (*NullableEnvSpecOneOf) Set

func (v *NullableEnvSpecOneOf) Set(val *EnvSpecOneOf)

func (*NullableEnvSpecOneOf) UnmarshalJSON

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

func (*NullableEnvSpecOneOf) Unset

func (v *NullableEnvSpecOneOf) Unset()

type NullablePatchParams

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

func NewNullablePatchParams

func NewNullablePatchParams(val *PatchParams) *NullablePatchParams

func (*NullablePatchParams) Get

func (v *NullablePatchParams) Get() *PatchParams

func (*NullablePatchParams) IsSet

func (v *NullablePatchParams) IsSet() bool

func (NullablePatchParams) MarshalJSON

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

func (*NullablePatchParams) Set

func (v *NullablePatchParams) Set(val *PatchParams)

func (*NullablePatchParams) UnmarshalJSON

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

func (*NullablePatchParams) Unset

func (v *NullablePatchParams) Unset()

type PatchParams

type PatchParams struct {
	// Specify the name of the target container, if not set, use the component name
	ContainerName *string `json:"containerName"`
	// Specify the  environment variables to merge, if key already existing, override its value
	Env map[string]string `json:"env"`
	// Specify if replacing the whole environment settings for the container
	Replace *bool `json:"replace"`
	// Specify which existing environment variables to unset
	Unset []string `json:"unset"`
}

PatchParams struct for PatchParams

func NewPatchParams

func NewPatchParams() *PatchParams

NewPatchParams is short for NewPatchParamsWithDefault which instantiates a new PatchParams 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 NewPatchParamsEmpty

func NewPatchParamsEmpty() *PatchParams

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

func NewPatchParamsList

func NewPatchParamsList(ps ...*PatchParams) []PatchParams

NewPatchParamss converts a list PatchParams pointers to objects. This is helpful when the SetPatchParams requires a list of objects

func NewPatchParamsWith

func NewPatchParamsWith(containerName string, env map[string]string, replace bool, unset []string) *PatchParams

NewPatchParamsWith instantiates a new PatchParams 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 NewPatchParamsWithDefault

func NewPatchParamsWithDefault() *PatchParams

NewPatchParamsWithDefault instantiates a new PatchParams 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 (*PatchParams) GetContainerName

func (o *PatchParams) GetContainerName() string

GetContainerName returns the ContainerName field value

func (*PatchParams) GetContainerNameOk

func (o *PatchParams) GetContainerNameOk() (*string, bool)

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

func (*PatchParams) GetEnv

func (o *PatchParams) GetEnv() map[string]string

GetEnv returns the Env field value

func (*PatchParams) GetEnvOk

func (o *PatchParams) GetEnvOk() (map[string]string, bool)

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

func (*PatchParams) GetReplace

func (o *PatchParams) GetReplace() bool

GetReplace returns the Replace field value

func (*PatchParams) GetReplaceOk

func (o *PatchParams) GetReplaceOk() (*bool, bool)

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

func (*PatchParams) GetUnset

func (o *PatchParams) GetUnset() []string

GetUnset returns the Unset field value

func (*PatchParams) GetUnsetOk

func (o *PatchParams) GetUnsetOk() ([]string, bool)

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

func (PatchParams) MarshalJSON

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

func (*PatchParams) SetContainerName

func (o *PatchParams) SetContainerName(v string) *PatchParams

SetContainerName sets field value

func (*PatchParams) SetEnv

func (o *PatchParams) SetEnv(v map[string]string) *PatchParams

SetEnv sets field value

func (*PatchParams) SetReplace

func (o *PatchParams) SetReplace(v bool) *PatchParams

SetReplace sets field value

func (*PatchParams) SetUnset

func (o *PatchParams) SetUnset(v []string) *PatchParams

SetUnset sets field value

func (PatchParams) ToMap

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

func (*PatchParams) Validate

func (o *PatchParams) Validate() error

Validate validates this PatchParams 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