v1

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Overview

Package v1 contains API Schema definitions for the distribution v1 API group +kubebuilder:object:generate=true +groupName=distribution.kloudlite.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "distribution.kloudlite.io", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type BuildOptions

type BuildOptions struct {
	BuildArgs         map[string]string `json:"buildArgs,omitempty"`
	BuildContexts     map[string]string `json:"buildContexts,omitempty"`
	DockerfilePath    *string           `json:"dockerfilePath,omitempty"`
	DockerfileContent *string           `json:"dockerfileContent,omitempty"`
	TargetPlatforms   []string          `json:"targetPlatforms,omitempty"`
	ContextDir        *string           `json:"contextDir,omitempty"`
}

func (*BuildOptions) DeepCopy

func (in *BuildOptions) DeepCopy() *BuildOptions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildOptions.

func (*BuildOptions) DeepCopyInto

func (in *BuildOptions) DeepCopyInto(out *BuildOptions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BuildRun

type BuildRun struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BuildRunSpec `json:"spec,omitempty"`
	Status rApi.Status  `json:"status,omitempty"`
}

BuildRun is the Schema for the buildruns API

func (*BuildRun) DeepCopy

func (in *BuildRun) DeepCopy() *BuildRun

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildRun.

func (*BuildRun) DeepCopyInto

func (in *BuildRun) DeepCopyInto(out *BuildRun)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BuildRun) DeepCopyObject

func (in *BuildRun) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*BuildRun) EnsureGVK

func (d *BuildRun) EnsureGVK()

func (*BuildRun) GetEnsuredAnnotations

func (d *BuildRun) GetEnsuredAnnotations() map[string]string

func (*BuildRun) GetEnsuredLabels

func (d *BuildRun) GetEnsuredLabels() map[string]string

func (*BuildRun) GetStatus

func (d *BuildRun) GetStatus() *rApi.Status

type BuildRunList

type BuildRunList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []BuildRun `json:"items"`
}

BuildRunList contains a list of BuildRun

func (*BuildRunList) DeepCopy

func (in *BuildRunList) DeepCopy() *BuildRunList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildRunList.

func (*BuildRunList) DeepCopyInto

func (in *BuildRunList) DeepCopyInto(out *BuildRunList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BuildRunList) DeepCopyObject

func (in *BuildRunList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BuildRunSpec

type BuildRunSpec struct {
	CacheKeyName *string `json:"cacheKeyName,omitempty"`
	AccountName  string  `json:"accountName" graphql:"noinput"`

	Registry     Registry      `json:"registry"`
	GitRepo      GitRepo       `json:"gitRepo" graphql:"ignore"`
	BuildOptions *BuildOptions `json:"buildOptions,omitempty"`
	Resource     Resource      `json:"resource"`

	CredentialsRef common_types.SecretRef `json:"credentialsRef" graphql:"ignore"`
}

BuildRunSpec defines the desired state of BuildRun

func (*BuildRunSpec) DeepCopy

func (in *BuildRunSpec) DeepCopy() *BuildRunSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildRunSpec.

func (*BuildRunSpec) DeepCopyInto

func (in *BuildRunSpec) DeepCopyInto(out *BuildRunSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GitRepo

type GitRepo struct {
	Url    string `json:"url"`
	Branch string `json:"branch"`
}

func (*GitRepo) DeepCopy

func (in *GitRepo) DeepCopy() *GitRepo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepo.

func (*GitRepo) DeepCopyInto

func (in *GitRepo) DeepCopyInto(out *GitRepo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Registry

type Registry struct {
	Repo Repo `json:"repo"`
}

func (*Registry) DeepCopy

func (in *Registry) DeepCopy() *Registry

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Registry.

func (*Registry) DeepCopyInto

func (in *Registry) DeepCopyInto(out *Registry)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Repo

type Repo struct {
	Name string   `json:"name"`
	Tags []string `json:"tags"`
}

func (*Repo) DeepCopy

func (in *Repo) DeepCopy() *Repo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Repo.

func (*Repo) DeepCopyInto

func (in *Repo) DeepCopyInto(out *Repo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Resource

type Resource struct {
	Cpu        int `json:"cpu"`
	MemoryInMb int `json:"memoryInMb"`
}

func (*Resource) DeepCopy

func (in *Resource) DeepCopy() *Resource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.

func (*Resource) DeepCopyInto

func (in *Resource) DeepCopyInto(out *Resource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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