v1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v1"

Variables

Functions

func AddToScheme

func AddToScheme(scheme *runtime.Scheme) error

Types

type Condition

type Condition struct {
	Type               string                 `json:"type,omitempty"`
	Reason             string                 `json:"reason,omitempty"`
	Message            string                 `json:"message,omitempty"`
	Status             metav1.ConditionStatus `json:"status,omitempty"`
	ObservedGeneration int64                  `json:"observedGeneration,omitempty"`
	LastTransitionTime metav1.Time            `json:"lastTransitionTime"`

	Success       bool `json:"success,omitempty"`
	Error         bool `json:"error,omitempty"`
	Transitioning bool `json:"transitioning,omitempty"`
}

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

func (Condition) Init

func (in Condition) Init(name string, generation int64) Condition

func (Condition) Set

func (in Condition) Set(cond Condition, generation int64) Condition

func (Condition) ToReason

func (in Condition) ToReason() string

func (Condition) ToStatus

func (in Condition) ToStatus() metav1.ConditionStatus

type Matcher

type Matcher struct {
	Name  string `json:"name"`
	Value string `json:"value"`
	Regex bool   `json:"isRegex"`
	Equal bool   `json:"isEqual"`
}

func (*Matcher) DeepCopy

func (in *Matcher) DeepCopy() *Matcher

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

func (*Matcher) DeepCopyInto

func (in *Matcher) DeepCopyInto(out *Matcher)

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

type Silence

type Silence struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec   SilenceSpec   `json:"spec,omitempty"`
	Status SilenceStatus `json:"status,omitempty"`
}

func (*Silence) Conditions

func (in *Silence) Conditions() *[]Condition

func (*Silence) DeepCopy

func (in *Silence) DeepCopy() *Silence

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

func (*Silence) DeepCopyInto

func (in *Silence) DeepCopyInto(out *Silence)

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

func (*Silence) DeepCopyObject

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

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

type SilenceList

type SilenceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Silence `json:"items"`
}

func (*SilenceList) DeepCopy

func (in *SilenceList) DeepCopy() *SilenceList

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

func (*SilenceList) DeepCopyInto

func (in *SilenceList) DeepCopyInto(out *SilenceList)

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

func (*SilenceList) DeepCopyObject

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

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

type SilenceSpec

type SilenceSpec struct {
	URL       string      `json:"url"`
	Matchers  []Matcher   `json:"matchers,omitempty"`
	StartsAt  metav1.Time `json:"startsAt"`
	EndsAt    metav1.Time `json:"endsAt"`
	CreatedBy string      `json:"createdBy"`
	Comment   string      `json:"comment"`
}

func (*SilenceSpec) DeepCopy

func (in *SilenceSpec) DeepCopy() *SilenceSpec

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

func (*SilenceSpec) DeepCopyInto

func (in *SilenceSpec) DeepCopyInto(out *SilenceSpec)

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

type SilenceStatus

type SilenceStatus struct {
	ID         string      `json:"id,omitempty"`
	State      string      `json:"state,omitempty"`
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*SilenceStatus) Condition

func (in *SilenceStatus) Condition(name string) Condition

func (*SilenceStatus) DeepCopy

func (in *SilenceStatus) DeepCopy() *SilenceStatus

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

func (*SilenceStatus) DeepCopyInto

func (in *SilenceStatus) DeepCopyInto(out *SilenceStatus)

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

Jump to

Keyboard shortcuts

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