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 ClusterResourceProtectionProfile
- func (in *ClusterResourceProtectionProfile) DeepCopy() *ClusterResourceProtectionProfile
- func (in *ClusterResourceProtectionProfile) DeepCopyInto(out *ClusterResourceProtectionProfile)
- func (in *ClusterResourceProtectionProfile) DeepCopyObject() runtime.Object
- func (self *ClusterResourceProtectionProfile) IsEmpty() bool
- func (self *ClusterResourceProtectionProfile) Match(reqFields map[string]string) (bool, *protect.Rule)
- func (self *ClusterResourceProtectionProfile) Update(reqFields map[string]string, reason string, matchedRule *protect.Rule)
- type ClusterResourceProtectionProfileList
- type ClusterResourceProtectionProfileSpec
- type ClusterResourceProtectionProfileStatus
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: crpp.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 ClusterResourceProtectionProfile ¶
type ClusterResourceProtectionProfile struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterResourceProtectionProfileSpec `json:"spec,omitempty"` Status ClusterResourceProtectionProfileStatus `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 ClusterResourceProtectionProfile is the CRD. Use this command to generate deepcopy for it:
func (*ClusterResourceProtectionProfile) DeepCopy ¶
func (in *ClusterResourceProtectionProfile) DeepCopy() *ClusterResourceProtectionProfile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceProtectionProfile.
func (*ClusterResourceProtectionProfile) DeepCopyInto ¶
func (in *ClusterResourceProtectionProfile) DeepCopyInto(out *ClusterResourceProtectionProfile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceProtectionProfile) DeepCopyObject ¶
func (in *ClusterResourceProtectionProfile) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterResourceProtectionProfile) IsEmpty ¶
func (self *ClusterResourceProtectionProfile) IsEmpty() bool
type ClusterResourceProtectionProfileList ¶
type ClusterResourceProtectionProfileList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterResourceProtectionProfile `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced ClusterResourceProtectionProfileList contains a list of ClusterResourceProtectionProfile
func (*ClusterResourceProtectionProfileList) DeepCopy ¶
func (in *ClusterResourceProtectionProfileList) DeepCopy() *ClusterResourceProtectionProfileList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceProtectionProfileList.
func (*ClusterResourceProtectionProfileList) DeepCopyInto ¶
func (in *ClusterResourceProtectionProfileList) DeepCopyInto(out *ClusterResourceProtectionProfileList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceProtectionProfileList) DeepCopyObject ¶
func (in *ClusterResourceProtectionProfileList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterResourceProtectionProfileSpec ¶
type ClusterResourceProtectionProfileSpec 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"` }
ClusterResourceProtectionProfileSpec defines the desired state of AppEnforcePolicy
func (*ClusterResourceProtectionProfileSpec) DeepCopy ¶
func (in *ClusterResourceProtectionProfileSpec) DeepCopy() *ClusterResourceProtectionProfileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceProtectionProfileSpec.
func (*ClusterResourceProtectionProfileSpec) DeepCopyInto ¶
func (in *ClusterResourceProtectionProfileSpec) DeepCopyInto(out *ClusterResourceProtectionProfileSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterResourceProtectionProfileStatus ¶
type ClusterResourceProtectionProfileStatus struct {
Results []*protect.Result `json:"deniedRequests,omitempty"`
}
ClusterResourceProtectionProfileStatus defines the observed state of AppEnforcePolicy
func (*ClusterResourceProtectionProfileStatus) DeepCopy ¶
func (in *ClusterResourceProtectionProfileStatus) DeepCopy() *ClusterResourceProtectionProfileStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceProtectionProfileStatus.
func (*ClusterResourceProtectionProfileStatus) DeepCopyInto ¶
func (in *ClusterResourceProtectionProfileStatus) DeepCopyInto(out *ClusterResourceProtectionProfileStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.