v1alpha1

package
v0.0.0-...-9b5a78d Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=apis.integrityverifier.io

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: rsp.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 ProfileStatusDetail

type ProfileStatusDetail struct {
	Request *profile.Request `json:"request,omitempty"`
	Count   int              `json:"count,omitempty"`
	History []profile.Result `json:"history,omitempty"`
}

func (*ProfileStatusDetail) DeepCopy

func (in *ProfileStatusDetail) DeepCopy() *ProfileStatusDetail

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

func (*ProfileStatusDetail) DeepCopyInto

func (in *ProfileStatusDetail) DeepCopyInto(out *ProfileStatusDetail)

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

type ResourceSigningProfile

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

	Spec   ResourceSigningProfileSpec   `json:"spec,omitempty"`
	Status ResourceSigningProfileStatus `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 ResourceSigningProfile is the CRD. Use this command to generate deepcopy for it:

func (*ResourceSigningProfile) DeepCopy

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

func (*ResourceSigningProfile) DeepCopyInto

func (in *ResourceSigningProfile) DeepCopyInto(out *ResourceSigningProfile)

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

func (*ResourceSigningProfile) DeepCopyObject

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

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

func (ResourceSigningProfile) IgnoreAttrs

func (self ResourceSigningProfile) IgnoreAttrs(reqFields map[string]string) []*profile.AttrsPattern

func (ResourceSigningProfile) IsEmpty

func (self ResourceSigningProfile) IsEmpty() bool

func (ResourceSigningProfile) Kustomize

func (self ResourceSigningProfile) Kustomize(reqFields map[string]string) []*profile.KustomizePattern

func (ResourceSigningProfile) Match

func (self ResourceSigningProfile) Match(reqFields map[string]string) (bool, *profile.Rule)

func (ResourceSigningProfile) Merge

func (ResourceSigningProfile) ProtectAttrs

func (self ResourceSigningProfile) ProtectAttrs(reqFields map[string]string) []*profile.AttrsPattern

func (ResourceSigningProfile) UnprotectAttrs

func (self ResourceSigningProfile) UnprotectAttrs(reqFields map[string]string) []*profile.AttrsPattern

func (*ResourceSigningProfile) UpdateStatus

func (self *ResourceSigningProfile) UpdateStatus(request *profile.Request, errMsg string) *ResourceSigningProfile

type ResourceSigningProfileList

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

ResourceSigningProfileList contains a list of ResourceSigningProfile

func (*ResourceSigningProfileList) DeepCopy

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

func (*ResourceSigningProfileList) DeepCopyInto

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

func (*ResourceSigningProfileList) DeepCopyObject

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

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

type ResourceSigningProfileSpec

type ResourceSigningProfileSpec struct {
	Disabled bool `json:"disabled,omitempty"`
	// `TargetNamespaceSelector` is used only for profile in IV NS
	TargetNamespaceSelector *common.NamespaceSelector   `json:"targetNamespaceSelector,omitempty"`
	ProtectRules            []*profile.Rule             `json:"protectRules,omitempty"`
	IgnoreRules             []*profile.Rule             `json:"ignoreRules,omitempty"`
	ForceCheckRules         []*profile.Rule             `json:"forceCheckRules,omitempty"`
	KustomizePatterns       []*profile.KustomizePattern `json:"kustomizePatterns,omitempty"`
	ProtectAttrs            []*profile.AttrsPattern     `json:"protectAttrs,omitempty"`
	UnprotectAttrs          []*profile.AttrsPattern     `json:"unprotectAttrs,omitempty"`
	IgnoreAttrs             []*profile.AttrsPattern     `json:"ignoreAttrs,omitempty"`
}

ResourceSigningProfileSpec defines the desired state of AppEnforcePolicy

func (*ResourceSigningProfileSpec) DeepCopy

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

func (*ResourceSigningProfileSpec) DeepCopyInto

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

type ResourceSigningProfileStatus

type ResourceSigningProfileStatus struct {
	Details []ProfileStatusDetail `json:"deniedRequests,omitempty"`
}

ResourceSigningProfileStatus defines the observed state of AppEnforcePolicy

func (*ResourceSigningProfileStatus) DeepCopy

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

func (*ResourceSigningProfileStatus) 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