Documentation
¶
Overview ¶
+k8s:deepcopy-gen=package
Index ¶
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, ) AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{ Group: GroupName, Version: runtime.APIVersionInternal, }
SchemeGroupVersion is group version used to register these objects
Functions ¶
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.
Types ¶
type Car ¶
type Car struct {
metav1.TypeMeta
// 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
Spec CarSpec
Status CarStatus
}
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 ¶
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
Persons uint64
}
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
// 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
Spec MotorcycleSpec
Status MotorcycleStatus
}
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
CurrentWeight float64
}
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 ¶
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.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
+k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +k8s:openapi-gen=true +k8s:conversion-gen=github.com/weaveworks/libgitops/cmd/sample-app/apis/sample
|
+k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +k8s:openapi-gen=true +k8s:conversion-gen=github.com/weaveworks/libgitops/cmd/sample-app/apis/sample |