v1beta1

package
v0.0.0-...-5544660 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package v1beta1 contains API Schema definitions for the kidle v1beta1 API group +kubebuilder:object:generate=true +groupName=kidle.kidle.dev

Index

Constants

View Source
const (
	IdlingResources = "idlingresources"

	// IdlingResourceFinalizerName is the name of the idlingresource finalizer
	IdlingResourceFinalizerName = "idlingresource.finalizers.kidle.kidle.dev"

	// TODO
	MetadataIdlingResourceReference = "kidle.kidle.dev/idling-resource-reference"

	// TODO
	MetadataPreviousReplicas = "kidle.kidle.dev/previous-replicas"

	// TODO
	MetadataExpectedState = "kidle.kidle.dev/expected-state"
)

Variables

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

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

type CronStrategy struct {
	// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
	Schedule string `json:"schedule"`
}

func (*CronStrategy) DeepCopy

func (in *CronStrategy) DeepCopy() *CronStrategy

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

func (*CronStrategy) DeepCopyInto

func (in *CronStrategy) DeepCopyInto(out *CronStrategy)

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

type CrossVersionObjectReference

type CrossVersionObjectReference struct {
	// Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
	Kind string `json:"kind"`

	// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
	Name string `json:"name"`

	// API version of the referent
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`
}

CrossVersionObjectReference contains enough information to let you identify the referred resource.

func (*CrossVersionObjectReference) DeepCopy

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

func (*CrossVersionObjectReference) DeepCopyInto

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

type IdlingResource

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

	Spec   IdlingResourceSpec   `json:"spec,omitempty"`
	Status IdlingResourceStatus `json:"status,omitempty"`
}

IdlingResource is the Schema for the idlingresources API

func (*IdlingResource) AddFinalizer

func (ss *IdlingResource) AddFinalizer(finalizerName string)

AddFinalizer adds the specified finalizer

func (*IdlingResource) DeepCopy

func (in *IdlingResource) DeepCopy() *IdlingResource

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

func (*IdlingResource) DeepCopyInto

func (in *IdlingResource) DeepCopyInto(out *IdlingResource)

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

func (*IdlingResource) DeepCopyObject

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

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

func (*IdlingResource) HasFinalizer

func (ss *IdlingResource) HasFinalizer(finalizerName string) bool

HasFinalizer returns true if the item has the specified finalizer

func (*IdlingResource) IsBeingDeleted

func (ss *IdlingResource) IsBeingDeleted() bool

IsBeingDeleted returns true if a deletion timestamp is set

func (*IdlingResource) RemoveFinalizer

func (ss *IdlingResource) RemoveFinalizer(finalizerName string)

RemoveFinalizer removes the specified finalizer

type IdlingResourceList

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

IdlingResourceList contains a list of IdlingResource

func (*IdlingResourceList) DeepCopy

func (in *IdlingResourceList) DeepCopy() *IdlingResourceList

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

func (*IdlingResourceList) DeepCopyInto

func (in *IdlingResourceList) DeepCopyInto(out *IdlingResourceList)

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

func (*IdlingResourceList) DeepCopyObject

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

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

type IdlingResourceSpec

type IdlingResourceSpec struct {

	// The reference to the idle-able resource
	IdlingResourceRef CrossVersionObjectReference `json:"idlingResourceRef"`

	// The desired state of idling. Defaults to false.
	// +kubebuilder:default:false
	Idle bool `json:"idle"`

	// +optional
	IdlingStrategy *IdlingStrategy `json:"idlingStrategy,omitempty"`

	// +optional
	WakeupStrategy *WakeupStrategy `json:"wakeupStrategy,omitempty"`
}

IdlingResourceSpec defines the desired state of IdlingResource

func (*IdlingResourceSpec) DeepCopy

func (in *IdlingResourceSpec) DeepCopy() *IdlingResourceSpec

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

func (*IdlingResourceSpec) DeepCopyInto

func (in *IdlingResourceSpec) DeepCopyInto(out *IdlingResourceSpec)

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

type IdlingResourceStatus

type IdlingResourceStatus struct {
}

IdlingResourceStatus defines the observed state of IdlingResource

func (*IdlingResourceStatus) DeepCopy

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

func (*IdlingResourceStatus) DeepCopyInto

func (in *IdlingResourceStatus) DeepCopyInto(out *IdlingResourceStatus)

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

type IdlingStrategy

type IdlingStrategy struct {
	// +optional
	CronStrategy *CronStrategy `json:"cronStrategy,omitempty"`

	// +optional
	InactiveStrategy *InactiveStrategy `json:"inactiveStrategy,omitempty"`
}

func (*IdlingStrategy) DeepCopy

func (in *IdlingStrategy) DeepCopy() *IdlingStrategy

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

func (*IdlingStrategy) DeepCopyInto

func (in *IdlingStrategy) DeepCopyInto(out *IdlingStrategy)

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

type InactiveStrategy

type InactiveStrategy struct {
}

func (*InactiveStrategy) DeepCopy

func (in *InactiveStrategy) DeepCopy() *InactiveStrategy

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

func (*InactiveStrategy) DeepCopyInto

func (in *InactiveStrategy) DeepCopyInto(out *InactiveStrategy)

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

type OnCallStrategy

type OnCallStrategy struct {
}

func (*OnCallStrategy) DeepCopy

func (in *OnCallStrategy) DeepCopy() *OnCallStrategy

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

func (*OnCallStrategy) DeepCopyInto

func (in *OnCallStrategy) DeepCopyInto(out *OnCallStrategy)

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

type WakeupStrategy

type WakeupStrategy struct {
	// +optional
	CronStrategy *CronStrategy `json:"cronStrategy,omitempty"`

	// +optional
	OnCallStrategy *OnCallStrategy `json:"onCallStrategy,omitempty"`
}

func (*WakeupStrategy) DeepCopy

func (in *WakeupStrategy) DeepCopy() *WakeupStrategy

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

func (*WakeupStrategy) DeepCopyInto

func (in *WakeupStrategy) DeepCopyInto(out *WakeupStrategy)

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