v1alpha1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the compliance-to-policy v1alpha1 API group +kubebuilder:object:generate=true +groupName=compliance-to-policy.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "compliance-to-policy.io", 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 Category

type Category struct {
	Name     string    `json:"name"`
	Controls []Control `json:"controls"`
}

func (*Category) DeepCopy

func (in *Category) DeepCopy() *Category

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

func (*Category) DeepCopyInto

func (in *Category) DeepCopyInto(out *Category)

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

type CheckPolicy

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

	Spec   CheckPolicySpec   `json:"spec,omitempty"`
	Status CheckPolicyStatus `json:"status,omitempty"`
}

CheckPolicy is the Schema for the controlreferences API

func (*CheckPolicy) DeepCopy

func (in *CheckPolicy) DeepCopy() *CheckPolicy

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

func (*CheckPolicy) DeepCopyInto

func (in *CheckPolicy) DeepCopyInto(out *CheckPolicy)

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

func (*CheckPolicy) DeepCopyObject

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

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

type CheckPolicyList

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

CheckPolicyList contains a list of CheckPolicy

func (*CheckPolicyList) DeepCopy

func (in *CheckPolicyList) DeepCopy() *CheckPolicyList

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

func (*CheckPolicyList) DeepCopyInto

func (in *CheckPolicyList) DeepCopyInto(out *CheckPolicyList)

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

func (*CheckPolicyList) DeepCopyObject

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

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

type CheckPolicyObjectTemplate

type CheckPolicyObjectTemplate struct {
	ComplianceType ComplianceType `json:"complianceType,omitempty"`
	// ObjectDefinition defines required fields for the object
	// +kubebuilder:pruning:PreserveUnknownFields
	ObjectDefinition runtime.RawExtension `json:"objectDefinition,omitempty"`
}

func (*CheckPolicyObjectTemplate) DeepCopy

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

func (*CheckPolicyObjectTemplate) DeepCopyInto

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

type CheckPolicySpec

type CheckPolicySpec struct {
	// 'object-templates' is arrays of objects to be checked. It's refered to OCM Configuration Policy.
	ObjectTemplates []CheckPolicyObjectTemplate `json:"object-templates,omitempty"`
}

CheckPolicySpec defines the desired state of CheckPolicy

func (*CheckPolicySpec) DeepCopy

func (in *CheckPolicySpec) DeepCopy() *CheckPolicySpec

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

func (*CheckPolicySpec) DeepCopyInto

func (in *CheckPolicySpec) DeepCopyInto(out *CheckPolicySpec)

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

type CheckPolicyStatus

type CheckPolicyStatus struct {
}

ResultCollectorStatus defines the observed state of CheckPolicy

func (*CheckPolicyStatus) DeepCopy

func (in *CheckPolicyStatus) DeepCopy() *CheckPolicyStatus

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

func (*CheckPolicyStatus) DeepCopyInto

func (in *CheckPolicyStatus) DeepCopyInto(out *CheckPolicyStatus)

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

type ClusterSelectors

type ClusterSelectors struct {
	// 'matchLabels' is a map of {key,value} pairs matching objects by label.
	MatchLabels *map[string]string `json:"matchLabels,omitempty"`
}

ClusterSelector defines the target clusters to which the policy composition is distributed.

func (*ClusterSelectors) DeepCopy

func (in *ClusterSelectors) DeepCopy() *ClusterSelectors

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

func (*ClusterSelectors) DeepCopyInto

func (in *ClusterSelectors) DeepCopyInto(out *ClusterSelectors)

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

type Compliance

type Compliance struct {
	Standard Standard `json:"standard"`
}

func (*Compliance) DeepCopy

func (in *Compliance) DeepCopy() *Compliance

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

func (*Compliance) DeepCopyInto

func (in *Compliance) DeepCopyInto(out *Compliance)

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

type ComplianceDeployment

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

	Spec   ComplianceDeploymentSpec   `json:"spec,omitempty"`
	Status ComplianceDeploymentStatus `json:"status,omitempty"`
}

ComplianceDeployment is the Schema for the compliancedeployments API

func (*ComplianceDeployment) DeepCopy

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

func (*ComplianceDeployment) DeepCopyInto

func (in *ComplianceDeployment) DeepCopyInto(out *ComplianceDeployment)

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

func (*ComplianceDeployment) DeepCopyObject

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

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

type ComplianceDeploymentBinding

type ComplianceDeploymentBinding struct {
	// Compliance name
	Compliance string `json:"compliance,omitempty"`
	// The list of cluster group to be bound to the compliance
	ClusterGroups []string `json:"clusterGroups,omitempty"`
}

func (*ComplianceDeploymentBinding) DeepCopy

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

func (*ComplianceDeploymentBinding) DeepCopyInto

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

type ComplianceDeploymentClusterGroup

type ComplianceDeploymentClusterGroup struct {
	// Name
	Name string `json:"name,omitempty"`
	// Cluster selector
	MatchLabels *map[string]string `json:"matchLabels,omitempty"`
}

func (*ComplianceDeploymentClusterGroup) DeepCopy

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

func (*ComplianceDeploymentClusterGroup) DeepCopyInto

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

type ComplianceDeploymentCompliance

type ComplianceDeploymentCompliance struct {
	// Name of compliance
	Name string `json:"name,omitempty"`
	// Reference to OSCAL Catalog json
	Catalog ComplianceDeploymentResourceRef `json:"catalog,omitempty"`
	// Reference to OSCAL Profile json
	Profile ComplianceDeploymentResourceRef `json:"profile,omitempty"`
	// Reference to OSCAL Component Definition json
	ComponentDefinition ComplianceDeploymentResourceRef `json:"componentDefinition,omitempty"`
}

func (*ComplianceDeploymentCompliance) DeepCopy

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

func (*ComplianceDeploymentCompliance) DeepCopyInto

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

type ComplianceDeploymentList

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

ComplianceDeploymentList contains a list of ComplianceDeployment

func (*ComplianceDeploymentList) DeepCopy

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

func (*ComplianceDeploymentList) DeepCopyInto

func (in *ComplianceDeploymentList) DeepCopyInto(out *ComplianceDeploymentList)

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

func (*ComplianceDeploymentList) DeepCopyObject

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

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

type ComplianceDeploymentResourceRef

type ComplianceDeploymentResourceRef struct {
	Url string `json:"url,omitempty"`
}

func (*ComplianceDeploymentResourceRef) DeepCopy

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

func (*ComplianceDeploymentResourceRef) DeepCopyInto

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

type ComplianceDeploymentSpec

type ComplianceDeploymentSpec struct {
	Compliance      ComplianceDeploymentCompliance     `json:"compliance,omitempty"`
	PolicyResources ComplianceDeploymentResourceRef    `json:"policyResources,omitempty"`
	ClusterGroups   []ComplianceDeploymentClusterGroup `json:"clusterGroups,omitempty"`
	Binding         ComplianceDeploymentBinding        `json:"binding,omitempty"`
	Target          ComplianceDeploymentTarget         `json:"target,omitempty"`
}

ComplianceDeploymentSpec defines the desired state of ComplianceDeployment

func (*ComplianceDeploymentSpec) DeepCopy

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

func (*ComplianceDeploymentSpec) DeepCopyInto

func (in *ComplianceDeploymentSpec) DeepCopyInto(out *ComplianceDeploymentSpec)

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

type ComplianceDeploymentStatus

type ComplianceDeploymentStatus struct {
}

ComplianceDeploymentStatus defines the observed state of ComplianceDeployment

func (*ComplianceDeploymentStatus) DeepCopy

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

func (*ComplianceDeploymentStatus) DeepCopyInto

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

type ComplianceDeploymentTarget

type ComplianceDeploymentTarget struct {
	// Namespace for generated policies to be placed in Hub
	Namespace string `json:"namespace,omitempty"`
	// KCP workspace
	Workspace string `json:"workspace,omitempty"`
}

func (*ComplianceDeploymentTarget) DeepCopy

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

func (*ComplianceDeploymentTarget) DeepCopyInto

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

type CompliancePolicyResult

type CompliancePolicyResult string

+kubebuilder:validation:Enum=Compliant;NonCompliant

type ComplianceReport

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

	Results []ComplianceReportResult `json:"results,omitempty"`
	Summary ComplianceReportSummary  `json:"summary,omitempty"`
}

ComplianceReport is the Schema for the controlreferences API

func (*ComplianceReport) DeepCopy

func (in *ComplianceReport) DeepCopy() *ComplianceReport

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

func (*ComplianceReport) DeepCopyInto

func (in *ComplianceReport) DeepCopyInto(out *ComplianceReport)

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

func (*ComplianceReport) DeepCopyObject

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

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

type ComplianceReportCluster

type ComplianceReportCluster struct {
	Name    string                           `json:"name,omitempty"`
	Result  wgpolicyk8sv1alpha2.PolicyResult `json:"result,omitempty"`
	Message string                           `json:"message,omitempty"`
}

func (*ComplianceReportCluster) DeepCopy

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

func (*ComplianceReportCluster) DeepCopyInto

func (in *ComplianceReportCluster) DeepCopyInto(out *ComplianceReportCluster)

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

type ComplianceReportList

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

ComplianceReportList contains a list of ComplianceReport

func (*ComplianceReportList) DeepCopy

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

func (*ComplianceReportList) DeepCopyInto

func (in *ComplianceReportList) DeepCopyInto(out *ComplianceReportList)

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

func (*ComplianceReportList) DeepCopyObject

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

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

type ComplianceReportResult

type ComplianceReportResult struct {
	Source   string                           `json:"source,omitempty"`
	Category string                           `json:"category,omitempty"`
	Control  string                           `json:"control,omitempty"`
	Policies []string                         `json:"policies,omitempty"`
	Result   wgpolicyk8sv1alpha2.PolicyResult `json:"result,omitempty"`
	Clusters []ComplianceReportCluster        `json:"clusters,omitempty"`
}

ComplianceReportSpec defines the desired state of ComplianceReport

func (*ComplianceReportResult) DeepCopy

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

func (*ComplianceReportResult) DeepCopyInto

func (in *ComplianceReportResult) DeepCopyInto(out *ComplianceReportResult)

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

type ComplianceReportSummary

type ComplianceReportSummary struct {
	Standard             string                 `json:"standard,omitempty"`
	Policy               string                 `json:"policy,omitempty"`
	Category             string                 `json:"category,omitempty"`
	Control              string                 `json:"control,omitempty"`
	Result               CompliancePolicyResult `json:"result,omitempty"`
	CompliantClusters    string                 `json:"compliantClusters,omitempty"`
	NonCompliantClusters string                 `json:"nonCompliantClusters,omitempty"`
	TargetClusters       string                 `json:"targetClusters,omitempty"`
	Message              string                 `json:"massage,omitempty"`
}

func (*ComplianceReportSummary) DeepCopy

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

func (*ComplianceReportSummary) DeepCopyInto

func (in *ComplianceReportSummary) DeepCopyInto(out *ComplianceReportSummary)

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

type ComplianceType

type ComplianceType string

ComplianceType describes whether we must or must not have a given resource +kubebuilder:validation:Enum=MustHave;Musthave;musthave;MustOnlyHave;Mustonlyhave;mustonlyhave;MustNotHave;Mustnothave;mustnothave

const (
	// MustNotHave is an enforcement state to exclude a resource
	MustNotHave ComplianceType = "Mustnothave"

	// MustHave is an enforcement state to include a resource
	MustHave ComplianceType = "Musthave"

	// MustOnlyHave is an enforcement state to exclusively include a resource
	MustOnlyHave ComplianceType = "Mustonlyhave"
)

type Control

type Control struct {
	Name        string   `json:"name"`
	ControlRefs []string `json:"controlRefs"`
}

func (*Control) DeepCopy

func (in *Control) DeepCopy() *Control

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

func (*Control) DeepCopyInto

func (in *Control) DeepCopyInto(out *Control)

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

type ControlReference

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

	Spec   ControlReferenceSpec   `json:"spec,omitempty"`
	Status ControlReferenceStatus `json:"status,omitempty"`
}

ControlReference is the Schema for the controlreferences API

func (*ControlReference) DeepCopy

func (in *ControlReference) DeepCopy() *ControlReference

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

func (*ControlReference) DeepCopyInto

func (in *ControlReference) DeepCopyInto(out *ControlReference)

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

func (*ControlReference) DeepCopyObject

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

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

type ControlReferenceKcp

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

	Spec   ControlReferenceKcpSpec   `json:"spec,omitempty"`
	Status ControlReferenceKcpStatus `json:"status,omitempty"`
}

ControlReferenceKcp is the Schema for the controlreferences API

func (*ControlReferenceKcp) DeepCopy

func (in *ControlReferenceKcp) DeepCopy() *ControlReferenceKcp

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

func (*ControlReferenceKcp) DeepCopyInto

func (in *ControlReferenceKcp) DeepCopyInto(out *ControlReferenceKcp)

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

func (*ControlReferenceKcp) DeepCopyObject

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

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

type ControlReferenceKcpList

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

ControlReferenceKcpList contains a list of ControlReferenceKcp

func (*ControlReferenceKcpList) DeepCopy

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

func (*ControlReferenceKcpList) DeepCopyInto

func (in *ControlReferenceKcpList) DeepCopyInto(out *ControlReferenceKcpList)

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

func (*ControlReferenceKcpList) DeepCopyObject

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

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

type ControlReferenceKcpSpec

type ControlReferenceKcpSpec struct {

	// Internal representation of Compliance
	Compliance Compliance `json:"compliance,omitempty"`

	ComplianceDeployment ComplianceDeploymentSpec `json:"complianceDeployment,omitempty"`

	Summary map[string]string `json:"summary,omitempty"`
}

ControlReferenceSpec defines the desired state of ControlReferenceKcp

func (*ControlReferenceKcpSpec) DeepCopy

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

func (*ControlReferenceKcpSpec) DeepCopyInto

func (in *ControlReferenceKcpSpec) DeepCopyInto(out *ControlReferenceKcpSpec)

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

type ControlReferenceKcpStatus

type ControlReferenceKcpStatus struct {
}

ControlReferenceKcpStatus defines the observed state of ControlReferenceKcp

func (*ControlReferenceKcpStatus) DeepCopy

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

func (*ControlReferenceKcpStatus) DeepCopyInto

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

type ControlReferenceList

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

ControlReferenceList contains a list of ControlReference

func (*ControlReferenceList) DeepCopy

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

func (*ControlReferenceList) DeepCopyInto

func (in *ControlReferenceList) DeepCopyInto(out *ControlReferenceList)

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

func (*ControlReferenceList) DeepCopyObject

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

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

type ControlReferenceSpec

type ControlReferenceSpec struct {

	// Internal representation of Compliance
	Compliance Compliance `json:"compliance,omitempty"`
	// Namespace to deploy generated resources
	Target ControlReferenceTarget `json:"target,omitempty"`

	PolicyResources ComplianceDeploymentResourceRef `json:"policyResources,omitempty"`

	Summary map[string]string `json:"summary,omitempty"`
}

ControlReferenceSpec defines the desired state of ControlReference

func (*ControlReferenceSpec) DeepCopy

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

func (*ControlReferenceSpec) DeepCopyInto

func (in *ControlReferenceSpec) DeepCopyInto(out *ControlReferenceSpec)

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

type ControlReferenceStatus

type ControlReferenceStatus struct {
}

ControlReferenceStatus defines the observed state of ControlReference

func (*ControlReferenceStatus) DeepCopy

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

func (*ControlReferenceStatus) DeepCopyInto

func (in *ControlReferenceStatus) DeepCopyInto(out *ControlReferenceStatus)

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

type ControlReferenceTarget

type ControlReferenceTarget struct {
	Namespace string `json:"namespace,omitempty"`
}

func (*ControlReferenceTarget) DeepCopy

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

func (*ControlReferenceTarget) DeepCopyInto

func (in *ControlReferenceTarget) DeepCopyInto(out *ControlReferenceTarget)

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

type PolicyReportRef

type PolicyReportRef struct {
	// Policy ID
	PolicyId string `json:"policyId,omitempty"`
	// PolicyReport name
	Name string `json:"name,omitempty"`
	// Namespace
	Namespace string `json:"namespace,omitempty"`
}

func (*PolicyReportRef) DeepCopy

func (in *PolicyReportRef) DeepCopy() *PolicyReportRef

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

func (*PolicyReportRef) DeepCopyInto

func (in *PolicyReportRef) DeepCopyInto(out *PolicyReportRef)

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

type PolicyValidationRequest

type PolicyValidationRequest struct {
	PolicyId      string        `json:"policyId,omitempty"`
	CheckPolicies []CheckPolicy `json:"checkPoliies,omitempty"`
}

func (*PolicyValidationRequest) DeepCopy

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

func (*PolicyValidationRequest) DeepCopyInto

func (in *PolicyValidationRequest) DeepCopyInto(out *PolicyValidationRequest)

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

type ResultCollector

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

	Spec   ResultCollectorSpec   `json:"spec,omitempty"`
	Status ResultCollectorStatus `json:"status,omitempty"`
}

ResultCollector is the Schema for the controlreferences API

func (*ResultCollector) DeepCopy

func (in *ResultCollector) DeepCopy() *ResultCollector

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

func (*ResultCollector) DeepCopyInto

func (in *ResultCollector) DeepCopyInto(out *ResultCollector)

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

func (*ResultCollector) DeepCopyObject

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

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

type ResultCollectorList

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

ResultCollectorList contains a list of ResultCollector

func (*ResultCollectorList) DeepCopy

func (in *ResultCollectorList) DeepCopy() *ResultCollectorList

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

func (*ResultCollectorList) DeepCopyInto

func (in *ResultCollectorList) DeepCopyInto(out *ResultCollectorList)

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

func (*ResultCollectorList) DeepCopyObject

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

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

type ResultCollectorSpec

type ResultCollectorSpec struct {
	// Resource name of CompliacneDeployment
	ComplianceDeployment ComplianceDeploymentSpec `json:"complianceDeployment,omitempty"`
	// Resource to CheckRequiests
	PolicyValidationRequests []PolicyValidationRequest `json:"policyValidationRequests,omitempty"`
	// Internal representation of Compliance
	Compliance Compliance `json:"compliance,omitempty"`
	//+kubebuilder:validation:Pattern=`^(?:(?:(?:[0-9]+(?:.[0-9])?)(?:h|m|s|(?:ms)|(?:us)|(?:ns)))|never)+$`
	// Interval to watch
	Interval string `json:"interval,omitempty"`
}

ControlReferenceSpec defines the desired state of ResultCollector

func (*ResultCollectorSpec) DeepCopy

func (in *ResultCollectorSpec) DeepCopy() *ResultCollectorSpec

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

func (*ResultCollectorSpec) DeepCopyInto

func (in *ResultCollectorSpec) DeepCopyInto(out *ResultCollectorSpec)

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

func (ResultCollectorSpec) GetInterval

func (c ResultCollectorSpec) GetInterval() (time.Duration, error)

type ResultCollectorStatus

type ResultCollectorStatus struct {
}

ResultCollectorStatus defines the observed state of ResultCollector

func (*ResultCollectorStatus) DeepCopy

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

func (*ResultCollectorStatus) DeepCopyInto

func (in *ResultCollectorStatus) DeepCopyInto(out *ResultCollectorStatus)

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

type Standard

type Standard struct {
	Name       string     `json:"name"`
	Categories []Category `json:"categories"`
}

func (*Standard) DeepCopy

func (in *Standard) DeepCopy() *Standard

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

func (*Standard) DeepCopyInto

func (in *Standard) DeepCopyInto(out *Standard)

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