Documentation
¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type CloudInit
- type LibvirtClusterProviderConfig
- type LibvirtClusterProviderStatus
- type LibvirtMachineProviderCondition
- type LibvirtMachineProviderConditionType
- type LibvirtMachineProviderConfig
- type LibvirtMachineProviderStatus
- type Volume
Constants ¶
const GroupName = "libvirtproviderconfig"
GroupName is the group which identify this API
Variables ¶
var ( // SchemeBuilder contains the functions to add the libvirtProviderConfig types SchemeBuilder runtime.SchemeBuilder // AddToScheme applies functions to SchemeBuilder AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion contains the group and version which register these types
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type CloudInit ¶
type CloudInit struct {
// UserData requires ISOImagePath to be set
UserData string
// ISOImagePath is path to ISO image with cloud-init
ISOImagePath string
}
CloudInit contains location of user data to be run during bootstrapping with ISO image with a cloud-init file running the user data
type LibvirtClusterProviderConfig ¶
LibvirtClusterProviderConfig is the type that will be embedded in a Cluster.Spec.ProviderConfig field We c +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*LibvirtClusterProviderConfig) DeepCopy ¶
func (in *LibvirtClusterProviderConfig) DeepCopy() *LibvirtClusterProviderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LibvirtClusterProviderConfig.
func (*LibvirtClusterProviderConfig) DeepCopyInto ¶
func (in *LibvirtClusterProviderConfig) DeepCopyInto(out *LibvirtClusterProviderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LibvirtClusterProviderConfig) DeepCopyObject ¶
func (in *LibvirtClusterProviderConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LibvirtClusterProviderStatus ¶
LibvirtClusterProviderStatus is the type that will be embedded in a Cluster.Status.ProviderStatus field. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*LibvirtClusterProviderStatus) DeepCopy ¶
func (in *LibvirtClusterProviderStatus) DeepCopy() *LibvirtClusterProviderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LibvirtClusterProviderStatus.
func (*LibvirtClusterProviderStatus) DeepCopyInto ¶
func (in *LibvirtClusterProviderStatus) DeepCopyInto(out *LibvirtClusterProviderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LibvirtClusterProviderStatus) DeepCopyObject ¶
func (in *LibvirtClusterProviderStatus) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LibvirtMachineProviderCondition ¶
type LibvirtMachineProviderCondition struct {
// Type is the type of the condition.
Type LibvirtMachineProviderConditionType
// Status is the status of the condition.
Status corev1.ConditionStatus
// LastProbeTime is the last time we probed the condition.
// +optional
LastProbeTime metav1.Time
// LastTransitionTime is the last time the condition transitioned from one status to another.
// +optional
LastTransitionTime metav1.Time
// Reason is a unique, one-word, CamelCase reason for the condition's last transition.
// +optional
Reason string
// Message is a human-readable message indicating details about last transition.
// +optional
Message string
}
LibvirtMachineProviderCondition is a condition in a LibvirtMachineProviderStatus
func (*LibvirtMachineProviderCondition) DeepCopy ¶
func (in *LibvirtMachineProviderCondition) DeepCopy() *LibvirtMachineProviderCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LibvirtMachineProviderCondition.
func (*LibvirtMachineProviderCondition) DeepCopyInto ¶
func (in *LibvirtMachineProviderCondition) DeepCopyInto(out *LibvirtMachineProviderCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LibvirtMachineProviderConditionType ¶
type LibvirtMachineProviderConditionType string
LibvirtMachineProviderConditionType is a valid value for LibvirtMachineProviderCondition.Type
const ( // MachineCreated indicates whether the machine has been created or not. If not, // it should include a reason and message for the failure. MachineCreated LibvirtMachineProviderConditionType = "MachineCreated" )
Valid conditions for an Libvirt machine instance
type LibvirtMachineProviderConfig ¶
type LibvirtMachineProviderConfig struct {
metav1.TypeMeta
DomainMemory int
DomainVcpu int
IgnKey string
CloudInit *CloudInit
Volume *Volume
NetworkInterfaceName string
NetworkInterfaceHostname string
NetworkInterfaceAddress string
NetworkUUID string
Autostart bool
URI string
}
LibvirtMachineProviderConfig is the type that will be embedded in a Machine.Spec.ProviderConfig field for an Libvirt instance. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*LibvirtMachineProviderConfig) DeepCopy ¶
func (in *LibvirtMachineProviderConfig) DeepCopy() *LibvirtMachineProviderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LibvirtMachineProviderConfig.
func (*LibvirtMachineProviderConfig) DeepCopyInto ¶
func (in *LibvirtMachineProviderConfig) DeepCopyInto(out *LibvirtMachineProviderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LibvirtMachineProviderConfig) DeepCopyObject ¶
func (in *LibvirtMachineProviderConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LibvirtMachineProviderStatus ¶
type LibvirtMachineProviderStatus struct {
metav1.TypeMeta
// InstanceID is the instance ID of the machine created in Libvirt
InstanceID *string
// InstanceState is the state of the Libvirt instance for this machine
InstanceState *string
// Conditions is a set of conditions associated with the Machine to indicate
// errors or other status
Conditions []LibvirtMachineProviderCondition
}
LibvirtMachineProviderStatus is the type that will be embedded in a Machine.Status.ProviderStatus field. It contains Libvirt-specific status information. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*LibvirtMachineProviderStatus) DeepCopy ¶
func (in *LibvirtMachineProviderStatus) DeepCopy() *LibvirtMachineProviderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LibvirtMachineProviderStatus.
func (*LibvirtMachineProviderStatus) DeepCopyInto ¶
func (in *LibvirtMachineProviderStatus) DeepCopyInto(out *LibvirtMachineProviderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LibvirtMachineProviderStatus) DeepCopyObject ¶
func (in *LibvirtMachineProviderStatus) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Volume ¶
Volume contains the info for the actuator to create a volume
func (*Volume) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volume.
func (*Volume) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.