v1alpha1

package
v0.4.0 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: 14 Imported by: 0

Documentation

Overview

+groupName=schedule.pagerduty.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: schedule.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns 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 Schedule

type Schedule struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ScheduleSpec   `json:"spec,omitempty"`
	Status            ScheduleStatus `json:"status,omitempty"`
}

func (*Schedule) DeepCopy

func (in *Schedule) DeepCopy() *Schedule

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

func (*Schedule) DeepCopyInto

func (in *Schedule) DeepCopyInto(out *Schedule)

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

func (*Schedule) DeepCopyObject

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

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

func (*Schedule) SetupWebhookWithManager

func (r *Schedule) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Schedule) ValidateCreate

func (r *Schedule) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Schedule) ValidateDelete

func (r *Schedule) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Schedule) ValidateUpdate

func (r *Schedule) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ScheduleList

type ScheduleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Schedule CRD objects
	Items []Schedule `json:"items,omitempty"`
}

ScheduleList is a list of Schedules

func (*ScheduleList) DeepCopy

func (in *ScheduleList) DeepCopy() *ScheduleList

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

func (*ScheduleList) DeepCopyInto

func (in *ScheduleList) DeepCopyInto(out *ScheduleList)

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

func (*ScheduleList) DeepCopyObject

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

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

type ScheduleSpec

type ScheduleSpec struct {
	State *ScheduleSpecResource `json:"state,omitempty" tf:"-"`

	Resource ScheduleSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*ScheduleSpec) DeepCopy

func (in *ScheduleSpec) DeepCopy() *ScheduleSpec

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

func (*ScheduleSpec) DeepCopyInto

func (in *ScheduleSpec) DeepCopyInto(out *ScheduleSpec)

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

type ScheduleSpecLayer

type ScheduleSpecLayer struct {
	// +optional
	End *string `json:"end,omitempty" tf:"end"`
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// +optional
	Restriction               []ScheduleSpecLayerRestriction `json:"restriction,omitempty" tf:"restriction"`
	RotationTurnLengthSeconds *int64                         `json:"rotationTurnLengthSeconds" tf:"rotation_turn_length_seconds"`
	RotationVirtualStart      *string                        `json:"rotationVirtualStart" tf:"rotation_virtual_start"`
	Start                     *string                        `json:"start" tf:"start"`
	// +kubebuilder:validation:MinItems=1
	Users []string `json:"users" tf:"users"`
}

func (*ScheduleSpecLayer) DeepCopy

func (in *ScheduleSpecLayer) DeepCopy() *ScheduleSpecLayer

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

func (*ScheduleSpecLayer) DeepCopyInto

func (in *ScheduleSpecLayer) DeepCopyInto(out *ScheduleSpecLayer)

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

type ScheduleSpecLayerRestriction

type ScheduleSpecLayerRestriction struct {
	DurationSeconds *int64 `json:"durationSeconds" tf:"duration_seconds"`
	// +optional
	StartDayOfWeek *int64  `json:"startDayOfWeek,omitempty" tf:"start_day_of_week"`
	StartTimeOfDay *string `json:"startTimeOfDay" tf:"start_time_of_day"`
	Type           *string `json:"type" tf:"type"`
}

func (*ScheduleSpecLayerRestriction) DeepCopy

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

func (*ScheduleSpecLayerRestriction) DeepCopyInto

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

type ScheduleSpecResource

type ScheduleSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// +optional
	Description *string             `json:"description,omitempty" tf:"description"`
	Layer       []ScheduleSpecLayer `json:"layer" tf:"layer"`
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// +optional
	Overflow *bool `json:"overflow,omitempty" tf:"overflow"`
	// +optional
	Teams    []string `json:"teams,omitempty" tf:"teams"`
	TimeZone *string  `json:"timeZone" tf:"time_zone"`
}

func (*ScheduleSpecResource) DeepCopy

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

func (*ScheduleSpecResource) DeepCopyInto

func (in *ScheduleSpecResource) DeepCopyInto(out *ScheduleSpecResource)

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

type ScheduleStatus

type ScheduleStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*ScheduleStatus) DeepCopy

func (in *ScheduleStatus) DeepCopy() *ScheduleStatus

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

func (*ScheduleStatus) DeepCopyInto

func (in *ScheduleStatus) DeepCopyInto(out *ScheduleStatus)

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