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 ¶
- Variables
- type Account
- type AccountList
- type AccountSpec
- type AccountStatus
- type Contact
- type ContactList
- type ContactSpec
- type ContactStatus
- type ContactValues
- type Monitor
- type MonitorAuth
- type MonitorContact
- type MonitorContactCommon
- type MonitorContactRef
- type MonitorContacts
- type MonitorKeyword
- type MonitorList
- type MonitorPOST
- type MonitorPort
- type MonitorSpec
- type MonitorStatus
- type MonitorValues
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 ContactValues `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 ContactValues ¶ added in v0.1.0
type ContactValues struct {
// FriendlyName sets the name that is shown in Uptime Robot.
FriendlyName string `json:"friendlyName"`
}
func (*ContactValues) DeepCopy ¶ added in v0.1.0
func (in *ContactValues) DeepCopy() *ContactValues
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContactValues.
func (*ContactValues) DeepCopyInto ¶ added in v0.1.0
func (in *ContactValues) DeepCopyInto(out *ContactValues)
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 MonitorAuth ¶ added in v0.1.0
type MonitorAuth struct {
//+kubebuilder:default:="Basic"
Type urtypes.MonitorAuthType `json:"type"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
SecretName string `json:"secretName,omitempty"`
UsernameKey string `json:"usernameKey,omitempty"`
PasswordKey string `json:"passwordKey,omitempty"`
}
func (*MonitorAuth) DeepCopy ¶ added in v0.1.0
func (in *MonitorAuth) DeepCopy() *MonitorAuth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorAuth.
func (*MonitorAuth) DeepCopyInto ¶ added in v0.1.0
func (in *MonitorAuth) DeepCopyInto(out *MonitorAuth)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MonitorContact ¶ added in v0.1.0
type MonitorContact struct {
ID string `json:"id"`
MonitorContactCommon `json:",inline"`
}
func (*MonitorContact) DeepCopy ¶ added in v0.1.0
func (in *MonitorContact) DeepCopy() *MonitorContact
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorContact.
func (*MonitorContact) DeepCopyInto ¶ added in v0.1.0
func (in *MonitorContact) DeepCopyInto(out *MonitorContact)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MonitorContact) String ¶ added in v0.1.0
func (m MonitorContact) String() string
type MonitorContactCommon ¶ added in v0.1.0
type MonitorContactCommon struct {
// Threshold defines the number of minutes to wait to notify.
// +kubebuilder:default:="1m"
Threshold metav1.Duration `json:"threshold,omitempty"`
// Recurrence defines the number of minutes between a repeat notification.
// A value of 0, disables repeat notifications.
Recurrence metav1.Duration `json:"recurrence,omitempty"`
}
func (*MonitorContactCommon) DeepCopy ¶ added in v0.1.0
func (in *MonitorContactCommon) DeepCopy() *MonitorContactCommon
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorContactCommon.
func (*MonitorContactCommon) DeepCopyInto ¶ added in v0.1.0
func (in *MonitorContactCommon) DeepCopyInto(out *MonitorContactCommon)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MonitorContactRef ¶
type MonitorContactRef struct {
corev1.LocalObjectReference `json:",inline"`
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 MonitorContacts ¶ added in v0.1.0
type MonitorContacts []MonitorContact
func (MonitorContacts) DeepCopy ¶ added in v0.1.0
func (in MonitorContacts) DeepCopy() MonitorContacts
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorContacts.
func (MonitorContacts) DeepCopyInto ¶ added in v0.1.0
func (in MonitorContacts) DeepCopyInto(out *MonitorContacts)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MonitorContacts) String ¶ added in v0.1.0
func (m MonitorContacts) String() string
type MonitorKeyword ¶ added in v0.1.0
type MonitorKeyword struct {
Type urtypes.KeywordType `json:"type"`
//+kubebuilder:default:=false
CaseSensitive *bool `json:"caseSensitive,omitempty"`
Value string `json:"value"`
}
func (*MonitorKeyword) DeepCopy ¶ added in v0.1.0
func (in *MonitorKeyword) DeepCopy() *MonitorKeyword
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorKeyword.
func (*MonitorKeyword) DeepCopyInto ¶ added in v0.1.0
func (in *MonitorKeyword) DeepCopyInto(out *MonitorKeyword)
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 MonitorPOST ¶ added in v0.1.0
type MonitorPOST struct {
// Type defines the format of data to be sent with POST, PUT, PATCH, DELETE, and OPTIONS requests.
//+kubebuilder:default:="KeyValue"
Type urtypes.POSTType `json:"postType,omitempty"`
// ContentType sets the Content-Type header for POST, PUT, PATCH, DELETE, and OPTIONS requests.
//+kubebuilder:default:="text/html"
ContentType urtypes.POSTContentType `json:"contentType,omitempty"`
// Value is the JSON form of data to be sent with POST, PUT, PATCH, DELETE, and OPTIONS requests.
Value string `json:"value,omitempty"`
}
func (*MonitorPOST) DeepCopy ¶ added in v0.1.0
func (in *MonitorPOST) DeepCopy() *MonitorPOST
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorPOST.
func (*MonitorPOST) DeepCopyInto ¶ added in v0.1.0
func (in *MonitorPOST) DeepCopyInto(out *MonitorPOST)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MonitorPort ¶ added in v0.1.0
type MonitorPort struct {
Type urtypes.PortType `json:"type"`
Number uint16 `json:"number,omitempty"`
}
func (*MonitorPort) DeepCopy ¶ added in v0.1.0
func (in *MonitorPort) DeepCopy() *MonitorPort
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorPort.
func (*MonitorPort) DeepCopyInto ¶ added in v0.1.0
func (in *MonitorPort) DeepCopyInto(out *MonitorPort)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 MonitorValues `json:"monitor"`
// +kubebuilder:default:={{}}
Contacts []MonitorContactRef `json:"contacts,omitempty"`
// SourceRef optionally references the object that created this Monitor.
SourceRef *corev1.TypedLocalObjectReference `json:"sourceRef,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.
type MonitorValues ¶ added in v0.1.0
type MonitorValues struct {
// FriendlyName sets the name that is shown in Uptime Robot.
FriendlyName string `json:"friendlyName"`
// URL is the URL or IP to monitor, including the scheme.
URL string `json:"url"`
// Type chooses the monitor type.
//+kubebuilder:default:=HTTPS
Type urtypes.MonitorType `json:"type,omitempty"`
// Interval is the monitoring interval.
//+kubebuilder:default:="60s"
Interval *metav1.Duration `json:"interval,omitempty"`
// Status toggles pause status for the monitor. 0 is paused, 1 is running.
//+kubebuilder:default:=1
Status uint8 `json:"status,omitempty"`
// Timeout is the monitor timeout.
//+kubebuilder:default:="30s"
Timeout *metav1.Duration `json:"timeout,omitempty"`
// HTTPMethod defines the HTTP verb to use.
//+kubebuilder:default:="HEAD"
HTTPMethod urtypes.HTTPMethod `json:"httpMethod,omitempty"`
// POST configures POST, PUT, PATCH, DELETE, and OPTIONS requests.
POST *MonitorPOST `json:"post,omitempty"`
// Keyword provides configuration for the Keyword monitor type.
Keyword *MonitorKeyword `json:"keyword,omitempty"`
// Port provides configuration for the Port monitor type.
Port *MonitorPort `json:"port,omitempty"`
// Auth enables monitor auth.
Auth *MonitorAuth `json:"auth,omitempty"`
}
func (*MonitorValues) DeepCopy ¶ added in v0.1.0
func (in *MonitorValues) DeepCopy() *MonitorValues
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorValues.
func (*MonitorValues) DeepCopyInto ¶ added in v0.1.0
func (in *MonitorValues) DeepCopyInto(out *MonitorValues)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.