Documentation ¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=policy.k8s.appscode.com
Index ¶
Constants ¶
const ( ResourceKindPolicyReport = "PolicyReport" ResourcePolicyReport = "policyreport" ResourcePolicyReports = "policyreports" )
const GroupName = "policy.k8s.appscode.com"
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
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 ¶
func (in *PolicyReportResponse) DeepCopy() *PolicyReportResponse
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.