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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
func (*Rule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Rule) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleList.
func (*RuleList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RuleList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleSpec.
func (*RuleSpec) DeepCopyInto ¶
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.