v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the vault v1alpha1 API group +kubebuilder:object:generate=true +groupName=vault.ricfeatherstone

Index

Constants

This section is empty.

Variables

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

type Capability string

Capability +kubebuilder:validation:Enum=create;read;update;delete;list

type Policy

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

	Spec   PolicySpec   `json:"spec,omitempty"`
	Status PolicyStatus `json:"status,omitempty"`
}

Policy is the Schema for the policies API

func (*Policy) DeepCopy

func (in *Policy) DeepCopy() *Policy

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

func (*Policy) DeepCopyInto

func (in *Policy) DeepCopyInto(out *Policy)

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

func (*Policy) DeepCopyObject

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

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

type PolicyList

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

PolicyList contains a list of Policy

func (*PolicyList) DeepCopy

func (in *PolicyList) DeepCopy() *PolicyList

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

func (*PolicyList) DeepCopyInto

func (in *PolicyList) DeepCopyInto(out *PolicyList)

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

func (*PolicyList) DeepCopyObject

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

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

type PolicyRequest

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

	Spec   PolicyRequestSpec   `json:"spec,omitempty"`
	Status PolicyRequestStatus `json:"status,omitempty"`
}

PolicyRequest is the Schema for the policyrequests API

func (*PolicyRequest) DeepCopy

func (in *PolicyRequest) DeepCopy() *PolicyRequest

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

func (*PolicyRequest) DeepCopyInto

func (in *PolicyRequest) DeepCopyInto(out *PolicyRequest)

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

func (*PolicyRequest) DeepCopyObject

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

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

type PolicyRequestList

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

PolicyRequestList contains a list of PolicyRequest

func (*PolicyRequestList) DeepCopy

func (in *PolicyRequestList) DeepCopy() *PolicyRequestList

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

func (*PolicyRequestList) DeepCopyInto

func (in *PolicyRequestList) DeepCopyInto(out *PolicyRequestList)

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

func (*PolicyRequestList) DeepCopyObject

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

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

type PolicyRequestSpec

type PolicyRequestSpec struct {
	// ApplicationID identifies the application the authorisation request is for.
	ApplicationID string `json:"applicationID"`
	// Policies is the list of policies being requested
	Policies []string `json:"policies"`
}

PolicyRequestSpec defines the desired state of PolicyRequest

func (*PolicyRequestSpec) DeepCopy

func (in *PolicyRequestSpec) DeepCopy() *PolicyRequestSpec

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

func (*PolicyRequestSpec) DeepCopyInto

func (in *PolicyRequestSpec) DeepCopyInto(out *PolicyRequestSpec)

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

type PolicyRequestStatus

type PolicyRequestStatus struct {
	// Approved policies
	Approved []string `json:"approved"`
	// Unapproved policies
	Unapproved []string `json:"unapproved"`
	// Conditions represent the latest available observations of an object's state
	Conditions []metav1.Condition `json:"conditions"`
}

PolicyRequestStatus defines the observed state of PolicyRequest

func (*PolicyRequestStatus) DeepCopy

func (in *PolicyRequestStatus) DeepCopy() *PolicyRequestStatus

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

func (*PolicyRequestStatus) DeepCopyInto

func (in *PolicyRequestStatus) DeepCopyInto(out *PolicyRequestStatus)

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

type PolicyRule

type PolicyRule struct {
	// Description of the PolicyRule.
	Description string `json:"description"`
	// Path the PolicyRule applies to.
	Path string `json:"path"`
	// Capabilities the PolicyRule grants.
	Capabilities []Capability `json:"capabilities"`
}

func (*PolicyRule) DeepCopy

func (in *PolicyRule) DeepCopy() *PolicyRule

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

func (*PolicyRule) DeepCopyInto

func (in *PolicyRule) DeepCopyInto(out *PolicyRule)

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

type PolicySpec

type PolicySpec struct {
	// Grantees with access to use the Policy.
	Grantees []string `json:"grantees"`
	// Rules for the Policy.
	Rules []PolicyRule `json:"rules"`
}

PolicySpec defines the desired state of Policy

func (*PolicySpec) DeepCopy

func (in *PolicySpec) DeepCopy() *PolicySpec

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

func (*PolicySpec) DeepCopyInto

func (in *PolicySpec) DeepCopyInto(out *PolicySpec)

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

type PolicyStatus

type PolicyStatus struct {
	// Conditions represent the latest available observations of an object's state
	Conditions []metav1.Condition `json:"conditions"`
}

PolicyStatus defines the observed state of Policy

func (*PolicyStatus) DeepCopy

func (in *PolicyStatus) DeepCopy() *PolicyStatus

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

func (*PolicyStatus) DeepCopyInto

func (in *PolicyStatus) DeepCopyInto(out *PolicyStatus)

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