v1alpha1

package
v0.0.0-...-9889339 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the security v1alpha1 API group +kubebuilder:object:generate=true +groupName=security.cript.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "security.cript.dev", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Declaration

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

	Spec   DeclarationSpec   `json:"spec,omitempty"`
	Status DeclarationStatus `json:"status,omitempty"`
}

Declaration is the Schema for the declarations API

func (*Declaration) DeepCopy

func (in *Declaration) DeepCopy() *Declaration

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

func (*Declaration) DeepCopyInto

func (in *Declaration) DeepCopyInto(out *Declaration)

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

func (*Declaration) DeepCopyObject

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

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

type DeclarationList

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

DeclarationList contains a list of Declaration

func (*DeclarationList) DeepCopy

func (in *DeclarationList) DeepCopy() *DeclarationList

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

func (*DeclarationList) DeepCopyInto

func (in *DeclarationList) DeepCopyInto(out *DeclarationList)

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

func (*DeclarationList) DeepCopyObject

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

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

type DeclarationRef

type DeclarationRef struct {
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

func (*DeclarationRef) DeepCopy

func (in *DeclarationRef) DeepCopy() *DeclarationRef

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

func (*DeclarationRef) DeepCopyInto

func (in *DeclarationRef) DeepCopyInto(out *DeclarationRef)

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

type DeclarationSpec

type DeclarationSpec struct {

	// Vulnerabilities to ignore
	Ignore []string `json:"ignore,omitempty"`

	// Criteria for when a scan should be marked as failed
	FailurePolicy string `json:"failurePolicy,omitempty"`

	Manifest Manifest `json:"manifest,omitempty"`
}

DeclarationSpec defines the desired state of Declaration

func (*DeclarationSpec) DeepCopy

func (in *DeclarationSpec) DeepCopy() *DeclarationSpec

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

func (*DeclarationSpec) DeepCopyInto

func (in *DeclarationSpec) DeepCopyInto(out *DeclarationSpec)

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

type DeclarationStatus

type DeclarationStatus struct {
}

DeclarationStatus defines the observed state of Declaration

func (*DeclarationStatus) DeepCopy

func (in *DeclarationStatus) DeepCopy() *DeclarationStatus

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

func (*DeclarationStatus) DeepCopyInto

func (in *DeclarationStatus) DeepCopyInto(out *DeclarationStatus)

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

type Manifest

type Manifest struct {
	Rules []ManifestRule `json:"rules,omitempty"`
}

func (*Manifest) DeepCopy

func (in *Manifest) DeepCopy() *Manifest

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

func (*Manifest) DeepCopyInto

func (in *Manifest) DeepCopyInto(out *Manifest)

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

type ManifestRule

type ManifestRule struct {
	Key         string   `json:"key"`
	Equals      string   `json:"equals,omitempty"`
	OneOf       []string `json:"oneOf,omitempty"`
	ArrayEquals []string `json:"arrayEquals,omitempty"`
}

func (*ManifestRule) DeepCopy

func (in *ManifestRule) DeepCopy() *ManifestRule

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

func (*ManifestRule) DeepCopyInto

func (in *ManifestRule) DeepCopyInto(out *ManifestRule)

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

type Scan

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

	Spec   ScanSpec   `json:"spec,omitempty"`
	Status ScanStatus `json:"status,omitempty"`
}

Scan is the Schema for the scans API

func (*Scan) DeepCopy

func (in *Scan) DeepCopy() *Scan

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

func (*Scan) DeepCopyInto

func (in *Scan) DeepCopyInto(out *Scan)

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

func (*Scan) DeepCopyObject

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

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

type ScanList

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

ScanList contains a list of Scan

func (*ScanList) DeepCopy

func (in *ScanList) DeepCopy() *ScanList

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

func (*ScanList) DeepCopyInto

func (in *ScanList) DeepCopyInto(out *ScanList)

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

func (*ScanList) DeepCopyObject

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

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

type ScanSpec

type ScanSpec struct {
	ImageUri string `json:"imageUri,omitempty"`

	// Reference to the declaration to validate packages during a scan
	DeclarationRef DeclarationRef `json:"declarationRef,omitempty"`

	// For private images, we'll need a secretRef to use for pulling them
	ImagePullSecretsRef v1.SecretReference `json:"imagePullSecretsRef,omitempty"`
}

ScanSpec defines the desired state of Scan

func (*ScanSpec) DeepCopy

func (in *ScanSpec) DeepCopy() *ScanSpec

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

func (*ScanSpec) DeepCopyInto

func (in *ScanSpec) DeepCopyInto(out *ScanSpec)

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

type ScanStatus

type ScanStatus struct {
	State string `json:"state,omitempty"`
	Job   string `json:"job,omitempty"`
}

ScanStatus defines the observed state of Scan

func (*ScanStatus) DeepCopy

func (in *ScanStatus) DeepCopy() *ScanStatus

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

func (*ScanStatus) DeepCopyInto

func (in *ScanStatus) DeepCopyInto(out *ScanStatus)

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