v1alpha1

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CRDGroup   string = "cmsnr.com"
	CRDVersion string = "v1alpha1"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(BuildScheme)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

Functions

func BuildScheme

func BuildScheme(scheme *runtime.Scheme) error

Types

type OpaMessage

type OpaMessage struct {
	Method    string
	OpaPolicy OpaPolicy
}

OpaMessage is used by the watcher to inform the client of OPA policy changes

type OpaPolicy

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

	Spec OpaPolicySpec `json:"spec"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object OpaPolicy is the Schema for the OpaPolicy

func (*OpaPolicy) DeepCopy

func (in *OpaPolicy) DeepCopy() *OpaPolicy

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

func (*OpaPolicy) DeepCopyInto

func (in *OpaPolicy) DeepCopyInto(out *OpaPolicy)

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

func (*OpaPolicy) DeepCopyObject

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

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

type OpaPolicyInterface

type OpaPolicyInterface interface {
	List(opts metav1.ListOptions) (*OpaPolicyList, error)
	Get(name string, options metav1.GetOptions) (*OpaPolicy, error)
	Create(*OpaPolicy) (*OpaPolicy, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
}

type OpaPolicyList

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

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object OpaPolicyList contains a list of OpaPolicies

func (*OpaPolicyList) DeepCopy

func (in *OpaPolicyList) DeepCopy() *OpaPolicyList

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

func (*OpaPolicyList) DeepCopyInto

func (in *OpaPolicyList) DeepCopyInto(out *OpaPolicyList)

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

func (*OpaPolicyList) DeepCopyObject

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

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

type OpaPolicySpec

type OpaPolicySpec struct {
	DeploymentName string `json:"deploymentName"`

	PolicyName string `json:"policyName"`

	Policy string `json:"policy"`
}

OpaPolicySpec defines the desired state of the OPAPolicy

type OpaV1Alpha1Client

type OpaV1Alpha1Client struct {
	// contains filtered or unexported fields
}

func NewForConfig

func NewForConfig(c *rest.Config) (*OpaV1Alpha1Client, error)

func (*OpaV1Alpha1Client) OpaPolicies

func (c *OpaV1Alpha1Client) OpaPolicies(namespace string) OpaPolicyInterface

type OpaV1Alpha1Interface

type OpaV1Alpha1Interface interface {
	OpaPolicies(namespace string) OpaPolicyInterface
}

Jump to

Keyboard shortcuts

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