Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the uptime-robot v1 API group +kubebuilder:object:generate=true +groupName=uptime-robot.clevyr.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "uptime-robot.clevyr.com", Version: "v1"} // 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 Account ¶
type Account struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec AccountSpec `json:"spec,omitempty"`
Status AccountStatus `json:"status,omitempty"`
}
Account is the Schema for the accounts API
func (*Account) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Account.
func (*Account) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Account) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AccountList ¶
type AccountList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Account `json:"items"`
}
AccountList contains a list of Account
func (*AccountList) DeepCopy ¶
func (in *AccountList) DeepCopy() *AccountList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountList.
func (*AccountList) DeepCopyInto ¶
func (in *AccountList) DeepCopyInto(out *AccountList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AccountList) DeepCopyObject ¶
func (in *AccountList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AccountSpec ¶
type AccountSpec struct {
// +kubebuilder:default:=false
IsDefault bool `json:"isDefault,omitempty"`
// ApiKeySecretRef references the secret that contains the Uptime Robot API key.
ApiKeySecretRef corev1.SecretKeySelector `json:"apiKeySecretRef"`
}
AccountSpec defines the desired state of Account
func (*AccountSpec) DeepCopy ¶
func (in *AccountSpec) DeepCopy() *AccountSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountSpec.
func (*AccountSpec) DeepCopyInto ¶
func (in *AccountSpec) DeepCopyInto(out *AccountSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AccountStatus ¶
AccountStatus defines the observed state of Account
func (*AccountStatus) DeepCopy ¶
func (in *AccountStatus) DeepCopy() *AccountStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccountStatus.
func (*AccountStatus) DeepCopyInto ¶
func (in *AccountStatus) DeepCopyInto(out *AccountStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Contact ¶
type Contact struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ContactSpec `json:"spec,omitempty"`
Status ContactStatus `json:"status,omitempty"`
}
Contact is the Schema for the contacts API
func (*Contact) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Contact.
func (*Contact) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Contact) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContactList ¶
type ContactList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Contact `json:"items"`
}
ContactList contains a list of Contact
func (*ContactList) DeepCopy ¶
func (in *ContactList) DeepCopy() *ContactList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContactList.
func (*ContactList) DeepCopyInto ¶
func (in *ContactList) DeepCopyInto(out *ContactList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ContactList) DeepCopyObject ¶
func (in *ContactList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ContactSpec ¶
type ContactSpec struct {
// +kubebuilder:default:=false
IsDefault bool `json:"isDefault,omitempty"`
// Account references this object's Account. If not specified, the default will be used.
Account corev1.LocalObjectReference `json:"account,omitempty"`
// Contact configures the Uptime Robot monitor.
Contact uptimerobot.Contact `json:"contact"`
}
ContactSpec defines the desired state of Contact
func (*ContactSpec) DeepCopy ¶
func (in *ContactSpec) DeepCopy() *ContactSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContactSpec.
func (*ContactSpec) DeepCopyInto ¶
func (in *ContactSpec) DeepCopyInto(out *ContactSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContactStatus ¶
ContactStatus defines the observed state of Contact
func (*ContactStatus) DeepCopy ¶
func (in *ContactStatus) DeepCopy() *ContactStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContactStatus.
func (*ContactStatus) DeepCopyInto ¶
func (in *ContactStatus) DeepCopyInto(out *ContactStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Monitor ¶
type Monitor struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MonitorSpec `json:"spec,omitempty"`
Status MonitorStatus `json:"status,omitempty"`
}
Monitor is the Schema for the monitors API
func (*Monitor) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Monitor.
func (*Monitor) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Monitor) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MonitorContactRef ¶
type MonitorContactRef struct {
corev1.LocalObjectReference `json:",inline"`
uptimerobot.MonitorContactCommon `json:",inline"`
}
MonitorContactRef attaches alert contacts. If blank, the default will be used.
func (*MonitorContactRef) DeepCopy ¶
func (in *MonitorContactRef) DeepCopy() *MonitorContactRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorContactRef.
func (*MonitorContactRef) DeepCopyInto ¶
func (in *MonitorContactRef) DeepCopyInto(out *MonitorContactRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MonitorList ¶
type MonitorList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Monitor `json:"items"`
}
MonitorList contains a list of Monitor
func (*MonitorList) DeepCopy ¶
func (in *MonitorList) DeepCopy() *MonitorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorList.
func (*MonitorList) DeepCopyInto ¶
func (in *MonitorList) DeepCopyInto(out *MonitorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MonitorList) DeepCopyObject ¶
func (in *MonitorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MonitorSpec ¶
type MonitorSpec struct {
// Interval defines the reconcile interval.
//+kubebuilder:default:="24h"
Interval metav1.Duration `json:"interval,omitempty"`
// Prune enables garbage collection.
//+kubebuilder:default:=true
Prune bool `json:"prune,omitempty"`
// Account references this object's Account. If not specified, the default will be used.
Account corev1.LocalObjectReference `json:"account,omitempty"`
// Monitor configures the Uptime Robot monitor.
Monitor uptimerobot.Monitor `json:"monitor"`
// +kubebuilder:default:={{}}
Contacts []MonitorContactRef `json:"contacts,omitempty"`
}
MonitorSpec defines the desired state of Monitor
func (*MonitorSpec) DeepCopy ¶
func (in *MonitorSpec) DeepCopy() *MonitorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorSpec.
func (*MonitorSpec) DeepCopyInto ¶
func (in *MonitorSpec) DeepCopyInto(out *MonitorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MonitorStatus ¶
type MonitorStatus struct {
Ready bool `json:"ready"`
ID string `json:"id,omitempty"`
Type urtypes.MonitorType `json:"type,omitempty"`
Status uint8 `json:"status,omitempty"`
}
MonitorStatus defines the observed state of Monitor
func (*MonitorStatus) DeepCopy ¶
func (in *MonitorStatus) DeepCopy() *MonitorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorStatus.
func (*MonitorStatus) DeepCopyInto ¶
func (in *MonitorStatus) DeepCopyInto(out *MonitorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.