Documentation ¶
Index ¶
Constants ¶
const ( CRDGroup string = "cmsnr.com" CRDVersion string = "v1alpha1" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(BuildScheme) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}
Functions ¶
func BuildScheme ¶
Types ¶
type OpaMessage ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpaPolicy.
func (*OpaPolicy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OpaPolicy) DeepCopyObject ¶
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
}