Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=research.ibm.com
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ResourceProtectionProfile
- func (in *ResourceProtectionProfile) DeepCopy() *ResourceProtectionProfile
- func (in *ResourceProtectionProfile) DeepCopyInto(out *ResourceProtectionProfile)
- func (in *ResourceProtectionProfile) DeepCopyObject() runtime.Object
- func (self *ResourceProtectionProfile) IsEmpty() bool
- func (self *ResourceProtectionProfile) Match(reqFields map[string]string) (bool, *protect.Rule)
- func (self *ResourceProtectionProfile) Update(reqFields map[string]string, reason string, matchedRule *protect.Rule)
- type ResourceProtectionProfileList
- type ResourceProtectionProfileSpec
- type ResourceProtectionProfileStatus
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: rpp.GroupName, Version: "v1alpha1"} )
Functions ¶
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 ¶
func (in *ResourceProtectionProfile) DeepCopy() *ResourceProtectionProfile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceProtectionProfile.
func (*ResourceProtectionProfile) DeepCopyInto ¶
func (in *ResourceProtectionProfile) DeepCopyInto(out *ResourceProtectionProfile)
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
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 ¶
func (in *ResourceProtectionProfileList) DeepCopy() *ResourceProtectionProfileList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceProtectionProfileList.
func (*ResourceProtectionProfileList) DeepCopyInto ¶
func (in *ResourceProtectionProfileList) DeepCopyInto(out *ResourceProtectionProfileList)
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 ¶
func (in *ResourceProtectionProfileSpec) DeepCopy() *ResourceProtectionProfileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceProtectionProfileSpec.
func (*ResourceProtectionProfileSpec) DeepCopyInto ¶
func (in *ResourceProtectionProfileSpec) DeepCopyInto(out *ResourceProtectionProfileSpec)
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 ¶
func (in *ResourceProtectionProfileStatus) DeepCopy() *ResourceProtectionProfileStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceProtectionProfileStatus.
func (*ResourceProtectionProfileStatus) DeepCopyInto ¶
func (in *ResourceProtectionProfileStatus) DeepCopyInto(out *ResourceProtectionProfileStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.