Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the config v1 API group +kubebuilder:object:generate=true +groupName=config.com.netflix.titus
Copyright 2020 Netflix, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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: machineType.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 MachineType ¶
type MachineType struct { poolV1.ComputeResource `json:",inline"` Name string `json:"name"` Labels map[string]string `json:"labels,omitempty"` }
func (*MachineType) DeepCopy ¶
func (in *MachineType) DeepCopy() *MachineType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineType.
func (*MachineType) DeepCopyInto ¶
func (in *MachineType) DeepCopyInto(out *MachineType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineTypeConfig ¶
type MachineTypeConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MachineType `json:"spec,omitempty"` }
+kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*MachineTypeConfig) DeepCopy ¶
func (in *MachineTypeConfig) DeepCopy() *MachineTypeConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTypeConfig.
func (*MachineTypeConfig) DeepCopyInto ¶
func (in *MachineTypeConfig) DeepCopyInto(out *MachineTypeConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineTypeConfig) DeepCopyObject ¶
func (in *MachineTypeConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineTypeConfigList ¶
type MachineTypeConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MachineTypeConfig `json:"items"` }
+kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*MachineTypeConfigList) DeepCopy ¶
func (in *MachineTypeConfigList) DeepCopy() *MachineTypeConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTypeConfigList.
func (*MachineTypeConfigList) DeepCopyInto ¶
func (in *MachineTypeConfigList) DeepCopyInto(out *MachineTypeConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineTypeConfigList) DeepCopyObject ¶
func (in *MachineTypeConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.