Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +k8s:openapi-gen=true +k8s:conversion-gen=github.com/save-abandoned-projects/libgitops/cmd/sample-app/apis/sample
Index ¶
- Constants
- Variables
- func Convert_sample_CarSpec_To_v1alpha1_CarSpec(in *sample.CarSpec, out *CarSpec, s conversion.Scope) error
- func Convert_sample_CarStatus_To_v1alpha1_CarStatus(in *sample.CarStatus, out *CarStatus, s conversion.Scope) error
- func Convert_sample_Car_To_v1alpha1_Car(in *sample.Car, out *Car, s conversion.Scope) error
- func Convert_sample_MotorcycleSpec_To_v1alpha1_MotorcycleSpec(in *sample.MotorcycleSpec, out *MotorcycleSpec, s conversion.Scope) error
- func Convert_sample_MotorcycleStatus_To_v1alpha1_MotorcycleStatus(in *sample.MotorcycleStatus, out *MotorcycleStatus, s conversion.Scope) error
- func Convert_sample_Motorcycle_To_v1alpha1_Motorcycle(in *sample.Motorcycle, out *Motorcycle, s conversion.Scope) error
- func Convert_sample_VehicleStatus_To_v1alpha1_VehicleStatus(in *sample.VehicleStatus, out *VehicleStatus, s conversion.Scope) error
- func Convert_v1alpha1_CarSpec_To_sample_CarSpec(in *CarSpec, out *sample.CarSpec, s conversion.Scope) error
- func Convert_v1alpha1_CarStatus_To_sample_CarStatus(in *CarStatus, out *sample.CarStatus, s conversion.Scope) error
- func Convert_v1alpha1_Car_To_sample_Car(in *Car, out *sample.Car, s conversion.Scope) error
- func Convert_v1alpha1_MotorcycleSpec_To_sample_MotorcycleSpec(in *MotorcycleSpec, out *sample.MotorcycleSpec, s conversion.Scope) error
- func Convert_v1alpha1_MotorcycleStatus_To_sample_MotorcycleStatus(in *MotorcycleStatus, out *sample.MotorcycleStatus, s conversion.Scope) error
- func Convert_v1alpha1_Motorcycle_To_sample_Motorcycle(in *Motorcycle, out *sample.Motorcycle, s conversion.Scope) error
- func Convert_v1alpha1_VehicleStatus_To_sample_VehicleStatus(in *VehicleStatus, out *sample.VehicleStatus, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_CarSpec(obj *CarSpec)
- func SetDefaults_MotorcycleSpec(obj *MotorcycleSpec)
- func SetObjectDefaults_Car(in *Car)
- func SetObjectDefaults_Motorcycle(in *Motorcycle)
- type Car
- type CarSpec
- type CarStatus
- type Motorcycle
- type MotorcycleSpec
- type MotorcycleStatus
- type VehicleStatus
Constants ¶
const (
// GroupName is the group name use in this package
GroupName = "sample-app.weave.works"
)
Variables ¶
var ( // SchemeBuilder the schema builder SchemeBuilder = runtime.NewSchemeBuilder( addKnownTypes, addDefaultingFuncs, ) AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{ Group: GroupName, Version: "v1alpha1", }
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_sample_CarSpec_To_v1alpha1_CarSpec ¶
func Convert_sample_CarSpec_To_v1alpha1_CarSpec(in *sample.CarSpec, out *CarSpec, s conversion.Scope) error
Convert_sample_CarSpec_To_v1alpha1_CarSpec is an autogenerated conversion function.
func Convert_sample_CarStatus_To_v1alpha1_CarStatus ¶
func Convert_sample_CarStatus_To_v1alpha1_CarStatus(in *sample.CarStatus, out *CarStatus, s conversion.Scope) error
Convert_sample_CarStatus_To_v1alpha1_CarStatus is an autogenerated conversion function.
func Convert_sample_Car_To_v1alpha1_Car ¶
Convert_sample_Car_To_v1alpha1_Car is an autogenerated conversion function.
func Convert_sample_MotorcycleSpec_To_v1alpha1_MotorcycleSpec ¶
func Convert_sample_MotorcycleSpec_To_v1alpha1_MotorcycleSpec(in *sample.MotorcycleSpec, out *MotorcycleSpec, s conversion.Scope) error
Convert_sample_MotorcycleSpec_To_v1alpha1_MotorcycleSpec is an autogenerated conversion function.
func Convert_sample_MotorcycleStatus_To_v1alpha1_MotorcycleStatus ¶
func Convert_sample_MotorcycleStatus_To_v1alpha1_MotorcycleStatus(in *sample.MotorcycleStatus, out *MotorcycleStatus, s conversion.Scope) error
Convert_sample_MotorcycleStatus_To_v1alpha1_MotorcycleStatus is an autogenerated conversion function.
func Convert_sample_Motorcycle_To_v1alpha1_Motorcycle ¶
func Convert_sample_Motorcycle_To_v1alpha1_Motorcycle(in *sample.Motorcycle, out *Motorcycle, s conversion.Scope) error
Convert_sample_Motorcycle_To_v1alpha1_Motorcycle is an autogenerated conversion function.
func Convert_sample_VehicleStatus_To_v1alpha1_VehicleStatus ¶
func Convert_sample_VehicleStatus_To_v1alpha1_VehicleStatus(in *sample.VehicleStatus, out *VehicleStatus, s conversion.Scope) error
Convert_sample_VehicleStatus_To_v1alpha1_VehicleStatus is an autogenerated conversion function.
func Convert_v1alpha1_CarSpec_To_sample_CarSpec ¶
func Convert_v1alpha1_CarSpec_To_sample_CarSpec(in *CarSpec, out *sample.CarSpec, s conversion.Scope) error
Convert_v1alpha1_CarSpec_To_sample_CarSpec is an autogenerated conversion function.
func Convert_v1alpha1_CarStatus_To_sample_CarStatus ¶
func Convert_v1alpha1_CarStatus_To_sample_CarStatus(in *CarStatus, out *sample.CarStatus, s conversion.Scope) error
Convert_v1alpha1_CarStatus_To_sample_CarStatus is an autogenerated conversion function.
func Convert_v1alpha1_Car_To_sample_Car ¶
Convert_v1alpha1_Car_To_sample_Car is an autogenerated conversion function.
func Convert_v1alpha1_MotorcycleSpec_To_sample_MotorcycleSpec ¶
func Convert_v1alpha1_MotorcycleSpec_To_sample_MotorcycleSpec(in *MotorcycleSpec, out *sample.MotorcycleSpec, s conversion.Scope) error
Convert_v1alpha1_MotorcycleSpec_To_sample_MotorcycleSpec is an autogenerated conversion function.
func Convert_v1alpha1_MotorcycleStatus_To_sample_MotorcycleStatus ¶
func Convert_v1alpha1_MotorcycleStatus_To_sample_MotorcycleStatus(in *MotorcycleStatus, out *sample.MotorcycleStatus, s conversion.Scope) error
Convert_v1alpha1_MotorcycleStatus_To_sample_MotorcycleStatus is an autogenerated conversion function.
func Convert_v1alpha1_Motorcycle_To_sample_Motorcycle ¶
func Convert_v1alpha1_Motorcycle_To_sample_Motorcycle(in *Motorcycle, out *sample.Motorcycle, s conversion.Scope) error
Convert_v1alpha1_Motorcycle_To_sample_Motorcycle is an autogenerated conversion function.
func Convert_v1alpha1_VehicleStatus_To_sample_VehicleStatus ¶
func Convert_v1alpha1_VehicleStatus_To_sample_VehicleStatus(in *VehicleStatus, out *sample.VehicleStatus, s conversion.Scope) error
Convert_v1alpha1_VehicleStatus_To_sample_VehicleStatus is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func SetDefaults_CarSpec ¶
func SetDefaults_CarSpec(obj *CarSpec)
func SetDefaults_MotorcycleSpec ¶
func SetDefaults_MotorcycleSpec(obj *MotorcycleSpec)
func SetObjectDefaults_Car ¶
func SetObjectDefaults_Car(in *Car)
func SetObjectDefaults_Motorcycle ¶
func SetObjectDefaults_Motorcycle(in *Motorcycle)
Types ¶
type Car ¶
type Car struct { metav1.TypeMeta `json:",inline"` // runtime.ObjectMeta is also embedded into the struct, and defines the human-readable name, and the machine-readable ID // Name is available at the .metadata.name JSON path // ID is available at the .metadata.uid JSON path (the Go type is k8s.io/apimachinery/pkg/types.UID, which is only a typed string) metav1.ObjectMeta `json:"metadata"` Spec CarSpec `json:"spec"` Status CarStatus `json:"status"` }
Car represents a car +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Car) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Car.
func (*Car) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Car) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CarSpec ¶
type CarSpec struct { Engine string `json:"engine"` YearModel string `json:"yearModel"` Brand string `json:"brand"` }
func (*CarSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarSpec.
func (*CarSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CarStatus ¶
type CarStatus struct { VehicleStatus `json:",inline"` Persons uint64 `json:"persons"` }
func (*CarStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarStatus.
func (*CarStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Motorcycle ¶
type Motorcycle struct { metav1.TypeMeta `json:",inline"` // runtime.ObjectMeta is also embedded into the struct, and defines the human-readable name, and the machine-readable ID // Name is available at the .metadata.name JSON path // ID is available at the .metadata.uid JSON path (the Go type is k8s.io/apimachinery/pkg/types.UID, which is only a typed string) metav1.ObjectMeta `json:"metadata"` Spec MotorcycleSpec `json:"spec"` Status MotorcycleStatus `json:"status"` }
Motorcycle represents a motorcycle +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Motorcycle) DeepCopy ¶
func (in *Motorcycle) DeepCopy() *Motorcycle
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Motorcycle.
func (*Motorcycle) DeepCopyInto ¶
func (in *Motorcycle) DeepCopyInto(out *Motorcycle)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Motorcycle) DeepCopyObject ¶
func (in *Motorcycle) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MotorcycleSpec ¶
func (*MotorcycleSpec) DeepCopy ¶
func (in *MotorcycleSpec) DeepCopy() *MotorcycleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MotorcycleSpec.
func (*MotorcycleSpec) DeepCopyInto ¶
func (in *MotorcycleSpec) DeepCopyInto(out *MotorcycleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MotorcycleStatus ¶
type MotorcycleStatus struct { VehicleStatus `json:",inline"` CurrentWeight float64 `json:"currentWeight"` }
func (*MotorcycleStatus) DeepCopy ¶
func (in *MotorcycleStatus) DeepCopy() *MotorcycleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MotorcycleStatus.
func (*MotorcycleStatus) DeepCopyInto ¶
func (in *MotorcycleStatus) DeepCopyInto(out *MotorcycleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VehicleStatus ¶
type VehicleStatus struct { Speed float64 `json:"speed"` Acceleration float64 `json:"acceleration"` Distance uint64 `json:"distance"` }
func (*VehicleStatus) DeepCopy ¶
func (in *VehicleStatus) DeepCopy() *VehicleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VehicleStatus.
func (*VehicleStatus) DeepCopyInto ¶
func (in *VehicleStatus) DeepCopyInto(out *VehicleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.