v1alpha1

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ProfilePartialLabel = "spo.x-k8s.io/partial"

Variables

This section is empty.

Functions

func IsDisabled added in v0.8.1

func IsDisabled(prfSpec *SpecBase) bool

func IsPartial added in v0.5.0

func IsPartial(obj metav1.Object) bool

func IsReconcilable added in v0.8.1

func IsReconcilable(prfBase SecurityProfileBase) bool

func ListProfilesByRecording added in v0.5.0

func ListProfilesByRecording(
	ctx context.Context,
	cli client.Client,
	recordingName string,
	recordingNamespace string,
	list client.ObjectList,
) ([]metav1.Object, error)

Types

type SecurityProfileBase added in v0.5.0

type SecurityProfileBase interface {
	client.Object

	ListProfilesByRecording(ctx context.Context, cli client.Client, recording string) ([]metav1.Object, error)
	IsPartial() bool
	IsDisabled() bool
	IsReconcilable() bool
}

type SpecBase added in v0.8.1

type SpecBase struct {
	// Whether the profile is disabled and should be skipped during reconciliation.
	// +optional
	// +kubebuilder:default=false
	Disabled bool `json:"disabled,omitempty"`
}

SpecBase contains common attributes for a profile's spec.

type StatusBase

type StatusBase struct {
	spodv1alpha1.ConditionedStatus `json:",inline"`
	Status                         secprofnodestatusv1alpha1.ProfileState `json:"status,omitempty"`
}

StatusBase contains common attributes for a profile's status.

func (*StatusBase) DeepCopy

func (in *StatusBase) DeepCopy() *StatusBase

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

func (*StatusBase) DeepCopyInto

func (in *StatusBase) DeepCopyInto(out *StatusBase)

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

type StatusBaseUser

type StatusBaseUser interface {
	metav1.Object
	runtime.Object
	// GetStatusBase gets an instance of the Base status that the
	// profiles share
	GetStatusBase() *StatusBase
	// DeepCopyToStatusBaseIf exposes an interface to call deep copy
	// on this StatusBaseUser interface
	DeepCopyToStatusBaseIf() StatusBaseUser
	// Sets the needed status that's specific to the profile
	// implementation
	SetImplementationStatus()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL