Documentation ¶
Overview ¶
+groupName=monitor.digitalocean.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 Alert
- func (in *Alert) DeepCopy() *Alert
- func (in *Alert) DeepCopyInto(out *Alert)
- func (in *Alert) DeepCopyObject() runtime.Object
- func (r *Alert) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Alert) ValidateCreate() error
- func (r *Alert) ValidateDelete() error
- func (r *Alert) ValidateUpdate(old runtime.Object) error
- type AlertList
- type AlertSpec
- type AlertSpecAlerts
- type AlertSpecAlertsCodec
- type AlertSpecAlertsSlack
- type AlertSpecResource
- type AlertStatus
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: monitor.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 Alert ¶
type Alert struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AlertSpec `json:"spec,omitempty"` Status AlertStatus `json:"status,omitempty"` }
func (*Alert) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Alert.
func (*Alert) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Alert) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Alert) SetupWebhookWithManager ¶
func (*Alert) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Alert) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type AlertList ¶
type AlertList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Alert CRD objects Items []Alert `json:"items,omitempty"` }
AlertList is a list of Alerts
func (*AlertList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertList.
func (*AlertList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertSpec ¶
type AlertSpec struct { State *AlertSpecResource `json:"state,omitempty" tf:"-"` Resource AlertSpecResource `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 (*AlertSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertSpec.
type AlertSpecAlerts ¶
type AlertSpecAlerts struct { // List of email addresses to sent notifications to // +optional Email []string `json:"email,omitempty" tf:"email"` // +optional Slack []AlertSpecAlertsSlack `json:"slack,omitempty" tf:"slack"` }
func (*AlertSpecAlerts) DeepCopy ¶
func (in *AlertSpecAlerts) DeepCopy() *AlertSpecAlerts
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertSpecAlerts.
func (*AlertSpecAlerts) DeepCopyInto ¶
func (in *AlertSpecAlerts) DeepCopyInto(out *AlertSpecAlerts)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertSpecAlertsCodec ¶
type AlertSpecAlertsCodec struct { }
+k8s:deepcopy-gen=false
func (AlertSpecAlertsCodec) Decode ¶
func (AlertSpecAlertsCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)
func (AlertSpecAlertsCodec) Encode ¶
func (AlertSpecAlertsCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)
func (AlertSpecAlertsCodec) IsEmpty ¶
func (AlertSpecAlertsCodec) IsEmpty(ptr unsafe.Pointer) bool
type AlertSpecAlertsSlack ¶
type AlertSpecAlertsSlack struct { // The Slack channel to send alerts to Channel *string `json:"channel" tf:"channel"` // The webhook URL for Slack Url *string `json:"url" tf:"url"` }
func (*AlertSpecAlertsSlack) DeepCopy ¶
func (in *AlertSpecAlertsSlack) DeepCopy() *AlertSpecAlertsSlack
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertSpecAlertsSlack.
func (*AlertSpecAlertsSlack) DeepCopyInto ¶
func (in *AlertSpecAlertsSlack) DeepCopyInto(out *AlertSpecAlertsSlack)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertSpecResource ¶
type AlertSpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // List with details how to notify about the alert. Support for Slack or email. Alerts *AlertSpecAlerts `json:"alerts" tf:"alerts"` // The comparison operator to use for value Compare *string `json:"compare" tf:"compare"` // Description of the alert policy Description *string `json:"description" tf:"description"` // +optional Enabled *bool `json:"enabled,omitempty" tf:"enabled"` // The droplets to apply the alert policy to // +optional // +kubebuilder:validation:MinItems=1 Entities []string `json:"entities,omitempty" tf:"entities"` // +optional Tags []string `json:"tags,omitempty" tf:"tags"` Type *string `json:"type" tf:"type"` // +optional Uuid *string `json:"uuid,omitempty" tf:"uuid"` Value *float64 `json:"value" tf:"value"` Window *string `json:"window" tf:"window"` }
func (*AlertSpecResource) DeepCopy ¶
func (in *AlertSpecResource) DeepCopy() *AlertSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertSpecResource.
func (*AlertSpecResource) DeepCopyInto ¶
func (in *AlertSpecResource) DeepCopyInto(out *AlertSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertStatus ¶
type AlertStatus 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 (*AlertStatus) DeepCopy ¶
func (in *AlertStatus) DeepCopy() *AlertStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertStatus.
func (*AlertStatus) DeepCopyInto ¶
func (in *AlertStatus) DeepCopyInto(out *AlertStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.