v1alpha1

package
v0.0.0-...-98b4640 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=seccomp.imjasonh.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder builds a scheme with the types known to the package.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme adds the types known to this package to an existing schema.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: seccomp.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

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 Action

type Action string
const (
	ActionLog   Action = "SCMP_ACT_LOG"
	ActionErr   Action = "SCMP_ACT_ERRNO"
	ActionAllow Action = "SCMP_ACT_ALLOW"
)

func (Action) Valid

func (a Action) Valid() error

type SeccompProfile

type SeccompProfile struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the desired state of the SeccompProfile (from the client).
	// +optional
	Spec SeccompProfileSpec `json:"spec,omitempty"`

	// Status communicates the observed state of the SeccompProfile.
	// +optional
	Status SeccompProfileStatus `json:"status,omitempty"`
}

SeccompProfile represents a seccomp profile to distribute to nodes.

+genclient +genclient:nonNamespaced +genreconciler +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*SeccompProfile) DeepCopy

func (in *SeccompProfile) DeepCopy() *SeccompProfile

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

func (*SeccompProfile) DeepCopyInto

func (in *SeccompProfile) DeepCopyInto(out *SeccompProfile)

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

func (*SeccompProfile) DeepCopyObject

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

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

func (*SeccompProfile) GetConditionSet

func (sp *SeccompProfile) GetConditionSet() apis.ConditionSet

GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.

func (*SeccompProfile) GetGroupVersionKind

func (sp *SeccompProfile) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind implements kmeta.OwnerRefable

func (*SeccompProfile) GetStatus

func (sp *SeccompProfile) GetStatus() *duckv1.Status

GetStatus retrieves the status of the resource. Implements the KRShaped interface.

func (*SeccompProfile) SetDefaults

func (sp *SeccompProfile) SetDefaults(ctx context.Context)

SetDefaults implements apis.Defaultable

func (*SeccompProfile) SupportedVerbs

func (sp *SeccompProfile) SupportedVerbs() []admissionregistrationv1.OperationType

SupportedVerbs returns the operations that validation should be called for.

func (*SeccompProfile) Validate

func (sp *SeccompProfile) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type SeccompProfileJSON

type SeccompProfileJSON struct {
	DefaultAction Action                  `json:"defaultAction"`
	Architectures []string                `json:"architectures,omitempty"`
	Syscalls      []SeccompProfileSyscall `json:"syscalls,omitempty"`
}

func (*SeccompProfileJSON) DeepCopy

func (in *SeccompProfileJSON) DeepCopy() *SeccompProfileJSON

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

func (*SeccompProfileJSON) DeepCopyInto

func (in *SeccompProfileJSON) DeepCopyInto(out *SeccompProfileJSON)

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

type SeccompProfileList

type SeccompProfileList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []SeccompProfile `json:"items"`
}

SeccompProfileList is a list of SeccompProfile resources

+genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*SeccompProfileList) DeepCopy

func (in *SeccompProfileList) DeepCopy() *SeccompProfileList

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

func (*SeccompProfileList) DeepCopyInto

func (in *SeccompProfileList) DeepCopyInto(out *SeccompProfileList)

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

func (*SeccompProfileList) DeepCopyObject

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

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

type SeccompProfileSpec

type SeccompProfileSpec struct {
	// Contents contains the contents of the policy as JSON.
	Contents *SeccompProfileJSON `json:"contents,omitempty"`
}

SeccompProfileSpec holds the desired state of the SeccompProfileSpec (from the client).

func (*SeccompProfileSpec) DeepCopy

func (in *SeccompProfileSpec) DeepCopy() *SeccompProfileSpec

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

func (*SeccompProfileSpec) DeepCopyInto

func (in *SeccompProfileSpec) DeepCopyInto(out *SeccompProfileSpec)

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

func (*SeccompProfileSpec) Validate

func (spec *SeccompProfileSpec) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type SeccompProfileStatus

type SeccompProfileStatus struct {
	duckv1.Status `json:",inline"`
}

SeccompProfileStatus communicates the observed state of the SeccompProfile (from the controller).

func (*SeccompProfileStatus) DeepCopy

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

func (*SeccompProfileStatus) DeepCopyInto

func (in *SeccompProfileStatus) DeepCopyInto(out *SeccompProfileStatus)

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

func (*SeccompProfileStatus) InitializeConditions

func (status *SeccompProfileStatus) InitializeConditions()

InitializeConditions sets the initial values to the conditions.

type SeccompProfileSyscall

type SeccompProfileSyscall struct {
	Name   string   `json:"name"`
	Names  []string `json:"names,omitempty"`
	Action Action   `json:"action"`
	Args   []string `json:"args,omitempty"`
}

func (*SeccompProfileSyscall) DeepCopy

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

func (*SeccompProfileSyscall) DeepCopyInto

func (in *SeccompProfileSyscall) DeepCopyInto(out *SeccompProfileSyscall)

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