Documentation ¶
Overview ¶
Package v1 is the v1 version of the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{ Group: nginxcontroller.GroupName, Version: "v1", }
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type Nginx ¶
type Nginx struct { // TypeMeta contains the resource API version and kind. metav1.TypeMeta `json:",inline"` // ObjectMeta contains the resource metadata. metav1.ObjectMeta `json:"metadata,omitempty"` // Spec is the resource spec. Spec NginxSpec `json:"spec"` // Status contains the resource runtime information. Status NginxStatus `json:"status"` }
Nginx describes a custom nginx resource kind.
func (*Nginx) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Nginx.
func (*Nginx) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Nginx) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NginxList ¶
type NginxList struct { // TypeMeta contains the resource API version and kind. metav1.TypeMeta `json:",inline"` // ListMeta contains the list metadata. metav1.ListMeta `json:"metadata"` // Item is a collection of Nginx resources. Items []Nginx `json:"items"` }
NginxList is a list of nginx resources.
func (*NginxList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NginxList.
func (*NginxList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NginxList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NginxSpec ¶
type NginxSpec struct { // Version is the nginx version. Version string `json:"version"` }
NginxSpec is the spec for an nginx resource.
func (*NginxSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NginxSpec.
func (*NginxSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NginxStatus ¶
type NginxStatus struct { // PodName is the name of the controlled pod. PodName string `json:"podName"` }
NginxStatus is the status for a nginx resource.
func (*NginxStatus) DeepCopy ¶
func (in *NginxStatus) DeepCopy() *NginxStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NginxStatus.
func (*NginxStatus) DeepCopyInto ¶
func (in *NginxStatus) DeepCopyInto(out *NginxStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.