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 ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var (
ImageBuildResourceName = "imagebuilds"
)
var SchemeGroupVersion = schema.GroupVersion{Group: img.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildSpec.
func (*BuildSpec) DeepCopyInto ¶
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 ¶
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.