Documentation ¶
Overview ¶
+groupName=downtime.datadog.kubeform.com
Index ¶
- Variables
- func GetDecoder() map[string]jsoniter.ValDecoder
- func GetEncoder() map[string]jsoniter.ValEncoder
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Downtime
- func (in *Downtime) DeepCopy() *Downtime
- func (in *Downtime) DeepCopyInto(out *Downtime)
- func (in *Downtime) DeepCopyObject() runtime.Object
- func (r *Downtime) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Downtime) ValidateCreate() error
- func (r *Downtime) ValidateDelete() error
- func (r *Downtime) ValidateUpdate(old runtime.Object) error
- type DowntimeList
- type DowntimeSpec
- type DowntimeSpecRecurrence
- type DowntimeSpecRecurrenceCodec
- type DowntimeSpecResource
- type DowntimeStatus
Constants ¶
This section is empty.
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: downtime.GroupName, Version: "v1alpha1"}
Functions ¶
func GetDecoder ¶
func GetDecoder() map[string]jsoniter.ValDecoder
func GetEncoder ¶
func GetEncoder() map[string]jsoniter.ValEncoder
func Kind ¶
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 Downtime ¶
type Downtime struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DowntimeSpec `json:"spec,omitempty"` Status DowntimeStatus `json:"status,omitempty"` }
func (*Downtime) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Downtime.
func (*Downtime) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Downtime) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Downtime) SetupWebhookWithManager ¶
func (*Downtime) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Downtime) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type DowntimeList ¶
type DowntimeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Downtime CRD objects Items []Downtime `json:"items,omitempty"` }
DowntimeList is a list of Downtimes
func (*DowntimeList) DeepCopy ¶
func (in *DowntimeList) DeepCopy() *DowntimeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DowntimeList.
func (*DowntimeList) DeepCopyInto ¶
func (in *DowntimeList) DeepCopyInto(out *DowntimeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DowntimeList) DeepCopyObject ¶
func (in *DowntimeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DowntimeSpec ¶
type DowntimeSpec struct { State *DowntimeSpecResource `json:"state,omitempty" tf:"-"` Resource DowntimeSpecResource `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 (*DowntimeSpec) DeepCopy ¶
func (in *DowntimeSpec) DeepCopy() *DowntimeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DowntimeSpec.
func (*DowntimeSpec) DeepCopyInto ¶
func (in *DowntimeSpec) DeepCopyInto(out *DowntimeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DowntimeSpecRecurrence ¶
type DowntimeSpecRecurrence struct { // How often to repeat as an integer. For example to repeat every 3 days, select a `type` of `days` and a `period` of `3`. // +optional Period *int64 `json:"period,omitempty" tf:"period"` // The RRULE standard for defining recurring events. For example, to have a recurring event on the first day of each month, use `FREQ=MONTHLY;INTERVAL=1`. Most common rrule options from the iCalendar Spec are supported. Attributes specifying the duration in RRULE are not supported (for example, `DTSTART`, `DTEND`, `DURATION`). // +optional Rrule *string `json:"rrule,omitempty" tf:"rrule"` // One of `days`, `weeks`, `months`, or `years` Type *string `json:"type" tf:"type"` // The date at which the recurrence should end as a POSIX timestamp. `until_occurrences` and `until_date` are mutually exclusive. // +optional UntilDate *int64 `json:"untilDate,omitempty" tf:"until_date"` // How many times the downtime will be rescheduled. `until_occurrences` and `until_date` are mutually exclusive. // +optional UntilOccurrences *int64 `json:"untilOccurrences,omitempty" tf:"until_occurrences"` // A list of week days to repeat on. Choose from: `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat` or `Sun`. Only applicable when `type` is `weeks`. First letter must be capitalized. // +optional WeekDays []string `json:"weekDays,omitempty" tf:"week_days"` }
func (*DowntimeSpecRecurrence) DeepCopy ¶
func (in *DowntimeSpecRecurrence) DeepCopy() *DowntimeSpecRecurrence
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DowntimeSpecRecurrence.
func (*DowntimeSpecRecurrence) DeepCopyInto ¶
func (in *DowntimeSpecRecurrence) DeepCopyInto(out *DowntimeSpecRecurrence)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DowntimeSpecRecurrenceCodec ¶
type DowntimeSpecRecurrenceCodec struct { }
+k8s:deepcopy-gen=false
func (DowntimeSpecRecurrenceCodec) Decode ¶
func (DowntimeSpecRecurrenceCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)
func (DowntimeSpecRecurrenceCodec) Encode ¶
func (DowntimeSpecRecurrenceCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)
func (DowntimeSpecRecurrenceCodec) IsEmpty ¶
func (DowntimeSpecRecurrenceCodec) IsEmpty(ptr unsafe.Pointer) bool
type DowntimeSpecResource ¶
type DowntimeSpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // When true indicates this downtime is being actively applied // +optional Active *bool `json:"active,omitempty" tf:"active"` // The id corresponding to the downtime object definition of the active child for the original parent recurring downtime. This field will only exist on recurring downtimes. // +optional ActiveChildID *int64 `json:"activeChildID,omitempty" tf:"active_child_id"` // When true indicates this downtime is not being applied // +optional Disabled *bool `json:"disabled,omitempty" tf:"disabled"` // Optionally specify an end date when this downtime should expire // +optional End *int64 `json:"end,omitempty" tf:"end"` // String representing date and time to end the downtime in RFC3339 format. // +optional EndDate *string `json:"endDate,omitempty" tf:"end_date"` // An optional message to provide when creating the downtime, can include notification handles // +optional Message *string `json:"message,omitempty" tf:"message"` // When specified, this downtime will only apply to this monitor // +optional MonitorID *int64 `json:"monitorID,omitempty" tf:"monitor_id"` // A list of monitor tags (up to 32) to base the scheduled downtime on. Only monitors that have all selected tags are silenced // +optional MonitorTags []string `json:"monitorTags,omitempty" tf:"monitor_tags"` // Optional recurring schedule for this downtime // +optional Recurrence *DowntimeSpecRecurrence `json:"recurrence,omitempty" tf:"recurrence"` // specify the group scope to which this downtime applies. For everything use '*' Scope []string `json:"scope" tf:"scope"` // Specify when this downtime should start // +optional Start *int64 `json:"start,omitempty" tf:"start"` // String representing date and time to start the downtime in RFC3339 format. // +optional StartDate *string `json:"startDate,omitempty" tf:"start_date"` // The timezone for the downtime, default UTC // +optional Timezone *string `json:"timezone,omitempty" tf:"timezone"` }
func (*DowntimeSpecResource) DeepCopy ¶
func (in *DowntimeSpecResource) DeepCopy() *DowntimeSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DowntimeSpecResource.
func (*DowntimeSpecResource) DeepCopyInto ¶
func (in *DowntimeSpecResource) DeepCopyInto(out *DowntimeSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DowntimeStatus ¶
type DowntimeStatus 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 (*DowntimeStatus) DeepCopy ¶
func (in *DowntimeStatus) DeepCopy() *DowntimeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DowntimeStatus.
func (*DowntimeStatus) DeepCopyInto ¶
func (in *DowntimeStatus) DeepCopyInto(out *DowntimeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.