v1alpha3

package
v1.4.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

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

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

Index

Constants

View Source
const (
	RuntimeContainerd  Runtime = "containerd"
	RuntimeDockerShim  Runtime = "dockershim"
	RuntimeCrio        Runtime = "crio"
	RuntimeNotProvided Runtime = ""

	ContainerdPath = "/run/containerd/containerd.sock"
	DockerPath     = "/run/dockershim.sock"
	CrioPath       = "/run/crio/crio.sock"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "eraser.sh", Version: "v1alpha3"}

	// 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_Components_To_v1alpha3_Components

func Convert_unversioned_Components_To_v1alpha3_Components(in *unversioned.Components, out *Components, s conversion.Scope) error

Convert_unversioned_Components_To_v1alpha3_Components is an autogenerated conversion function.

func Convert_unversioned_ContainerConfig_To_v1alpha3_ContainerConfig

func Convert_unversioned_ContainerConfig_To_v1alpha3_ContainerConfig(in *unversioned.ContainerConfig, out *ContainerConfig, s conversion.Scope) error

Convert_unversioned_ContainerConfig_To_v1alpha3_ContainerConfig is an autogenerated conversion function.

func Convert_unversioned_EraserConfig_To_v1alpha3_EraserConfig

func Convert_unversioned_EraserConfig_To_v1alpha3_EraserConfig(in *unversioned.EraserConfig, out *EraserConfig, s conversion.Scope) error

Convert_unversioned_EraserConfig_To_v1alpha3_EraserConfig is an autogenerated conversion function.

func Convert_unversioned_ImageJobCleanupConfig_To_v1alpha3_ImageJobCleanupConfig

func Convert_unversioned_ImageJobCleanupConfig_To_v1alpha3_ImageJobCleanupConfig(in *unversioned.ImageJobCleanupConfig, out *ImageJobCleanupConfig, s conversion.Scope) error

Convert_unversioned_ImageJobCleanupConfig_To_v1alpha3_ImageJobCleanupConfig is an autogenerated conversion function.

func Convert_unversioned_ImageJobConfig_To_v1alpha3_ImageJobConfig

func Convert_unversioned_ImageJobConfig_To_v1alpha3_ImageJobConfig(in *unversioned.ImageJobConfig, out *ImageJobConfig, s conversion.Scope) error

Convert_unversioned_ImageJobConfig_To_v1alpha3_ImageJobConfig is an autogenerated conversion function.

func Convert_unversioned_ManagerConfig_To_v1alpha3_ManagerConfig

func Convert_unversioned_ManagerConfig_To_v1alpha3_ManagerConfig(in *unversioned.ManagerConfig, out *ManagerConfig, s conversion.Scope) error

Convert_unversioned_ManagerConfig_To_v1alpha3_ManagerConfig is an autogenerated conversion function.

func Convert_unversioned_NodeFilterConfig_To_v1alpha3_NodeFilterConfig

func Convert_unversioned_NodeFilterConfig_To_v1alpha3_NodeFilterConfig(in *unversioned.NodeFilterConfig, out *NodeFilterConfig, s conversion.Scope) error

Convert_unversioned_NodeFilterConfig_To_v1alpha3_NodeFilterConfig is an autogenerated conversion function.

func Convert_unversioned_OptionalContainerConfig_To_v1alpha3_OptionalContainerConfig

func Convert_unversioned_OptionalContainerConfig_To_v1alpha3_OptionalContainerConfig(in *unversioned.OptionalContainerConfig, out *OptionalContainerConfig, s conversion.Scope) error

Convert_unversioned_OptionalContainerConfig_To_v1alpha3_OptionalContainerConfig is an autogenerated conversion function.

func Convert_unversioned_ProfileConfig_To_v1alpha3_ProfileConfig

func Convert_unversioned_ProfileConfig_To_v1alpha3_ProfileConfig(in *unversioned.ProfileConfig, out *ProfileConfig, s conversion.Scope) error

Convert_unversioned_ProfileConfig_To_v1alpha3_ProfileConfig is an autogenerated conversion function.

func Convert_unversioned_RepoTag_To_v1alpha3_RepoTag

func Convert_unversioned_RepoTag_To_v1alpha3_RepoTag(in *unversioned.RepoTag, out *RepoTag, s conversion.Scope) error

Convert_unversioned_RepoTag_To_v1alpha3_RepoTag is an autogenerated conversion function.

func Convert_unversioned_ResourceRequirements_To_v1alpha3_ResourceRequirements

func Convert_unversioned_ResourceRequirements_To_v1alpha3_ResourceRequirements(in *unversioned.ResourceRequirements, out *ResourceRequirements, s conversion.Scope) error

Convert_unversioned_ResourceRequirements_To_v1alpha3_ResourceRequirements is an autogenerated conversion function.

func Convert_unversioned_RuntimeSpec_To_v1alpha3_RuntimeSpec

func Convert_unversioned_RuntimeSpec_To_v1alpha3_RuntimeSpec(in *unversioned.RuntimeSpec, out *RuntimeSpec, s conversion.Scope) error

Convert_unversioned_RuntimeSpec_To_v1alpha3_RuntimeSpec is an autogenerated conversion function.

func Convert_unversioned_ScheduleConfig_To_v1alpha3_ScheduleConfig

func Convert_unversioned_ScheduleConfig_To_v1alpha3_ScheduleConfig(in *unversioned.ScheduleConfig, out *ScheduleConfig, s conversion.Scope) error

Convert_unversioned_ScheduleConfig_To_v1alpha3_ScheduleConfig is an autogenerated conversion function.

func Convert_v1alpha3_Components_To_unversioned_Components

func Convert_v1alpha3_Components_To_unversioned_Components(in *Components, out *unversioned.Components, s conversion.Scope) error

Convert_v1alpha3_Components_To_unversioned_Components is an autogenerated conversion function.

func Convert_v1alpha3_ContainerConfig_To_unversioned_ContainerConfig

func Convert_v1alpha3_ContainerConfig_To_unversioned_ContainerConfig(in *ContainerConfig, out *unversioned.ContainerConfig, s conversion.Scope) error

Convert_v1alpha3_ContainerConfig_To_unversioned_ContainerConfig is an autogenerated conversion function.

func Convert_v1alpha3_EraserConfig_To_unversioned_EraserConfig

func Convert_v1alpha3_EraserConfig_To_unversioned_EraserConfig(in *EraserConfig, out *unversioned.EraserConfig, s conversion.Scope) error

Convert_v1alpha3_EraserConfig_To_unversioned_EraserConfig is an autogenerated conversion function.

func Convert_v1alpha3_ImageJobCleanupConfig_To_unversioned_ImageJobCleanupConfig

func Convert_v1alpha3_ImageJobCleanupConfig_To_unversioned_ImageJobCleanupConfig(in *ImageJobCleanupConfig, out *unversioned.ImageJobCleanupConfig, s conversion.Scope) error

Convert_v1alpha3_ImageJobCleanupConfig_To_unversioned_ImageJobCleanupConfig is an autogenerated conversion function.

func Convert_v1alpha3_ImageJobConfig_To_unversioned_ImageJobConfig

func Convert_v1alpha3_ImageJobConfig_To_unversioned_ImageJobConfig(in *ImageJobConfig, out *unversioned.ImageJobConfig, s conversion.Scope) error

Convert_v1alpha3_ImageJobConfig_To_unversioned_ImageJobConfig is an autogenerated conversion function.

func Convert_v1alpha3_ManagerConfig_To_unversioned_ManagerConfig

func Convert_v1alpha3_ManagerConfig_To_unversioned_ManagerConfig(in *ManagerConfig, out *unversioned.ManagerConfig, s conversion.Scope) error

Convert_v1alpha3_ManagerConfig_To_unversioned_ManagerConfig is an autogenerated conversion function.

func Convert_v1alpha3_NodeFilterConfig_To_unversioned_NodeFilterConfig

func Convert_v1alpha3_NodeFilterConfig_To_unversioned_NodeFilterConfig(in *NodeFilterConfig, out *unversioned.NodeFilterConfig, s conversion.Scope) error

Convert_v1alpha3_NodeFilterConfig_To_unversioned_NodeFilterConfig is an autogenerated conversion function.

func Convert_v1alpha3_OptionalContainerConfig_To_unversioned_OptionalContainerConfig

func Convert_v1alpha3_OptionalContainerConfig_To_unversioned_OptionalContainerConfig(in *OptionalContainerConfig, out *unversioned.OptionalContainerConfig, s conversion.Scope) error

Convert_v1alpha3_OptionalContainerConfig_To_unversioned_OptionalContainerConfig is an autogenerated conversion function.

func Convert_v1alpha3_ProfileConfig_To_unversioned_ProfileConfig

func Convert_v1alpha3_ProfileConfig_To_unversioned_ProfileConfig(in *ProfileConfig, out *unversioned.ProfileConfig, s conversion.Scope) error

Convert_v1alpha3_ProfileConfig_To_unversioned_ProfileConfig is an autogenerated conversion function.

func Convert_v1alpha3_RepoTag_To_unversioned_RepoTag

func Convert_v1alpha3_RepoTag_To_unversioned_RepoTag(in *RepoTag, out *unversioned.RepoTag, s conversion.Scope) error

Convert_v1alpha3_RepoTag_To_unversioned_RepoTag is an autogenerated conversion function.

func Convert_v1alpha3_ResourceRequirements_To_unversioned_ResourceRequirements

func Convert_v1alpha3_ResourceRequirements_To_unversioned_ResourceRequirements(in *ResourceRequirements, out *unversioned.ResourceRequirements, s conversion.Scope) error

Convert_v1alpha3_ResourceRequirements_To_unversioned_ResourceRequirements is an autogenerated conversion function.

func Convert_v1alpha3_RuntimeSpec_To_unversioned_RuntimeSpec

func Convert_v1alpha3_RuntimeSpec_To_unversioned_RuntimeSpec(in *RuntimeSpec, out *unversioned.RuntimeSpec, s conversion.Scope) error

Convert_v1alpha3_RuntimeSpec_To_unversioned_RuntimeSpec is an autogenerated conversion function.

func Convert_v1alpha3_ScheduleConfig_To_unversioned_ScheduleConfig

func Convert_v1alpha3_ScheduleConfig_To_unversioned_ScheduleConfig(in *ScheduleConfig, out *unversioned.ScheduleConfig, s conversion.Scope) error

Convert_v1alpha3_ScheduleConfig_To_unversioned_ScheduleConfig 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 Components

type Components struct {
	Collector OptionalContainerConfig `json:"collector,omitempty"`
	Scanner   OptionalContainerConfig `json:"scanner,omitempty"`
	Remover   ContainerConfig         `json:"remover,omitempty"`
}

func (*Components) DeepCopy

func (in *Components) DeepCopy() *Components

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

func (*Components) DeepCopyInto

func (in *Components) DeepCopyInto(out *Components)

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

type ContainerConfig

type ContainerConfig struct {
	Image   RepoTag              `json:"image,omitempty"`
	Request ResourceRequirements `json:"request,omitempty"`
	Limit   ResourceRequirements `json:"limit,omitempty"`
	Config  *string              `json:"config,omitempty"`
}

func (*ContainerConfig) DeepCopy

func (in *ContainerConfig) DeepCopy() *ContainerConfig

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

func (*ContainerConfig) DeepCopyInto

func (in *ContainerConfig) DeepCopyInto(out *ContainerConfig)

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

type Duration

type Duration time.Duration

func (*Duration) MarshalJSON

func (td *Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (td *Duration) UnmarshalJSON(b []byte) error

type EraserConfig

type EraserConfig struct {
	metav1.TypeMeta `json:",inline"`
	Manager         ManagerConfig `json:"manager"`
	Components      Components    `json:"components"`
}

EraserConfig is the Schema for the eraserconfigs API.

func (*EraserConfig) DeepCopy

func (in *EraserConfig) DeepCopy() *EraserConfig

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

func (*EraserConfig) DeepCopyInto

func (in *EraserConfig) DeepCopyInto(out *EraserConfig)

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

func (*EraserConfig) DeepCopyObject

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

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

type ImageJobCleanupConfig

type ImageJobCleanupConfig struct {
	DelayOnSuccess Duration `json:"delayOnSuccess,omitempty"`
	DelayOnFailure Duration `json:"delayOnFailure,omitempty"`
}

func (*ImageJobCleanupConfig) DeepCopy

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

func (*ImageJobCleanupConfig) DeepCopyInto

func (in *ImageJobCleanupConfig) DeepCopyInto(out *ImageJobCleanupConfig)

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

type ImageJobConfig

type ImageJobConfig struct {
	SuccessRatio float64               `json:"successRatio,omitempty"`
	Cleanup      ImageJobCleanupConfig `json:"cleanup,omitempty"`
}

func (*ImageJobConfig) DeepCopy

func (in *ImageJobConfig) DeepCopy() *ImageJobConfig

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

func (*ImageJobConfig) DeepCopyInto

func (in *ImageJobConfig) DeepCopyInto(out *ImageJobConfig)

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

type ManagerConfig

type ManagerConfig struct {
	Runtime           RuntimeSpec      `json:"runtime,omitempty"`
	OTLPEndpoint      string           `json:"otlpEndpoint,omitempty"`
	LogLevel          string           `json:"logLevel,omitempty"`
	Scheduling        ScheduleConfig   `json:"scheduling,omitempty"`
	Profile           ProfileConfig    `json:"profile,omitempty"`
	ImageJob          ImageJobConfig   `json:"imageJob,omitempty"`
	PullSecrets       []string         `json:"pullSecrets,omitempty"`
	NodeFilter        NodeFilterConfig `json:"nodeFilter,omitempty"`
	PriorityClassName string           `json:"priorityClassName,omitempty"`
}

func (*ManagerConfig) DeepCopy

func (in *ManagerConfig) DeepCopy() *ManagerConfig

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

func (*ManagerConfig) DeepCopyInto

func (in *ManagerConfig) DeepCopyInto(out *ManagerConfig)

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

type NodeFilterConfig

type NodeFilterConfig struct {
	Type      string   `json:"type,omitempty"`
	Selectors []string `json:"selectors,omitempty"`
}

func (*NodeFilterConfig) DeepCopy

func (in *NodeFilterConfig) DeepCopy() *NodeFilterConfig

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

func (*NodeFilterConfig) DeepCopyInto

func (in *NodeFilterConfig) DeepCopyInto(out *NodeFilterConfig)

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

type OptionalContainerConfig

type OptionalContainerConfig struct {
	Enabled         bool `json:"enabled,omitempty"`
	ContainerConfig `json:",inline"`
}

func (*OptionalContainerConfig) DeepCopy

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

func (*OptionalContainerConfig) DeepCopyInto

func (in *OptionalContainerConfig) DeepCopyInto(out *OptionalContainerConfig)

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

type ProfileConfig

type ProfileConfig struct {
	Enabled bool `json:"enabled,omitempty"`
	Port    int  `json:"port,omitempty"`
}

func (*ProfileConfig) DeepCopy

func (in *ProfileConfig) DeepCopy() *ProfileConfig

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

func (*ProfileConfig) DeepCopyInto

func (in *ProfileConfig) DeepCopyInto(out *ProfileConfig)

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

type RepoTag

type RepoTag struct {
	Repo string `json:"repo,omitempty"`
	Tag  string `json:"tag,omitempty"`
}

func (*RepoTag) DeepCopy

func (in *RepoTag) DeepCopy() *RepoTag

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

func (*RepoTag) DeepCopyInto

func (in *RepoTag) DeepCopyInto(out *RepoTag)

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

type ResourceRequirements

type ResourceRequirements struct {
	Mem resource.Quantity `json:"mem,omitempty"`
	CPU resource.Quantity `json:"cpu,omitempty"`
}

func (*ResourceRequirements) DeepCopy

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

func (*ResourceRequirements) DeepCopyInto

func (in *ResourceRequirements) DeepCopyInto(out *ResourceRequirements)

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

type Runtime

type Runtime string

type RuntimeSpec

type RuntimeSpec struct {
	Name    Runtime `json:"name"`
	Address string  `json:"address"`
}

func ConvertRuntimeToRuntimeSpec

func ConvertRuntimeToRuntimeSpec(r Runtime) (RuntimeSpec, error)

func (*RuntimeSpec) DeepCopy

func (in *RuntimeSpec) DeepCopy() *RuntimeSpec

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

func (*RuntimeSpec) DeepCopyInto

func (in *RuntimeSpec) DeepCopyInto(out *RuntimeSpec)

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

func (*RuntimeSpec) UnmarshalJSON

func (r *RuntimeSpec) UnmarshalJSON(b []byte) error

type ScheduleConfig

type ScheduleConfig struct {
	RepeatInterval   Duration `json:"repeatInterval,omitempty"`
	BeginImmediately bool     `json:"beginImmediately,omitempty"`
}

func (*ScheduleConfig) DeepCopy

func (in *ScheduleConfig) DeepCopy() *ScheduleConfig

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

func (*ScheduleConfig) DeepCopyInto

func (in *ScheduleConfig) DeepCopyInto(out *ScheduleConfig)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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