v1beta1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the logging v1beta1 API group +kubebuilder:object:generate=true +groupName=logging.opsgy.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "logging.opsgy.com", Version: "v1beta1"}

	// 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 GlobalLokiRule

type GlobalLokiRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   GlobalLokiRuleSpec   `json:"spec,omitempty"`
	Status GlobalLokiRuleStatus `json:"status,omitempty"`
}

GlobalLokiRule is the Schema for the globallokirules API

func (*GlobalLokiRule) DeepCopy

func (in *GlobalLokiRule) DeepCopy() *GlobalLokiRule

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

func (*GlobalLokiRule) DeepCopyInto

func (in *GlobalLokiRule) DeepCopyInto(out *GlobalLokiRule)

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

func (*GlobalLokiRule) DeepCopyObject

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

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

func (*GlobalLokiRule) ValidateExpressions

func (lokiRule *GlobalLokiRule) ValidateExpressions() (*GlobalLokiRuleSpec, error)

ValidateExpressions validates the expressions of the rules

type GlobalLokiRuleList

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

GlobalLokiRuleList contains a list of GlobalLokiRule

func (*GlobalLokiRuleList) DeepCopy

func (in *GlobalLokiRuleList) DeepCopy() *GlobalLokiRuleList

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

func (*GlobalLokiRuleList) DeepCopyInto

func (in *GlobalLokiRuleList) DeepCopyInto(out *GlobalLokiRuleList)

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

func (*GlobalLokiRuleList) DeepCopyObject

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

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

type GlobalLokiRuleSpec

type GlobalLokiRuleSpec struct {
	Groups []*LokiRuleGroup `json:"groups,omitempty" yaml:"groups"`
}

GlobalLokiRuleSpec defines the desired state of GlobalLokiRule

func (*GlobalLokiRuleSpec) DeepCopy

func (in *GlobalLokiRuleSpec) DeepCopy() *GlobalLokiRuleSpec

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

func (*GlobalLokiRuleSpec) DeepCopyInto

func (in *GlobalLokiRuleSpec) DeepCopyInto(out *GlobalLokiRuleSpec)

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

type GlobalLokiRuleStatus

type GlobalLokiRuleStatus struct {
	Valid   bool   `json:"valid"`
	Message string `json:"message,omitempty"`
}

GlobalLokiRuleStatus defines the observed state of GlobalLokiRule

func (*GlobalLokiRuleStatus) DeepCopy

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

func (*GlobalLokiRuleStatus) DeepCopyInto

func (in *GlobalLokiRuleStatus) DeepCopyInto(out *GlobalLokiRuleStatus)

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

type LokiGroupRule

type LokiGroupRule struct {
	Alert       string            `json:"alert,omitempty" yaml:"alert"`
	Expr        string            `json:"expr,omitempty" yaml:"expr"`
	For         string            `json:"for,omitempty" yaml:"for"`
	Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations"`
	Labels      map[string]string `json:"labels,omitempty" yaml:"labels"`
}

func (*LokiGroupRule) DeepCopy

func (in *LokiGroupRule) DeepCopy() *LokiGroupRule

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

func (*LokiGroupRule) DeepCopyInto

func (in *LokiGroupRule) DeepCopyInto(out *LokiGroupRule)

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

type LokiRule

type LokiRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   LokiRuleSpec   `json:"spec,omitempty"`
	Status LokiRuleStatus `json:"status,omitempty"`
}

LokiRule is the Schema for the lokirules API

func (*LokiRule) DeepCopy

func (in *LokiRule) DeepCopy() *LokiRule

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

func (*LokiRule) DeepCopyInto

func (in *LokiRule) DeepCopyInto(out *LokiRule)

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

func (*LokiRule) DeepCopyObject

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

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

func (*LokiRule) SetupWebhookWithManager

func (r *LokiRule) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*LokiRule) ValidateCreate

func (r *LokiRule) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*LokiRule) ValidateDelete

func (r *LokiRule) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*LokiRule) ValidateExpressions

func (lokiRule *LokiRule) ValidateExpressions() (*LokiRuleSpec, error)

ValidateExpressions validates the expressions of the rules

func (*LokiRule) ValidateUpdate

func (r *LokiRule) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type LokiRuleGroup

type LokiRuleGroup struct {
	Interval string           `json:"interval,omitempty" yaml:"interval,omitempty"`
	Name     string           `json:"name,omitempty" yaml:"name"`
	Rules    []*LokiGroupRule `json:"rules,omitempty" yaml:"rules"`
}

func (*LokiRuleGroup) DeepCopy

func (in *LokiRuleGroup) DeepCopy() *LokiRuleGroup

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

func (*LokiRuleGroup) DeepCopyInto

func (in *LokiRuleGroup) DeepCopyInto(out *LokiRuleGroup)

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

type LokiRuleList

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

LokiRuleList contains a list of LokiRule

func (*LokiRuleList) DeepCopy

func (in *LokiRuleList) DeepCopy() *LokiRuleList

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

func (*LokiRuleList) DeepCopyInto

func (in *LokiRuleList) DeepCopyInto(out *LokiRuleList)

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

func (*LokiRuleList) DeepCopyObject

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

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

type LokiRuleSpec

type LokiRuleSpec struct {
	Groups []*LokiRuleGroup `json:"groups,omitempty" yaml:"groups"`
}

LokiRuleSpec defines the desired state of LokiRule

func (*LokiRuleSpec) DeepCopy

func (in *LokiRuleSpec) DeepCopy() *LokiRuleSpec

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

func (*LokiRuleSpec) DeepCopyInto

func (in *LokiRuleSpec) DeepCopyInto(out *LokiRuleSpec)

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

type LokiRuleStatus

type LokiRuleStatus struct {
	Valid   bool   `json:"valid"`
	Message string `json:"message,omitempty"`
}

LokiRuleStatus defines the observed state of LokiRule

func (*LokiRuleStatus) DeepCopy

func (in *LokiRuleStatus) DeepCopy() *LokiRuleStatus

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

func (*LokiRuleStatus) DeepCopyInto

func (in *LokiRuleStatus) DeepCopyInto(out *LokiRuleStatus)

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