var ( // SchemeGroupVersion is the identifier for the API which includes the name // of the group and the version of the API. SchemeGroupVersion = schema.GroupVersion{ Group: server.GroupName, Version: "v1beta2", } // SchemeBuilder collects functions that add things to a scheme. It's to // allow code to compile without explicitly referencing generated types. // You should declare one in each package that will have generated deep // copy or conversion functions. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies all the stored functions to the scheme. A non-nil error // indicates that one function failed and the attempt was abandoned. AddToScheme = SchemeBuilder.AddToScheme )
func Kind(kind string) schema.GroupKind
Kind takes an unqualified kind and returns back a Group qualified GroupKind
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
type Server struct { // TypeMeta is the metadata for the resource, like kind and apiversion metav1.TypeMeta `json:",inline"` // ObjectMeta contains the metadata for the particular object, including // things like... // - name // - namespace // - self link // - labels // - ... etc ... metav1.ObjectMeta `json:"metadata,omitempty"` // Spec is the custom resource spec Spec ServerSpec `json:"spec"` }
func (in *Server) DeepCopy() *Server
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Server.
func (in *Server) DeepCopyInto(out *Server)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Server) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
ServerList is a list of Server resources.
type ServerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Server `json:"items"` }
func (in *ServerList) DeepCopy() *ServerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerList.
func (in *ServerList) DeepCopyInto(out *ServerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ServerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
ServerSpec specifies a Server resource.
type ServerSpec struct { PodSelector *metav1.LabelSelector `json:"podSelector,omitempty"` ExternalWorkloadSelector *metav1.LabelSelector `json:"externalWorkloadSelector,omitempty"` Port intstr.IntOrString `json:"port,omitempty"` ProxyProtocol string `json:"proxyProtocol,omitempty"` }
func (in *ServerSpec) DeepCopy() *ServerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerSpec.
func (in *ServerSpec) DeepCopyInto(out *ServerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.