Documentation ¶
Index ¶
- Constants
- Variables
- func AddToScheme(scheme *runtime.Scheme) error
- type Condition
- func (in *Condition) DeepCopy() *Condition
- func (in *Condition) DeepCopyInto(out *Condition)
- func (in Condition) Init(name string, generation int64) Condition
- func (in Condition) Set(cond Condition, generation int64) Condition
- func (in Condition) ToReason() string
- func (in Condition) ToStatus() metav1.ConditionStatus
- type Matcher
- type Silence
- type SilenceList
- type SilenceSpec
- type SilenceStatus
Constants ¶
const Version = "v1"
Variables ¶
var SchemeGroupVersion = schema.GroupVersion{ Group: alertmanager_ekristen_dev.Group, Version: Version, }
Functions ¶
func AddToScheme ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Matcher.
func (*Matcher) DeepCopyInto ¶
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 (*Silence) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Silence.
func (*Silence) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Silence) DeepCopyObject ¶
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.