v1alpha3

package
v0.14.5-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName    = "heimdall.dadrus.github.com"
	GroupVersion = "v1alpha3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	RuleSetRepository(namespace string) RuleSetRepository
}

func NewClient

func NewClient(conf *rest.Config) (Client, error)

type ConditionReason

type ConditionReason string
const (
	ConditionRuleSetActive           ConditionReason = "RuleSetActive"
	ConditionRuleSetActivationFailed ConditionReason = "RuleSetActivationFailed"
	ConditionRuleSetUnloaded         ConditionReason = "RuleSetUnloaded"
	ConditionRuleSetUnloadingFailed  ConditionReason = "RuleSetUnloadingFailed"
	ConditionControllerStopped       ConditionReason = "ControllerStopped"
)

type Patch

type Patch interface {
	ResourceName() string
	ResourceNamespace() string
	Type() types.PatchType
	Data() ([]byte, error)
}

func NewJSONPatch

func NewJSONPatch(from, to object, withOptimisticLock bool) Patch

type RuleSet

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

	Spec   RuleSetSpec   `json:"spec"`
	Status RuleSetStatus `json:"status"`
}

+kubebuilder:object:generate=true +kubebuilder:object:root=true

func (*RuleSet) DeepCopy

func (in *RuleSet) DeepCopy() *RuleSet

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

func (*RuleSet) DeepCopyInto

func (in *RuleSet) DeepCopyInto(out *RuleSet)

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

func (*RuleSet) DeepCopyObject

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

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

type RuleSetList

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

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

+kubebuilder:object:generate=true +kubebuilder:object:root=true

func (*RuleSetList) DeepCopy

func (in *RuleSetList) DeepCopy() *RuleSetList

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

func (*RuleSetList) DeepCopyInto

func (in *RuleSetList) DeepCopyInto(out *RuleSetList)

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

func (*RuleSetList) DeepCopyObject

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

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

type RuleSetRepository

type RuleSetRepository interface {
	List(ctx context.Context, opts metav1.ListOptions) (*RuleSetList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Get(ctx context.Context, key types.NamespacedName, opts metav1.GetOptions) (*RuleSet, error)
	PatchStatus(ctx context.Context, patch Patch, opts metav1.PatchOptions) (*RuleSet, error)
}

type RuleSetSpec

type RuleSetSpec struct {
	AuthClassName string        `json:"authClassName"` //nolint:tagliatelle
	Rules         []config.Rule `json:"rules"`
}

+kubebuilder:object:generate=true

func (*RuleSetSpec) DeepCopy

func (in *RuleSetSpec) DeepCopy() *RuleSetSpec

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

func (*RuleSetSpec) DeepCopyInto

func (in *RuleSetSpec) DeepCopyInto(out *RuleSetSpec)

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

type RuleSetStatus

type RuleSetStatus struct {
	ActiveIn   string             `json:"activeIn"` // nolint: tagliatelle
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

+kubebuilder:object:generate=true

func (*RuleSetStatus) DeepCopy

func (in *RuleSetStatus) DeepCopy() *RuleSetStatus

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

func (*RuleSetStatus) DeepCopyInto

func (in *RuleSetStatus) DeepCopyInto(out *RuleSetStatus)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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