v1

package
v0.0.0-...-70b66e7 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=apis.integrityshield.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: miprofile.GroupName, Version: "v1"}
)

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 Kinds

type Kinds struct {
	Kinds     []string `json:"kinds,omitempty"`
	ApiGroups []string `json:"apiGroups,omitempty"`
}

func (*Kinds) DeepCopy

func (in *Kinds) DeepCopy() *Kinds

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

func (*Kinds) DeepCopyInto

func (in *Kinds) DeepCopyInto(out *Kinds)

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

type ManifestIntegrityProfile

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

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

func (*ManifestIntegrityProfile) DeepCopy

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

func (*ManifestIntegrityProfile) DeepCopyInto

func (in *ManifestIntegrityProfile) DeepCopyInto(out *ManifestIntegrityProfile)

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

func (*ManifestIntegrityProfile) DeepCopyObject

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

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

func (*ManifestIntegrityProfile) UpdateStatus

func (self *ManifestIntegrityProfile) UpdateStatus(request admission.Request, errMsg string) *ManifestIntegrityProfile

type ManifestIntegrityProfileList

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

ManifestIntegrityProfileList contains a list of ManifestIntegrityProfile

func (*ManifestIntegrityProfileList) DeepCopy

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

func (*ManifestIntegrityProfileList) DeepCopyInto

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

func (*ManifestIntegrityProfileList) DeepCopyObject

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

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

type ManifestIntegrityProfileSpec

type ManifestIntegrityProfileSpec struct {
	Match      MatchCondition               `json:"match,omitempty"`
	Parameters k8smnfconfig.ParameterObject `json:"parameters,omitempty"`
}

ManifestIntegrityProfileSpec defines the desired state of AppEnforcePolicy

func (*ManifestIntegrityProfileSpec) DeepCopy

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

func (*ManifestIntegrityProfileSpec) DeepCopyInto

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

type ManifestIntegrityProfileStatus

type ManifestIntegrityProfileStatus struct {
	DenyCount  int                `json:"denyCount,omitempty"`
	Violations []*ViolationDetail `json:"violations,omitempty"`
}

ManifestIntegrityProfileStatus defines the observed state of ManifestIntegrityProfile

func (*ManifestIntegrityProfileStatus) DeepCopy

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

func (*ManifestIntegrityProfileStatus) DeepCopyInto

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

type MatchCondition

type MatchCondition struct {
	Kinds              []Kinds               `json:"kinds,omitempty"`
	Namespaces         []string              `json:"namespaces,omitempty"`
	ExcludedNamespaces []string              `json:"excludedNamespaces,omitempty"`
	LabelSelector      *metav1.LabelSelector `json:"labelSelector,omitempty"`
	NamespaceSelector  *metav1.LabelSelector `json:"namespaceSelector,omitempty"`
}

func (*MatchCondition) DeepCopy

func (in *MatchCondition) DeepCopy() *MatchCondition

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

func (*MatchCondition) DeepCopyInto

func (p *MatchCondition) DeepCopyInto(p2 *MatchCondition)

type ViolationDetail

type ViolationDetail struct {
	Namespace string `json:"namespace,omitempty"`
	Kind      string `json:"kind,omitempty"`
	Name      string `json:"name,omitempty"`
	Message   string `json:"message,omitempty"`
	Timestamp string `json:"timestamp,omitempty"`
}

func (*ViolationDetail) DeepCopy

func (in *ViolationDetail) DeepCopy() *ViolationDetail

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

func (*ViolationDetail) DeepCopyInto

func (in *ViolationDetail) DeepCopyInto(out *ViolationDetail)

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