v1alpha1

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the casbin v1alpha1 API group. +kubebuilder:object:generate=true +groupName=casbin.grepplabs.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "casbin.grepplabs.com", 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 Rule

type Rule struct {
	metav1.TypeMeta `json:",inline"`
	// metadata is a standard object metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty,omitzero"`
	// spec defines the desired state of Rule
	// +required
	Spec RuleSpec `json:"spec"`
	// status defines the observed state of Rule
	// +optional
	Status RuleStatus `json:"status,omitempty,omitzero"`
}

Rule is the Schema for the policies API.

func (*Rule) DeepCopy

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

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

func (*Rule) DeepCopyObject

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

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

type RuleList

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

RuleList contains a list of Rule.

func (*RuleList) DeepCopy

func (in *RuleList) DeepCopy() *RuleList

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

func (*RuleList) DeepCopyInto

func (in *RuleList) DeepCopyInto(out *RuleList)

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

func (*RuleList) DeepCopyObject

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

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

type RuleSpec

type RuleSpec struct {
	// Rule type: p, p2, g, g2, ...
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^(p|g)\d*$`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="ptype is immutable"
	PType string `json:"ptype"`

	// Positional parameters v0
	// +kubebuilder:selectablefield:JSONPath=.spec.v0
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="v0 is immutable"
	V0 string `json:"v0,omitempty"`

	// Positional parameters v1
	// +kubebuilder:validation:Pattern=`.*\S.*`
	// +kubebuilder:selectablefield:JSONPath=.spec.v1
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="v1 is immutable"
	V1 string `json:"v1,omitempty"`

	// Positional parameters v2
	// +kubebuilder:selectablefield:JSONPath=.spec.v2
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="v2 is immutable"
	V2 string `json:"v2,omitempty"`

	// Positional parameters v3
	// +kubebuilder:selectablefield:JSONPath=.spec.v3
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="v3 is immutable"
	V3 string `json:"v3,omitempty"`

	// Positional parameters v4
	// +kubebuilder:selectablefield:JSONPath=.spec.v4
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="v4 is immutable"
	V4 string `json:"v4,omitempty"`

	// Positional parameters v5
	// +kubebuilder:selectablefield:JSONPath=.spec.v5
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="v5 is immutable"
	V5 string `json:"v5,omitempty"`
}

RuleSpec defines the desired state of Rule.

func (*RuleSpec) DeepCopy

func (in *RuleSpec) DeepCopy() *RuleSpec

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

func (*RuleSpec) DeepCopyInto

func (in *RuleSpec) DeepCopyInto(out *RuleSpec)

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

type RuleStatus

type RuleStatus struct {
}

RuleStatus defines the observed state of Rule.

func (*RuleStatus) DeepCopy

func (in *RuleStatus) DeepCopy() *RuleStatus

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

func (*RuleStatus) DeepCopyInto

func (in *RuleStatus) DeepCopyInto(out *RuleStatus)

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