Documentation
¶
Overview ¶
Package v1 data structures and supporting functions for the Target CRD
V1 layout is as follows:
apiVersion: webmon.clambin.private/v1 kind: Target metadata: name: <name> namespace: <namespace> spec: url: https://example.com
Index ¶
Constants ¶
const GroupName = "webmon.clambin.private"
GroupName for the custom resource API
const GroupVersion = "v1"
GroupVersion for the custom resource API
Variables ¶
var (
// AddToScheme adds the know types to the scheme
AddToScheme = schemeBuilder.AddToScheme
)
Functions ¶
This section is empty.
Types ¶
type Target ¶
type Target struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TargetSpec `json:"spec"` }
Target layout for the custom resource +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Target) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.
func (*Target) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Target) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TargetList ¶
type TargetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Target `json:"items"` }
TargetList layout for a list of Target custom resources +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*TargetList) DeepCopy ¶
func (in *TargetList) DeepCopy() *TargetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetList.
func (*TargetList) DeepCopyInto ¶
func (in *TargetList) DeepCopyInto(out *TargetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TargetList) DeepCopyObject ¶
func (in *TargetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TargetSpec ¶
type TargetSpec struct { // URL of the site to monitor URL string `json:"url"` // Name of the site to monitor. Applied to Prometheus metrics Name string `json:"name"` }
TargetSpec contains the fields within the "spec" entry of the custom resource