v1

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=monitoring

Index

Constants

This section is empty.

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: examplecom.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func CompareAlert added in v1.1.0

func CompareAlert(a, b Alert) int

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"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec AlertSpec `json:"spec"`
}

Alert describes a database.

func (*Alert) DeepCopy

func (in *Alert) DeepCopy() *Alert

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

func (*Alert) DeepCopyInto

func (in *Alert) DeepCopyInto(out *Alert)

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

func (*Alert) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AlertList

type AlertList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Alert `json:"items"`
}

AlertList is a list of Alert resources

func (*AlertList) DeepCopy

func (in *AlertList) DeepCopy() *AlertList

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

func (*AlertList) DeepCopyInto

func (in *AlertList) DeepCopyInto(out *AlertList)

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

func (*AlertList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AlertSpec

type AlertSpec struct {
	Name        string            `json:"name" yaml:"name"`
	Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
	Expression  string            `json:"expression,omitempty" yaml:"expression,omitempty"`
	For         string            `json:"for,omitempty" yaml:"for,omitempty"`
	Labels      map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
}

AlertSpec is the spec for a Foo resource

func (*AlertSpec) DeepCopy

func (in *AlertSpec) DeepCopy() *AlertSpec

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

func (*AlertSpec) DeepCopyInto

func (in *AlertSpec) DeepCopyInto(out *AlertSpec)

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

func (AlertSpec) Equal

func (a AlertSpec) Equal(alert AlertSpec) bool

func (AlertSpec) Validate

func (a AlertSpec) Validate(ctx context.Context) error

type AlertSpecs

type AlertSpecs []AlertSpec

func (AlertSpecs) Contains added in v1.3.0

func (a AlertSpecs) Contains(name string) bool

func (AlertSpecs) DeepCopy

func (in AlertSpecs) DeepCopy() AlertSpecs

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

func (AlertSpecs) DeepCopyInto

func (in AlertSpecs) DeepCopyInto(out *AlertSpecs)

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

type Alerts

type Alerts []Alert

func (Alerts) Contains added in v1.3.0

func (a Alerts) Contains(name string) bool

func (Alerts) DeepCopy

func (in Alerts) DeepCopy() Alerts

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

func (Alerts) DeepCopyInto

func (in Alerts) DeepCopyInto(out *Alerts)

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

func (Alerts) Specs

func (a Alerts) Specs() AlertSpecs

type AlertsSorted added in v1.1.0

type AlertsSorted []Alert

func (AlertsSorted) Len added in v1.1.0

func (b AlertsSorted) Len() int

func (AlertsSorted) Less added in v1.1.0

func (b AlertsSorted) Less(i, j int) bool

func (AlertsSorted) Swap added in v1.1.0

func (b AlertsSorted) Swap(i, j int)

Jump to

Keyboard shortcuts

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