Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=seccomp.imjasonh.dev
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Action
- type SeccompProfile
- func (in *SeccompProfile) DeepCopy() *SeccompProfile
- func (in *SeccompProfile) DeepCopyInto(out *SeccompProfile)
- func (in *SeccompProfile) DeepCopyObject() runtime.Object
- func (sp *SeccompProfile) GetConditionSet() apis.ConditionSet
- func (sp *SeccompProfile) GetGroupVersionKind() schema.GroupVersionKind
- func (sp *SeccompProfile) GetStatus() *duckv1.Status
- func (sp *SeccompProfile) SetDefaults(ctx context.Context)
- func (sp *SeccompProfile) SupportedVerbs() []admissionregistrationv1.OperationType
- func (sp *SeccompProfile) Validate(ctx context.Context) *apis.FieldError
- type SeccompProfileJSON
- type SeccompProfileList
- type SeccompProfileSpec
- type SeccompProfileStatus
- type SeccompProfileSyscall
Constants ¶
This section is empty.
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: seccomp.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
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 ¶
SeccompProfileStatus communicates the observed state of the SeccompProfile (from the controller).
func (*SeccompProfileStatus) DeepCopy ¶
func (in *SeccompProfileStatus) DeepCopy() *SeccompProfileStatus
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 ¶
func (in *SeccompProfileSyscall) DeepCopy() *SeccompProfileSyscall
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.