v1alpha1

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=kelefstis.k8s.io

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: kelefstis.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type RuleChecker

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

	Spec   RuleCheckerSpec   `json:"spec"`
	Status RuleCheckerStatus `json:"status"`
}

RuleChecker is a specification for a RuleChecker resource

func (*RuleChecker) DeepCopy

func (in *RuleChecker) DeepCopy() *RuleChecker

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

func (*RuleChecker) DeepCopyInto

func (in *RuleChecker) DeepCopyInto(out *RuleChecker)

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

func (*RuleChecker) DeepCopyObject

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

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

type RuleCheckerList

type RuleCheckerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []RuleChecker `json:"items"`
}

RuleCheckerList is a list of RuleChecker resources

func (*RuleCheckerList) DeepCopy

func (in *RuleCheckerList) DeepCopy() *RuleCheckerList

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

func (*RuleCheckerList) DeepCopyInto

func (in *RuleCheckerList) DeepCopyInto(out *RuleCheckerList)

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

func (*RuleCheckerList) DeepCopyObject

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

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

type RuleCheckerSpec

type RuleCheckerSpec struct {
	Rules []RuleSpec `json:"rules"`
}

RuleCheckerSpec is the spec for a RuleChecker resource

func (*RuleCheckerSpec) DeepCopy

func (in *RuleCheckerSpec) DeepCopy() *RuleCheckerSpec

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

func (*RuleCheckerSpec) DeepCopyInto

func (in *RuleCheckerSpec) DeepCopyInto(out *RuleCheckerSpec)

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

type RuleCheckerStatus

type RuleCheckerStatus struct {
	Rules RuleSpec `json:"rules"`
}

RuleCheckerStatus is the status for a RuleChecker resource

func (*RuleCheckerStatus) DeepCopy

func (in *RuleCheckerStatus) DeepCopy() *RuleCheckerStatus

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

func (*RuleCheckerStatus) DeepCopyInto

func (in *RuleCheckerStatus) DeepCopyInto(out *RuleCheckerStatus)

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

type RuleSpec

type RuleSpec struct {
	M map[string]interface{} `json:",inline"`
}

Rulespec defines a single rule for a kubernetes type M will be hidden for (Un)Marshaling

func (*RuleSpec) DeepCopy

func (in *RuleSpec) DeepCopy() *RuleSpec

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

func (*RuleSpec) DeepCopyInto

func (m *RuleSpec) DeepCopyInto(in *RuleSpec)

func (*RuleSpec) MarshalJSON

func (r *RuleSpec) MarshalJSON() ([]byte, error)

MarschalJSON marshals the RuleSpec array from the M internal map effectively hiding M

func (*RuleSpec) UnmarshalJSON

func (r *RuleSpec) UnmarshalJSON(data []byte) error

UnmarschalJSON unmarshals the []byte array into the M internal map effectively hiding M

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL