v1alpha1

package
v0.0.0-...-2fee06a Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=img.k8s.io

+k8s:deepcopy-gen=package +groupName=img.k8s.io

+k8s:deepcopy-gen=package +groupName=img.k8s.io

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	ImageBuildResourceName = "imagebuilds"
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: img.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type BuildSpec

type BuildSpec struct {
	ImageName           string                      `json:"imageName"`
	Context             string                      `json:"context"`
	Dockerfile          string                      `json:"dockerfile`
	Repository          Repository                  `json:"repository"`
	Privileged          bool                        `json:"privileged"`
	NodeSelector        map[string]string           `json:"nodeSelector"`
	Annotations         map[string]string           `json:"annotations"`
	Labels              map[string]string           `json:"labels"`
	RegistryCredentials RegistryCredentials         `json:"registry"`
	Resources           corev1.ResourceRequirements `json:"resources"`
}

BuildSpec is the spec for a PackageBuild resource

func (*BuildSpec) DeepCopy

func (in *BuildSpec) DeepCopy() *BuildSpec

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

func (*BuildSpec) DeepCopyInto

func (in *BuildSpec) DeepCopyInto(out *BuildSpec)

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

type BuildStatus

type BuildStatus struct {
	State string `json:"state"`
}

func (*BuildStatus) DeepCopy

func (in *BuildStatus) DeepCopy() *BuildStatus

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

func (*BuildStatus) DeepCopyInto

func (in *BuildStatus) DeepCopyInto(out *BuildStatus)

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

type ImageBuild

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

	Spec   BuildSpec   `json:"spec"`
	Status BuildStatus `json:"status"`
}

PackageBuild is a specification for a PackageBuild resource

func NewImageBuild

func NewImageBuild(namespace, name string, obj ImageBuild) *ImageBuild

func (*ImageBuild) DeepCopy

func (in *ImageBuild) DeepCopy() *ImageBuild

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

func (*ImageBuild) DeepCopyInto

func (in *ImageBuild) DeepCopyInto(out *ImageBuild)

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

func (*ImageBuild) DeepCopyObject

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

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

type ImageBuildList

type ImageBuildList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ImageBuild `json:"items"`
}

ImageBuildList is a list of ImageBuild resources

func (*ImageBuildList) DeepCopy

func (in *ImageBuildList) DeepCopy() *ImageBuildList

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

func (*ImageBuildList) DeepCopyInto

func (in *ImageBuildList) DeepCopyInto(out *ImageBuildList)

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

func (*ImageBuildList) DeepCopyObject

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

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

type RegistryCredentials

type RegistryCredentials struct {
	Enabled    bool   `json:"enabled"`
	Registry   string `json:"registry"` // e.g. quay.io
	Username   string `json:"username"`
	Password   string `json:"password"`
	FromSecret string `json:"fromSecret"`
}

func (*RegistryCredentials) DeepCopy

func (in *RegistryCredentials) DeepCopy() *RegistryCredentials

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

func (*RegistryCredentials) DeepCopyInto

func (in *RegistryCredentials) DeepCopyInto(out *RegistryCredentials)

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

type Repository

type Repository struct {
	Url      string `json:"url"`
	Checkout string `json:"checkout"`
}

func (*Repository) DeepCopy

func (in *Repository) DeepCopy() *Repository

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

func (*Repository) DeepCopyInto

func (in *Repository) DeepCopyInto(out *Repository)

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