v1alpha1

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=policy.k8s.appscode.com

Index

Constants

View Source
const (
	ResourceKindPolicyReport = "PolicyReport"
	ResourcePolicyReport     = "policyreport"
	ResourcePolicyReports    = "policyreports"
)
View Source
const GroupName = "policy.k8s.appscode.com"

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

Functions

func RegisterDefaults added in v0.0.39

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Constraint

type Constraint struct {
	AuditTimestamp metav1.Time                 `json:"auditTimestamp,omitempty"`
	Name           string                      `json:"name,omitempty"`
	GVR            schema.GroupVersionResource `json:"gvr,omitempty"`
	Violations     []audit.StatusViolation     `json:"violations,omitempty"`
}

func (*Constraint) DeepCopy

func (in *Constraint) DeepCopy() *Constraint

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

func (*Constraint) DeepCopyInto

func (in *Constraint) DeepCopyInto(out *Constraint)

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

type PolicyReport

type PolicyReport struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	Request *PolicyReportRequest `json:"request,omitempty"`
	// +optional
	Response *PolicyReportResponse `json:"response,omitempty"`
}

func (*PolicyReport) DeepCopy

func (in *PolicyReport) DeepCopy() *PolicyReport

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

func (*PolicyReport) DeepCopyInto

func (in *PolicyReport) DeepCopyInto(out *PolicyReport)

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

func (*PolicyReport) DeepCopyObject

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

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

type PolicyReportRequest

type PolicyReportRequest struct {
	kmapi.ObjectInfo `json:",inline"`
}

func (*PolicyReportRequest) DeepCopy

func (in *PolicyReportRequest) DeepCopy() *PolicyReportRequest

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

func (*PolicyReportRequest) DeepCopyInto

func (in *PolicyReportRequest) DeepCopyInto(out *PolicyReportRequest)

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

type PolicyReportResponse

type PolicyReportResponse struct {
	Constraints []Constraint `json:"constraints,omitempty"`
}

func (*PolicyReportResponse) DeepCopy

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

func (*PolicyReportResponse) DeepCopyInto

func (in *PolicyReportResponse) DeepCopyInto(out *PolicyReportResponse)

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