v1

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 3 Imported by: 0

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

View Source
const GroupName = "webmon.clambin.private"

GroupName for the custom resource API

View Source
const GroupVersion = "v1"

GroupVersion for the custom resource API

Variables

View Source
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

func (in *Target) DeepCopy() *Target

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.

func (*Target) DeepCopyInto

func (in *Target) DeepCopyInto(out *Target)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Target) DeepCopyObject

func (in *Target) DeepCopyObject() runtime.Object

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL