v1

package
v0.0.0-...-4840c55 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the cascading v1 API group +kubebuilder:object:generate=true +groupName=cascading.securecodebox.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cascading.securecodebox.io", Version: "v1"}

	// 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 CascadingRule

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

	Spec   CascadingRuleSpec   `json:"spec,omitempty"`
	Status CascadingRuleStatus `json:"status,omitempty"`
}

CascadingRule is the Schema for the cascadingrules API

func (*CascadingRule) DeepCopy

func (in *CascadingRule) DeepCopy() *CascadingRule

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

func (*CascadingRule) DeepCopyInto

func (in *CascadingRule) DeepCopyInto(out *CascadingRule)

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

func (*CascadingRule) DeepCopyObject

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

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

type CascadingRuleList

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

CascadingRuleList contains a list of CascadingRule

func (*CascadingRuleList) DeepCopy

func (in *CascadingRuleList) DeepCopy() *CascadingRuleList

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

func (*CascadingRuleList) DeepCopyInto

func (in *CascadingRuleList) DeepCopyInto(out *CascadingRuleList)

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

func (*CascadingRuleList) DeepCopyObject

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

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

type CascadingRuleSpec

type CascadingRuleSpec struct {

	// Matches defines to which findings the CascadingRule should apply
	Matches Matches `json:"matches"`
	// ScanSpec defines how the cascaded scan should look like
	ScanSpec executionv1.ScanSpec `json:"scanSpec"`
}

CascadingRuleSpec defines the desired state of CascadingRule

func (*CascadingRuleSpec) DeepCopy

func (in *CascadingRuleSpec) DeepCopy() *CascadingRuleSpec

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

func (*CascadingRuleSpec) DeepCopyInto

func (in *CascadingRuleSpec) DeepCopyInto(out *CascadingRuleSpec)

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

type CascadingRuleStatus

type CascadingRuleStatus struct {
}

CascadingRuleStatus defines the observed state of CascadingRule

func (*CascadingRuleStatus) DeepCopy

func (in *CascadingRuleStatus) DeepCopy() *CascadingRuleStatus

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

func (*CascadingRuleStatus) DeepCopyInto

func (in *CascadingRuleStatus) DeepCopyInto(out *CascadingRuleStatus)

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

type Matches

type Matches struct {
	AnyOf []MatchesRule `json:"anyOf,omitempty"`
}

Matches defines how matching rules should be combined. Do all have to match? Or just One?

func (*Matches) DeepCopy

func (in *Matches) DeepCopy() *Matches

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

func (*Matches) DeepCopyInto

func (in *Matches) DeepCopyInto(out *Matches)

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

type MatchesRule

type MatchesRule struct {
	Name        string                        `json:"name,omitempty"`
	Category    string                        `json:"category,omitempty"`
	Description string                        `json:"description,omitempty"`
	Location    string                        `json:"location,omitempty"`
	Severity    string                        `json:"severity,omitempty"`
	OsiLayer    string                        `json:"osi_layer,omitempty"`
	Attributes  map[string]intstr.IntOrString `json:"attributes,omitempty"`
}

MatchesRule is a generic map which is used to model the structure of a finding for which the CascadingRule should take effect

func (*MatchesRule) DeepCopy

func (in *MatchesRule) DeepCopy() *MatchesRule

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

func (*MatchesRule) DeepCopyInto

func (in *MatchesRule) DeepCopyInto(out *MatchesRule)

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