v1

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Overview

+k8s:conversion-gen=github.com/eraser-dev/eraser/api/unversioned

Package v1 contains API Schema definitions for the eraser.sh v1 API group +kubebuilder:object:generate=true +groupName=eraser.sh

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "eraser.sh", 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

func Convert_unversioned_ImageJobList_To_v1_ImageJobList

func Convert_unversioned_ImageJobList_To_v1_ImageJobList(in *unversioned.ImageJobList, out *ImageJobList, s conversion.Scope) error

Convert_unversioned_ImageJobList_To_v1_ImageJobList is an autogenerated conversion function.

func Convert_unversioned_ImageJobStatus_To_v1_ImageJobStatus

func Convert_unversioned_ImageJobStatus_To_v1_ImageJobStatus(in *unversioned.ImageJobStatus, out *ImageJobStatus, s conversion.Scope) error

Convert_unversioned_ImageJobStatus_To_v1_ImageJobStatus is an autogenerated conversion function.

func Convert_unversioned_ImageJob_To_v1_ImageJob

func Convert_unversioned_ImageJob_To_v1_ImageJob(in *unversioned.ImageJob, out *ImageJob, s conversion.Scope) error

Convert_unversioned_ImageJob_To_v1_ImageJob is an autogenerated conversion function.

func Convert_unversioned_ImageListList_To_v1_ImageListList

func Convert_unversioned_ImageListList_To_v1_ImageListList(in *unversioned.ImageListList, out *ImageListList, s conversion.Scope) error

Convert_unversioned_ImageListList_To_v1_ImageListList is an autogenerated conversion function.

func Convert_unversioned_ImageListSpec_To_v1_ImageListSpec

func Convert_unversioned_ImageListSpec_To_v1_ImageListSpec(in *unversioned.ImageListSpec, out *ImageListSpec, s conversion.Scope) error

Convert_unversioned_ImageListSpec_To_v1_ImageListSpec is an autogenerated conversion function.

func Convert_unversioned_ImageListStatus_To_v1_ImageListStatus

func Convert_unversioned_ImageListStatus_To_v1_ImageListStatus(in *unversioned.ImageListStatus, out *ImageListStatus, s conversion.Scope) error

Convert_unversioned_ImageListStatus_To_v1_ImageListStatus is an autogenerated conversion function.

func Convert_unversioned_ImageList_To_v1_ImageList

func Convert_unversioned_ImageList_To_v1_ImageList(in *unversioned.ImageList, out *ImageList, s conversion.Scope) error

Convert_unversioned_ImageList_To_v1_ImageList is an autogenerated conversion function.

func Convert_unversioned_Image_To_v1_Image

func Convert_unversioned_Image_To_v1_Image(in *unversioned.Image, out *Image, s conversion.Scope) error

Convert_unversioned_Image_To_v1_Image is an autogenerated conversion function.

func Convert_v1_ImageJobList_To_unversioned_ImageJobList

func Convert_v1_ImageJobList_To_unversioned_ImageJobList(in *ImageJobList, out *unversioned.ImageJobList, s conversion.Scope) error

Convert_v1_ImageJobList_To_unversioned_ImageJobList is an autogenerated conversion function.

func Convert_v1_ImageJobStatus_To_unversioned_ImageJobStatus

func Convert_v1_ImageJobStatus_To_unversioned_ImageJobStatus(in *ImageJobStatus, out *unversioned.ImageJobStatus, s conversion.Scope) error

Convert_v1_ImageJobStatus_To_unversioned_ImageJobStatus is an autogenerated conversion function.

func Convert_v1_ImageJob_To_unversioned_ImageJob

func Convert_v1_ImageJob_To_unversioned_ImageJob(in *ImageJob, out *unversioned.ImageJob, s conversion.Scope) error

Convert_v1_ImageJob_To_unversioned_ImageJob is an autogenerated conversion function.

func Convert_v1_ImageListList_To_unversioned_ImageListList

func Convert_v1_ImageListList_To_unversioned_ImageListList(in *ImageListList, out *unversioned.ImageListList, s conversion.Scope) error

Convert_v1_ImageListList_To_unversioned_ImageListList is an autogenerated conversion function.

func Convert_v1_ImageListSpec_To_unversioned_ImageListSpec

func Convert_v1_ImageListSpec_To_unversioned_ImageListSpec(in *ImageListSpec, out *unversioned.ImageListSpec, s conversion.Scope) error

Convert_v1_ImageListSpec_To_unversioned_ImageListSpec is an autogenerated conversion function.

func Convert_v1_ImageListStatus_To_unversioned_ImageListStatus

func Convert_v1_ImageListStatus_To_unversioned_ImageListStatus(in *ImageListStatus, out *unversioned.ImageListStatus, s conversion.Scope) error

Convert_v1_ImageListStatus_To_unversioned_ImageListStatus is an autogenerated conversion function.

func Convert_v1_ImageList_To_unversioned_ImageList

func Convert_v1_ImageList_To_unversioned_ImageList(in *ImageList, out *unversioned.ImageList, s conversion.Scope) error

Convert_v1_ImageList_To_unversioned_ImageList is an autogenerated conversion function.

func Convert_v1_Image_To_unversioned_Image

func Convert_v1_Image_To_unversioned_Image(in *Image, out *unversioned.Image, s conversion.Scope) error

Convert_v1_Image_To_unversioned_Image is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

Types

type Image

type Image struct {
	ImageID string   `json:"image_id"`
	Names   []string `json:"names,omitempty"`
	Digests []string `json:"digests,omitempty"`
}

func (*Image) DeepCopy

func (in *Image) DeepCopy() *Image

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

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

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

type ImageJob

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

	Status ImageJobStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:scope="Cluster" +kubebuilder:storageversion ImageJob is the Schema for the imagejobs API.

func (*ImageJob) DeepCopy

func (in *ImageJob) DeepCopy() *ImageJob

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

func (*ImageJob) DeepCopyInto

func (in *ImageJob) DeepCopyInto(out *ImageJob)

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

func (*ImageJob) DeepCopyObject

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

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

type ImageJobList

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

+kubebuilder:object:root=true +kubebuilder:storageversion ImageJobList contains a list of ImageJob.

func (*ImageJobList) DeepCopy

func (in *ImageJobList) DeepCopy() *ImageJobList

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

func (*ImageJobList) DeepCopyInto

func (in *ImageJobList) DeepCopyInto(out *ImageJobList)

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

func (*ImageJobList) DeepCopyObject

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

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

type ImageJobStatus

type ImageJobStatus struct {
	// number of pods that failed
	Failed int `json:"failed"`

	// number of pods that completed successfully
	Succeeded int `json:"succeeded"`

	// desired number of pods
	Desired int `json:"desired"`

	// number of nodes that were skipped e.g. because they are not a linux node
	Skipped int `json:"skipped"`

	// job running, successfully completed, or failed
	Phase JobPhase `json:"phase"`

	// Time to delay deletion until
	DeleteAfter *metav1.Time `json:"deleteAfter,omitempty"`
}

ImageJobStatus defines the observed state of ImageJob.

func (*ImageJobStatus) DeepCopy

func (in *ImageJobStatus) DeepCopy() *ImageJobStatus

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

func (*ImageJobStatus) DeepCopyInto

func (in *ImageJobStatus) DeepCopyInto(out *ImageJobStatus)

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

type ImageList

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

	Spec   ImageListSpec   `json:"spec,omitempty"`
	Status ImageListStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:scope="Cluster" +kubebuilder:storageversion ImageList is the Schema for the imagelists API.

func (*ImageList) DeepCopy

func (in *ImageList) DeepCopy() *ImageList

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

func (*ImageList) DeepCopyInto

func (in *ImageList) DeepCopyInto(out *ImageList)

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

func (*ImageList) DeepCopyObject

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

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

type ImageListList

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

+kubebuilder:object:root=true +kubebuilder:storageversion ImageListList contains a list of ImageList.

func (*ImageListList) DeepCopy

func (in *ImageListList) DeepCopy() *ImageListList

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

func (*ImageListList) DeepCopyInto

func (in *ImageListList) DeepCopyInto(out *ImageListList)

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

func (*ImageListList) DeepCopyObject

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

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

type ImageListSpec

type ImageListSpec struct {
	// The list of non-compliant images to delete if non-running.
	Images []string `json:"images"`
}

ImageListSpec defines the desired state of ImageList.

func (*ImageListSpec) DeepCopy

func (in *ImageListSpec) DeepCopy() *ImageListSpec

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

func (*ImageListSpec) DeepCopyInto

func (in *ImageListSpec) DeepCopyInto(out *ImageListSpec)

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

type ImageListStatus

type ImageListStatus struct {
	// Information when the job was completed.
	Timestamp *metav1.Time `json:"timestamp"`
	// Number of nodes that successfully ran the job
	Success int64 `json:"success"`
	// Number of nodes that failed to run the job
	Failed int64 `json:"failed"`
	// Number of nodes that were skipped due to a skip selector
	Skipped int64 `json:"skipped"`
}

ImageListStatus defines the observed state of ImageList.

func (*ImageListStatus) DeepCopy

func (in *ImageListStatus) DeepCopy() *ImageListStatus

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

func (*ImageListStatus) DeepCopyInto

func (in *ImageListStatus) DeepCopyInto(out *ImageListStatus)

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

type JobPhase

type JobPhase string

JobPhase defines the phase of an ImageJob status.

const (
	PhaseRunning   JobPhase = "Running"
	PhaseCompleted JobPhase = "Completed"
	PhaseFailed    JobPhase = "Failed"
)

Jump to

Keyboard shortcuts

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