Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the loudspeaker v1alpha1 API group +kubebuilder:object:generate=true +groupName=loudspeaker.ureuzy.github.io
Index ¶
- Constants
- Variables
- type EventType
- type IgnoreEventTypes
- type IgnoreObjectKinds
- type IgnoreObjectNames
- type IgnoreReasons
- type Listener
- type ListenerType
- type Listeners
- type Loudspeaker
- func (in *Loudspeaker) DeepCopy() *Loudspeaker
- func (in *Loudspeaker) DeepCopyInto(out *Loudspeaker)
- func (in *Loudspeaker) DeepCopyObject() runtime.Object
- func (r *Loudspeaker) Default()
- func (l *Loudspeaker) IncludeListener(listenerName string) bool
- func (r *Loudspeaker) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (l *Loudspeaker) ToJsonString() (string, error)
- func (r *Loudspeaker) ValidateCreate() error
- func (r *Loudspeaker) ValidateDelete() error
- func (r *Loudspeaker) ValidateUpdate(old runtime.Object) error
- type LoudspeakerList
- type LoudspeakerSpec
- type LoudspeakerStatus
- type Observe
- type Status
Constants ¶
const ( Normal = EventType("Normal") Warning = EventType("Warning") )
const ( LoudspeakerNotReady = Status("NotReady") LoudspeakerAvailable = Status("Available") LoudspeakerHealthy = Status("Healthy") )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "loudspeaker.ureuzy.github.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type IgnoreEventTypes ¶
type IgnoreEventTypes []string
IgnoreEventTypes is an array of event involved event type to ignore
func (*IgnoreEventTypes) Contains ¶
func (i *IgnoreEventTypes) Contains(eventType string) bool
Contains is whether the argument "eventType" is included or not.
func (IgnoreEventTypes) DeepCopy ¶
func (in IgnoreEventTypes) DeepCopy() IgnoreEventTypes
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IgnoreEventTypes.
func (IgnoreEventTypes) DeepCopyInto ¶
func (in IgnoreEventTypes) DeepCopyInto(out *IgnoreEventTypes)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IgnoreObjectKinds ¶
type IgnoreObjectKinds []string
IgnoreObjectKinds is an array of event involved object kinds to ignore
func (*IgnoreObjectKinds) Contains ¶
func (i *IgnoreObjectKinds) Contains(objectKind string) bool
Contains is whether the argument "objectKind" is included or not.
func (IgnoreObjectKinds) DeepCopy ¶
func (in IgnoreObjectKinds) DeepCopy() IgnoreObjectKinds
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IgnoreObjectKinds.
func (IgnoreObjectKinds) DeepCopyInto ¶
func (in IgnoreObjectKinds) DeepCopyInto(out *IgnoreObjectKinds)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IgnoreObjectNames ¶
type IgnoreObjectNames []string
IgnoreObjectNames is an array of event involved object names to ignore
func (*IgnoreObjectNames) Contains ¶
func (i *IgnoreObjectNames) Contains(objectName string) bool
Contains is whether the argument "objectName" is included or not.
func (IgnoreObjectNames) DeepCopy ¶
func (in IgnoreObjectNames) DeepCopy() IgnoreObjectNames
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IgnoreObjectNames.
func (IgnoreObjectNames) DeepCopyInto ¶
func (in IgnoreObjectNames) DeepCopyInto(out *IgnoreObjectNames)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IgnoreReasons ¶
type IgnoreReasons []string
IgnoreReasons is an array of event Reason to ignore
func (*IgnoreReasons) Contains ¶
func (i *IgnoreReasons) Contains(reason string) bool
Contains is whether the argument "reason" is included or not.
func (IgnoreReasons) DeepCopy ¶
func (in IgnoreReasons) DeepCopy() IgnoreReasons
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IgnoreReasons.
func (IgnoreReasons) DeepCopyInto ¶
func (in IgnoreReasons) DeepCopyInto(out *IgnoreReasons)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Listener ¶
type Listener struct { //+kubebuilder:validation:Required //+kubebuilder:validation:MinLength:=1 Name string `json:"name"` //+kubebuilder:validation:Enum:=sentry //+kubebuilder:validation:Required Type ListenerType `json:"type"` //+kubebuilder:validation:Required //+kubebuilder:validation:MinLength:=1 Credentials string `json:"credentials"` //+kubebuilder:validation:Required Observes []Observe `json:"observes"` }
Listener defines configuration the Listener to which events are sent
func (*Listener) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Listener.
func (*Listener) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ListenerType ¶
type ListenerType string
ListenerType defines the types of Listener that can be specified
const (
Sentry ListenerType = "sentry"
)
type Listeners ¶
type Listeners []Listener
func (Listeners) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Listeners.
func (Listeners) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Listeners) DuplicateListenerName ¶
DuplicateListenerName is checks whether the same thing is set in each listener's name
type Loudspeaker ¶
type Loudspeaker struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LoudspeakerSpec `json:"spec,omitempty"` //+kubebuilder:validation:Required Status LoudspeakerStatus `json:"status,omitempty"` }
Loudspeaker is the Schema for the loudspeakers API
func (*Loudspeaker) DeepCopy ¶
func (in *Loudspeaker) DeepCopy() *Loudspeaker
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Loudspeaker.
func (*Loudspeaker) DeepCopyInto ¶
func (in *Loudspeaker) DeepCopyInto(out *Loudspeaker)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Loudspeaker) DeepCopyObject ¶
func (in *Loudspeaker) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Loudspeaker) Default ¶
func (r *Loudspeaker) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Loudspeaker) IncludeListener ¶
func (l *Loudspeaker) IncludeListener(listenerName string) bool
IncludeListener is checks whether the same thing is included in each listener's name
func (*Loudspeaker) SetupWebhookWithManager ¶
func (r *Loudspeaker) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*Loudspeaker) ToJsonString ¶
func (l *Loudspeaker) ToJsonString() (string, error)
func (*Loudspeaker) ValidateCreate ¶
func (r *Loudspeaker) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Loudspeaker) ValidateDelete ¶
func (r *Loudspeaker) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*Loudspeaker) ValidateUpdate ¶
func (r *Loudspeaker) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type LoudspeakerList ¶
type LoudspeakerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Loudspeaker `json:"items"` }
LoudspeakerList contains a list of Loudspeaker
func (*LoudspeakerList) DeepCopy ¶
func (in *LoudspeakerList) DeepCopy() *LoudspeakerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoudspeakerList.
func (*LoudspeakerList) DeepCopyInto ¶
func (in *LoudspeakerList) DeepCopyInto(out *LoudspeakerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LoudspeakerList) DeepCopyObject ¶
func (in *LoudspeakerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LoudspeakerSpec ¶
type LoudspeakerSpec struct { //+optional Image string `json:"image,omitempty"` //+kubebuilder:validation:Required //+kubebuilder:validation:MinLength:=1 ServiceAccountName string `json:"serviceAccountName"` //+kubebuilder:validation:Required Listeners Listeners `json:"listeners"` }
LoudspeakerSpec defines the desired state of Loudspeaker
func (*LoudspeakerSpec) DeepCopy ¶
func (in *LoudspeakerSpec) DeepCopy() *LoudspeakerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoudspeakerSpec.
func (*LoudspeakerSpec) DeepCopyInto ¶
func (in *LoudspeakerSpec) DeepCopyInto(out *LoudspeakerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoudspeakerStatus ¶
type LoudspeakerStatus struct { //+kubebuilder:validation:Required //+kubebuilder:validation:Enum=NotReady;Available;Healthy Status Status `json:"status,omitempty"` //+kubebuilder:validation:Required AvailableListener string `json:"available_listener,omitempty"` }
func (*LoudspeakerStatus) DeepCopy ¶
func (in *LoudspeakerStatus) DeepCopy() *LoudspeakerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoudspeakerStatus.
func (*LoudspeakerStatus) DeepCopyInto ¶
func (in *LoudspeakerStatus) DeepCopyInto(out *LoudspeakerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Observe ¶
type Observe struct { //+kubebuilder:default:="" Namespace string `json:"namespace"` //+optional IgnoreReasons IgnoreReasons `json:"ignoreReasons,omitempty"` //+optional IgnoreObjectNames IgnoreObjectNames `json:"ignoreObjectNames,omitempty"` //+optional IgnoreObjectKinds IgnoreObjectKinds `json:"ignoreObjectKinds,omitempty"` //+optional IgnoreEventTypes IgnoreEventTypes `json:"ignoreEventTypes,omitempty"` }
Observe defines of namespace to observe and events to ignore
func (*Observe) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Observe.
func (*Observe) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.