container_image

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 ContainerImageType = "container-image"

Variables

This section is empty.

Functions

func FromTrait

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

Types

type ContainerImageSpec

type ContainerImageSpec struct {
	ContainerImageSpecOneOf *ContainerImageSpecOneOf
	PatchParams             *PatchParams
}

ContainerImageSpec - struct for ContainerImageSpec

func ContainerImageSpecOneOfAsContainerImageSpec

func ContainerImageSpecOneOfAsContainerImageSpec(v *ContainerImageSpecOneOf) ContainerImageSpec

ContainerImageSpecOneOfAsContainerImageSpec is is a convenience function that returns ContainerImageSpecOneOf wrapped in ContainerImageSpec

func PatchParamsAsContainerImageSpec

func PatchParamsAsContainerImageSpec(v *PatchParams) ContainerImageSpec

PatchParamsAsContainerImageSpec is is a convenience function that returns PatchParams wrapped in ContainerImageSpec

func (*ContainerImageSpec) GetActualInstance

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

Get the actual instance

func (ContainerImageSpec) MarshalJSON

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

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

func (*ContainerImageSpec) UnmarshalJSON

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

Unmarshal JSON data into one of the pointers in the struct

type ContainerImageSpecOneOf

type ContainerImageSpecOneOf struct {
	// Specify the container image for multiple containers
	Containers []PatchParams `json:"containers"`
}

ContainerImageSpecOneOf struct for ContainerImageSpecOneOf

func NewContainerImageSpecOneOf

func NewContainerImageSpecOneOf() *ContainerImageSpecOneOf

NewContainerImageSpecOneOf is short for NewContainerImageSpecOneOfWithDefault which instantiates a new ContainerImageSpecOneOf 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 NewContainerImageSpecOneOfEmpty

func NewContainerImageSpecOneOfEmpty() *ContainerImageSpecOneOf

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

func NewContainerImageSpecOneOfList

func NewContainerImageSpecOneOfList(ps ...*ContainerImageSpecOneOf) []ContainerImageSpecOneOf

NewContainerImageSpecOneOfs converts a list ContainerImageSpecOneOf pointers to objects. This is helpful when the SetContainerImageSpecOneOf requires a list of objects

func NewContainerImageSpecOneOfWith

func NewContainerImageSpecOneOfWith(containers []PatchParams) *ContainerImageSpecOneOf

NewContainerImageSpecOneOfWith instantiates a new ContainerImageSpecOneOf 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 NewContainerImageSpecOneOfWithDefault

func NewContainerImageSpecOneOfWithDefault() *ContainerImageSpecOneOf

NewContainerImageSpecOneOfWithDefault instantiates a new ContainerImageSpecOneOf 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 (*ContainerImageSpecOneOf) GetContainers

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

GetContainers returns the Containers field value

func (*ContainerImageSpecOneOf) GetContainersOk

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

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

func (ContainerImageSpecOneOf) MarshalJSON

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

func (*ContainerImageSpecOneOf) SetContainers

SetContainers sets field value

func (ContainerImageSpecOneOf) ToMap

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

func (*ContainerImageSpecOneOf) Validate

func (o *ContainerImageSpecOneOf) Validate() error

Validate validates this ContainerImageSpecOneOf 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 ContainerImageTrait

type ContainerImageTrait struct {
	Base       apis.TraitBase
	Properties ContainerImageSpec
}

func ContainerImage

func ContainerImage() *ContainerImageTrait

func (*ContainerImageTrait) Build

func (*ContainerImageTrait) DefType

func (c *ContainerImageTrait) DefType() string

func (*ContainerImageTrait) FromTrait

func (*ContainerImageTrait) Validate

func (o *ContainerImageTrait) Validate() error

Validate validates this ContainerImageSpec

type NullableContainerImageSpec

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

func NewNullableContainerImageSpec

func NewNullableContainerImageSpec(val *ContainerImageSpec) *NullableContainerImageSpec

func (*NullableContainerImageSpec) Get

func (*NullableContainerImageSpec) IsSet

func (v *NullableContainerImageSpec) IsSet() bool

func (NullableContainerImageSpec) MarshalJSON

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

func (*NullableContainerImageSpec) Set

func (*NullableContainerImageSpec) UnmarshalJSON

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

func (*NullableContainerImageSpec) Unset

func (v *NullableContainerImageSpec) Unset()

type NullableContainerImageSpecOneOf

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

func (*NullableContainerImageSpecOneOf) Get

func (*NullableContainerImageSpecOneOf) IsSet

func (NullableContainerImageSpecOneOf) MarshalJSON

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

func (*NullableContainerImageSpecOneOf) Set

func (*NullableContainerImageSpecOneOf) UnmarshalJSON

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

func (*NullableContainerImageSpecOneOf) 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 image of the container
	Image *string `json:"image"`
	// Specify the image pull policy of the container
	ImagePullPolicy *string `json:"imagePullPolicy"`
}

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, image string, imagePullPolicy 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) GetImage

func (o *PatchParams) GetImage() string

GetImage returns the Image field value

func (*PatchParams) GetImageOk

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

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

func (*PatchParams) GetImagePullPolicy

func (o *PatchParams) GetImagePullPolicy() string

GetImagePullPolicy returns the ImagePullPolicy field value

func (*PatchParams) GetImagePullPolicyOk

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

GetImagePullPolicyOk returns a tuple with the ImagePullPolicy 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) SetImage

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

SetImage sets field value

func (*PatchParams) SetImagePullPolicy

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

SetImagePullPolicy 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