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

Documentation

Index

Constants

View Source
const BuildPushImageType = "build-push-image"

Variables

This section is empty.

Functions

func FromWorkflowStep

func FromWorkflowStep(from v1beta1.WorkflowStep) (apis.WorkflowStep, error)

func FromWorkflowSubStep

func FromWorkflowSubStep(from common.WorkflowSubStep) (apis.WorkflowStep, error)

Types

type BuildPushImageSpec

type BuildPushImageSpec struct {
	// Specify the build args
	BuildArgs   []string     `json:"buildArgs,omitempty"`
	Context     *Context     `json:"context"`
	Credentials *Credentials `json:"credentials,omitempty"`
	// Specify the dockerfile
	Dockerfile *string `json:"dockerfile"`
	// Specify the image
	Image *string `json:"image"`
	// Specify the kaniko executor image, default to oamdev/kaniko-executor:v1.9.1
	KanikoExecutor *string `json:"kanikoExecutor"`
	// Specify the platform to build
	Platform *string `json:"platform,omitempty"`
	// Specify the verbosity level
	Verbosity *string `json:"verbosity"`
}

BuildPushImageSpec struct for BuildPushImageSpec

func NewBuildPushImageSpec

func NewBuildPushImageSpec() *BuildPushImageSpec

NewBuildPushImageSpec is short for NewBuildPushImageSpecWithDefault which instantiates a new BuildPushImageSpec 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 NewBuildPushImageSpecEmpty

func NewBuildPushImageSpecEmpty() *BuildPushImageSpec

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

func NewBuildPushImageSpecList

func NewBuildPushImageSpecList(ps ...*BuildPushImageSpec) []BuildPushImageSpec

NewBuildPushImageSpecs converts a list BuildPushImageSpec pointers to objects. This is helpful when the SetBuildPushImageSpec requires a list of objects

func NewBuildPushImageSpecWith

func NewBuildPushImageSpecWith(context Context, dockerfile string, image string, kanikoExecutor string, verbosity string) *BuildPushImageSpec

NewBuildPushImageSpecWith instantiates a new BuildPushImageSpec 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 NewBuildPushImageSpecWithDefault

func NewBuildPushImageSpecWithDefault() *BuildPushImageSpec

NewBuildPushImageSpecWithDefault instantiates a new BuildPushImageSpec 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 (BuildPushImageSpec) MarshalJSON

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

func (BuildPushImageSpec) ToMap

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

type BuildPushImageWorkflowStep

type BuildPushImageWorkflowStep struct {
	Base       apis.WorkflowStepBase
	Properties BuildPushImageSpec
}

func BuildPushImage

func BuildPushImage(name string) *BuildPushImageWorkflowStep

func (*BuildPushImageWorkflowStep) Alias

func (*BuildPushImageWorkflowStep) Build

func (*BuildPushImageWorkflowStep) DefType

func (b *BuildPushImageWorkflowStep) DefType() string

func (*BuildPushImageWorkflowStep) DependsOn

func (*BuildPushImageWorkflowStep) FromWorkflowStep

func (*BuildPushImageWorkflowStep) FromWorkflowSubStep

func (*BuildPushImageWorkflowStep) GetBuildArgs

func (o *BuildPushImageWorkflowStep) GetBuildArgs() []string

GetBuildArgs returns the BuildArgs field value if set, zero value otherwise.

func (*BuildPushImageWorkflowStep) GetBuildArgsOk

func (o *BuildPushImageWorkflowStep) GetBuildArgsOk() ([]string, bool)

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

func (*BuildPushImageWorkflowStep) GetContext

func (o *BuildPushImageWorkflowStep) GetContext() Context

GetContext returns the Context field value

func (*BuildPushImageWorkflowStep) GetContextOk

func (o *BuildPushImageWorkflowStep) GetContextOk() (*Context, bool)

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

func (*BuildPushImageWorkflowStep) GetCredentials

func (o *BuildPushImageWorkflowStep) GetCredentials() Credentials

GetCredentials returns the Credentials field value if set, zero value otherwise.

func (*BuildPushImageWorkflowStep) GetCredentialsOk

func (o *BuildPushImageWorkflowStep) GetCredentialsOk() (*Credentials, bool)

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

func (*BuildPushImageWorkflowStep) GetDockerfile

func (o *BuildPushImageWorkflowStep) GetDockerfile() string

GetDockerfile returns the Dockerfile field value

func (*BuildPushImageWorkflowStep) GetDockerfileOk

func (o *BuildPushImageWorkflowStep) GetDockerfileOk() (*string, bool)

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

func (*BuildPushImageWorkflowStep) GetImage

func (o *BuildPushImageWorkflowStep) GetImage() string

GetImage returns the Image field value

func (*BuildPushImageWorkflowStep) GetImageOk

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

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

func (*BuildPushImageWorkflowStep) GetKanikoExecutor

func (o *BuildPushImageWorkflowStep) GetKanikoExecutor() string

GetKanikoExecutor returns the KanikoExecutor field value

func (*BuildPushImageWorkflowStep) GetKanikoExecutorOk

func (o *BuildPushImageWorkflowStep) GetKanikoExecutorOk() (*string, bool)

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

func (*BuildPushImageWorkflowStep) GetPlatform

func (o *BuildPushImageWorkflowStep) GetPlatform() string

GetPlatform returns the Platform field value if set, zero value otherwise.

func (*BuildPushImageWorkflowStep) GetPlatformOk

func (o *BuildPushImageWorkflowStep) GetPlatformOk() (*string, bool)

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

func (*BuildPushImageWorkflowStep) GetVerbosity

func (o *BuildPushImageWorkflowStep) GetVerbosity() string

GetVerbosity returns the Verbosity field value

func (*BuildPushImageWorkflowStep) GetVerbosityOk

func (o *BuildPushImageWorkflowStep) GetVerbosityOk() (*string, bool)

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

func (*BuildPushImageWorkflowStep) HasBuildArgs

func (o *BuildPushImageWorkflowStep) HasBuildArgs() bool

HasBuildArgs returns a boolean if a field has been set.

func (*BuildPushImageWorkflowStep) HasCredentials

func (o *BuildPushImageWorkflowStep) HasCredentials() bool

HasCredentials returns a boolean if a field has been set.

func (*BuildPushImageWorkflowStep) HasPlatform

func (o *BuildPushImageWorkflowStep) HasPlatform() bool

HasPlatform returns a boolean if a field has been set.

func (*BuildPushImageWorkflowStep) If

func (*BuildPushImageWorkflowStep) Inputs

func (*BuildPushImageWorkflowStep) Outputs

func (*BuildPushImageWorkflowStep) SetBuildArgs

SetBuildArgs gets a reference to the given []string and assigns it to the buildArgs field. BuildArgs: Specify the build args

func (*BuildPushImageWorkflowStep) SetContext

SetContext sets field value

func (*BuildPushImageWorkflowStep) SetCredentials

SetCredentials gets a reference to the given Credentials and assigns it to the credentials field. Credentials:

func (*BuildPushImageWorkflowStep) SetDockerfile

SetDockerfile sets field value

func (*BuildPushImageWorkflowStep) SetImage

SetImage sets field value

func (*BuildPushImageWorkflowStep) SetKanikoExecutor

SetKanikoExecutor sets field value

func (*BuildPushImageWorkflowStep) SetPlatform

SetPlatform gets a reference to the given string and assigns it to the platform field. Platform: Specify the platform to build

func (*BuildPushImageWorkflowStep) SetVerbosity

SetVerbosity sets field value

func (*BuildPushImageWorkflowStep) Timeout

func (*BuildPushImageWorkflowStep) Validate

func (o *BuildPushImageWorkflowStep) Validate() error

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

func (*BuildPushImageWorkflowStep) WorkflowStepName

func (b *BuildPushImageWorkflowStep) WorkflowStepName() string

type Context

type Context struct {
	Git    *Git
	String *string
}

Context - Specify the context to build image, you can use context with git and branch or directly specify the context, please refer to https://github.com/GoogleContainerTools/kaniko#kaniko-build-contexts

func GitAsContext

func GitAsContext(v *Git) Context

GitAsContext is is a convenience function that returns Git wrapped in Context

func StringAsContext

func StringAsContext(v *string) Context

StringAsContext is is a convenience function that returns string wrapped in Context

func (*Context) GetActualInstance

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

Get the actual instance

func (Context) MarshalJSON

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

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

func (*Context) UnmarshalJSON

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

Unmarshal JSON data into one of the pointers in the struct

func (*Context) Validate

func (o *Context) Validate() error

Validate validates this Context

type Credentials

type Credentials struct {
	Git   *Git1  `json:"git,omitempty"`
	Image *Image `json:"image,omitempty"`
}

Credentials Specify the credentials to access git and image registry

func NewCredentials

func NewCredentials() *Credentials

NewCredentials is short for NewCredentialsWithDefault which instantiates a new Credentials 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 NewCredentialsEmpty

func NewCredentialsEmpty() *Credentials

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

func NewCredentialsList

func NewCredentialsList(ps ...*Credentials) []Credentials

NewCredentialss converts a list Credentials pointers to objects. This is helpful when the SetCredentials requires a list of objects

func NewCredentialsWith

func NewCredentialsWith() *Credentials

NewCredentialsWith instantiates a new Credentials 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 NewCredentialsWithDefault

func NewCredentialsWithDefault() *Credentials

NewCredentialsWithDefault instantiates a new Credentials 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 (*Credentials) GetGit

func (o *Credentials) GetGit() Git1

GetGit returns the Git field value if set, zero value otherwise.

func (*Credentials) GetGitOk

func (o *Credentials) GetGitOk() (*Git1, bool)

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

func (*Credentials) GetImage

func (o *Credentials) GetImage() Image

GetImage returns the Image field value if set, zero value otherwise.

func (*Credentials) GetImageOk

func (o *Credentials) GetImageOk() (*Image, bool)

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

func (*Credentials) HasGit

func (o *Credentials) HasGit() bool

HasGit returns a boolean if a field has been set.

func (*Credentials) HasImage

func (o *Credentials) HasImage() bool

HasImage returns a boolean if a field has been set.

func (Credentials) MarshalJSON

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

func (*Credentials) SetGit

func (o *Credentials) SetGit(v Git1) *Credentials

SetGit gets a reference to the given Git1 and assigns it to the git field. Git:

func (*Credentials) SetImage

func (o *Credentials) SetImage(v Image) *Credentials

SetImage gets a reference to the given Image and assigns it to the image field. Image:

func (Credentials) ToMap

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

func (*Credentials) Validate

func (o *Credentials) Validate() error

Validate validates this Credentials 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 Git

type Git struct {
	Branch *string `json:"branch"`
	Git    *string `json:"git"`
}

Git struct for Git

func NewGit

func NewGit() *Git

NewGit is short for NewGitWithDefault which instantiates a new Git 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 NewGitEmpty

func NewGitEmpty() *Git

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

func NewGitList

func NewGitList(ps ...*Git) []Git

NewGits converts a list Git pointers to objects. This is helpful when the SetGit requires a list of objects

func NewGitWith

func NewGitWith(branch string, git string) *Git

NewGitWith instantiates a new Git 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 NewGitWithDefault

func NewGitWithDefault() *Git

NewGitWithDefault instantiates a new Git 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 (*Git) GetBranch

func (o *Git) GetBranch() string

GetBranch returns the Branch field value

func (*Git) GetBranchOk

func (o *Git) GetBranchOk() (*string, bool)

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

func (*Git) GetGit

func (o *Git) GetGit() string

GetGit returns the Git field value

func (*Git) GetGitOk

func (o *Git) GetGitOk() (*string, bool)

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

func (Git) MarshalJSON

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

func (*Git) SetBranch

func (o *Git) SetBranch(v string) *Git

SetBranch sets field value

func (*Git) SetGit

func (o *Git) SetGit(v string) *Git

SetGit sets field value

func (Git) ToMap

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

func (*Git) Validate

func (o *Git) Validate() error

Validate validates this Git 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 Git1

type Git1 struct {
	// Specify the secret key
	Key *string `json:"key"`
	// Specify the secret name
	Name *string `json:"name"`
}

Git1 Specify the credentials to access git

func NewGit1

func NewGit1() *Git1

NewGit1 is short for NewGit1WithDefault which instantiates a new Git1 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 NewGit1Empty

func NewGit1Empty() *Git1

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

func NewGit1List

func NewGit1List(ps ...*Git1) []Git1

NewGit1s converts a list Git1 pointers to objects. This is helpful when the SetGit1 requires a list of objects

func NewGit1With

func NewGit1With(key string, name string) *Git1

NewGit1With instantiates a new Git1 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 NewGit1WithDefault

func NewGit1WithDefault() *Git1

NewGit1WithDefault instantiates a new Git1 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 (*Git1) GetKey

func (o *Git1) GetKey() string

GetKey returns the Key field value

func (*Git1) GetKeyOk

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

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

func (*Git1) GetName

func (o *Git1) GetName() string

GetName returns the Name field value

func (*Git1) GetNameOk

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

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

func (Git1) MarshalJSON

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

func (*Git1) SetKey

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

SetKey sets field value

func (*Git1) SetName

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

SetName sets field value

func (Git1) ToMap

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

func (*Git1) Validate

func (o *Git1) Validate() error

Validate validates this Git1 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 Image

type Image struct {
	// Specify the secret key
	Key *string `json:"key"`
	// Specify the secret name
	Name *string `json:"name"`
}

Image Specify the credentials to access image registry

func NewImage

func NewImage() *Image

NewImage is short for NewImageWithDefault which instantiates a new Image 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 NewImageEmpty

func NewImageEmpty() *Image

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

func NewImageList

func NewImageList(ps ...*Image) []Image

NewImages converts a list Image pointers to objects. This is helpful when the SetImage requires a list of objects

func NewImageWith

func NewImageWith(key string, name string) *Image

NewImageWith instantiates a new Image 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 NewImageWithDefault

func NewImageWithDefault() *Image

NewImageWithDefault instantiates a new Image 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 (*Image) GetKey

func (o *Image) GetKey() string

GetKey returns the Key field value

func (*Image) GetKeyOk

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

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

func (*Image) GetName

func (o *Image) GetName() string

GetName returns the Name field value

func (*Image) GetNameOk

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

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

func (Image) MarshalJSON

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

func (*Image) SetKey

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

SetKey sets field value

func (*Image) SetName

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

SetName sets field value

func (Image) ToMap

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

func (*Image) Validate

func (o *Image) Validate() error

Validate validates this Image 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 NullableBuildPushImageSpec

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

func NewNullableBuildPushImageSpec

func NewNullableBuildPushImageSpec(val *BuildPushImageSpec) *NullableBuildPushImageSpec

func (*NullableBuildPushImageSpec) Get

func (*NullableBuildPushImageSpec) IsSet

func (v *NullableBuildPushImageSpec) IsSet() bool

func (NullableBuildPushImageSpec) MarshalJSON

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

func (*NullableBuildPushImageSpec) Set

func (*NullableBuildPushImageSpec) UnmarshalJSON

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

func (*NullableBuildPushImageSpec) Unset

func (v *NullableBuildPushImageSpec) Unset()

type NullableContext

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

func NewNullableContext

func NewNullableContext(val *Context) *NullableContext

func (*NullableContext) Get

func (v *NullableContext) Get() *Context

func (*NullableContext) IsSet

func (v *NullableContext) IsSet() bool

func (NullableContext) MarshalJSON

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

func (*NullableContext) Set

func (v *NullableContext) Set(val *Context)

func (*NullableContext) UnmarshalJSON

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

func (*NullableContext) Unset

func (v *NullableContext) Unset()

type NullableCredentials

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

func NewNullableCredentials

func NewNullableCredentials(val *Credentials) *NullableCredentials

func (*NullableCredentials) Get

func (v *NullableCredentials) Get() *Credentials

func (*NullableCredentials) IsSet

func (v *NullableCredentials) IsSet() bool

func (NullableCredentials) MarshalJSON

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

func (*NullableCredentials) Set

func (v *NullableCredentials) Set(val *Credentials)

func (*NullableCredentials) UnmarshalJSON

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

func (*NullableCredentials) Unset

func (v *NullableCredentials) Unset()

type NullableGit

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

func NewNullableGit

func NewNullableGit(val *Git) *NullableGit

func (*NullableGit) Get

func (v *NullableGit) Get() *Git

func (*NullableGit) IsSet

func (v *NullableGit) IsSet() bool

func (NullableGit) MarshalJSON

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

func (*NullableGit) Set

func (v *NullableGit) Set(val *Git)

func (*NullableGit) UnmarshalJSON

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

func (*NullableGit) Unset

func (v *NullableGit) Unset()

type NullableGit1

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

func NewNullableGit1

func NewNullableGit1(val *Git1) *NullableGit1

func (*NullableGit1) Get

func (v *NullableGit1) Get() *Git1

func (*NullableGit1) IsSet

func (v *NullableGit1) IsSet() bool

func (NullableGit1) MarshalJSON

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

func (*NullableGit1) Set

func (v *NullableGit1) Set(val *Git1)

func (*NullableGit1) UnmarshalJSON

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

func (*NullableGit1) Unset

func (v *NullableGit1) Unset()

type NullableImage

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

func NewNullableImage

func NewNullableImage(val *Image) *NullableImage

func (*NullableImage) Get

func (v *NullableImage) Get() *Image

func (*NullableImage) IsSet

func (v *NullableImage) IsSet() bool

func (NullableImage) MarshalJSON

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

func (*NullableImage) Set

func (v *NullableImage) Set(val *Image)

func (*NullableImage) UnmarshalJSON

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

func (*NullableImage) Unset

func (v *NullableImage) Unset()

Jump to

Keyboard shortcuts

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