v1alpha1

package
v0.0.0-...-320551d Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=research.ibm.com

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: rpp.GroupName, Version: "v1alpha1"}
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ResourceProtectionProfile

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

	Spec   ResourceProtectionProfileSpec   `json:"spec,omitempty"`
	Status ResourceProtectionProfileStatus `json:"status,omitempty"`
}

EnforcePolicy is the CRD. Use this command to generate deepcopy for it: ./k8s.io/code-generator/generate-groups.sh all github.com/IBM/pas-client-go/pkg/crd/packageadmissionsignature/v1/apis github.com/IBM/pas-client-go/pkg/crd/ "packageadmissionsignature:v1" For more details of code-generator, please visit https://github.com/kubernetes/code-generator +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object ResourceProtectionProfile is the CRD. Use this command to generate deepcopy for it:

func (*ResourceProtectionProfile) DeepCopy

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

func (*ResourceProtectionProfile) DeepCopyInto

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

func (*ResourceProtectionProfile) DeepCopyObject

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

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

func (*ResourceProtectionProfile) IsEmpty

func (self *ResourceProtectionProfile) IsEmpty() bool

func (*ResourceProtectionProfile) Match

func (self *ResourceProtectionProfile) Match(reqFields map[string]string) (bool, *protect.Rule)

func (*ResourceProtectionProfile) Update

func (self *ResourceProtectionProfile) Update(reqFields map[string]string, reason string, matchedRule *protect.Rule)

type ResourceProtectionProfileList

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

ResourceProtectionProfileList contains a list of ResourceProtectionProfile

func (*ResourceProtectionProfileList) DeepCopy

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

func (*ResourceProtectionProfileList) DeepCopyInto

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

func (*ResourceProtectionProfileList) DeepCopyObject

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

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

type ResourceProtectionProfileSpec

type ResourceProtectionProfileSpec struct {
	Disabled bool `json:"disabled,omitempty"`
	Delete   bool `json:"delete,omitempty"`

	Rules                []*protect.Rule                 `json:"rules,omitempty"`
	IgnoreServiceAccount []*protect.ServieAccountPattern `json:"ignoreServiceAccount,omitempty"`
	ProtectAttrs         []*protect.AttrsPattern         `json:"protectAttrs,omitempty"`
	UnprotectAttrs       []*protect.AttrsPattern         `json:"unprotectAttrs,omitempty"`
	IgnoreAttrs          []*protect.AttrsPattern         `json:"ignoreAttrs,omitempty"`
}

ResourceProtectionProfileSpec defines the desired state of AppEnforcePolicy

func (*ResourceProtectionProfileSpec) DeepCopy

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

func (*ResourceProtectionProfileSpec) DeepCopyInto

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

type ResourceProtectionProfileStatus

type ResourceProtectionProfileStatus struct {
	Results []*protect.Result `json:"deniedRequests,omitempty"`
}

ResourceProtectionProfileStatus defines the observed state of AppEnforcePolicy

func (*ResourceProtectionProfileStatus) DeepCopy

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

func (*ResourceProtectionProfileStatus) DeepCopyInto

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