v1alpha1

package
v0.0.0-...-1599efc Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "witness.testifysec.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 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. +kubebuilder:printcolumn:name="State",type=string,JSONPath=".status.state",description="The state of the policy"

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 PolicyPublicKey

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

	Spec   PolicyPublicKeySpec   `json:"spec,omitempty"`
	Status PolicyPublicKeyStatus `json:"status,omitempty"`
}

PolicyPublicKey is the Schema for the policypublickeys API. +kubebuilder:printcolumn:name="State",type=string,JSONPath=".status.state",description="The state of the publickey"

func (*PolicyPublicKey) DeepCopy

func (in *PolicyPublicKey) DeepCopy() *PolicyPublicKey

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

func (*PolicyPublicKey) DeepCopyInto

func (in *PolicyPublicKey) DeepCopyInto(out *PolicyPublicKey)

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

func (*PolicyPublicKey) DeepCopyObject

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

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

type PolicyPublicKeyList

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

PolicyPublicKeyList contains a list of PolicyPublicKey.

func (*PolicyPublicKeyList) DeepCopy

func (in *PolicyPublicKeyList) DeepCopy() *PolicyPublicKeyList

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

func (*PolicyPublicKeyList) DeepCopyInto

func (in *PolicyPublicKeyList) DeepCopyInto(out *PolicyPublicKeyList)

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

func (*PolicyPublicKeyList) DeepCopyObject

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

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

type PolicyPublicKeySpec

type PolicyPublicKeySpec struct {

	// A base64 encoded public key used to verify Witness Policies.
	PublicKey []byte `json:"public_key"`
}

PolicyPublicKeySpec defines the desired state of PolicyPublicKey.

func (*PolicyPublicKeySpec) DeepCopy

func (in *PolicyPublicKeySpec) DeepCopy() *PolicyPublicKeySpec

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

func (*PolicyPublicKeySpec) DeepCopyInto

func (in *PolicyPublicKeySpec) DeepCopyInto(out *PolicyPublicKeySpec)

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

type PolicyPublicKeyStatus

type PolicyPublicKeyStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	State PublickeyState `json:"state"`
}

PolicyPublicKeyStatus defines the observed state of PolicyPublicKey.

func (*PolicyPublicKeyStatus) DeepCopy

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

func (*PolicyPublicKeyStatus) DeepCopyInto

func (in *PolicyPublicKeyStatus) DeepCopyInto(out *PolicyPublicKeyStatus)

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

type PolicySpec

type PolicySpec struct {

	// Base64 encoded signed Witness Policy to validatee.
	Policy []byte `json:"policy"`
}

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 PolicyState

type PolicyState string

PolicyState describes the current status of a Policy.

const (
	// AppliedPolicy means that the policy has been created and will be enforced.
	AppliedPolicy PolicyState = "Applied"

	// FailedPolicy means that there was an issue applying the policy.
	FailedPolicy PolicyState = "Failed"

	// PendingPolicy means that the policy was created but is not yet applied.
	PendingPolicy PolicyState = "Pending"
)

type PolicyStatus

type PolicyStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	State PolicyState `json:"state,omitempty"`
}

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.

type PublickeyState

type PublickeyState string
const (
	// AppliedPublickey means that the public key has been created and will be enforced.
	AppliedPublickey PublickeyState = "Applied"

	// FailedPublickey means that there was an issue applying the public key.
	FailedPublickey PublickeyState = "Failed"

	// PendingPolicy means that the public key was created but is not yet applied.
	PendingPublickey PublickeyState = "Pending"
)

Jump to

Keyboard shortcuts

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