Documentation ¶
Index ¶
- Constants
- type OVirtApiConfig
- type OVirtCloud
- func (v *OVirtCloud) AddSSHKeyToAllInstances(ctx context.Context, user string, keyData []byte) error
- func (v *OVirtCloud) Clusters() (cloudprovider.Clusters, bool)
- func (v *OVirtCloud) CurrentNodeName(ctx context.Context, hostname string) (types.NodeName, error)
- func (v *OVirtCloud) HasClusterID() bool
- func (v *OVirtCloud) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, stop <-chan struct{})
- func (v *OVirtCloud) InstanceExistsByProviderID(ctx context.Context, providerID string) (bool, error)
- func (v *OVirtCloud) InstanceID(ctx context.Context, nodeName types.NodeName) (string, error)
- func (v *OVirtCloud) InstanceShutdownByProviderID(ctx context.Context, providerID string) (bool, error)
- func (v *OVirtCloud) InstanceType(ctx context.Context, name types.NodeName) (string, error)
- func (v *OVirtCloud) InstanceTypeByProviderID(ctx context.Context, providerID string) (string, error)
- func (v *OVirtCloud) Instances() (cloudprovider.Instances, bool)
- func (v *OVirtCloud) LoadBalancer() (cloudprovider.LoadBalancer, bool)
- func (v *OVirtCloud) NodeAddresses(ctx context.Context, nodeName types.NodeName) ([]v1.NodeAddress, error)
- func (v *OVirtCloud) NodeAddressesByProviderID(ctx context.Context, providerID string) ([]v1.NodeAddress, error)
- func (v *OVirtCloud) ProviderName() string
- func (v *OVirtCloud) Routes() (cloudprovider.Routes, bool)
- func (v *OVirtCloud) Zones() (cloudprovider.Zones, bool)
- type OVirtInstance
- type OVirtInstanceMap
- type XmlVmAddress
- type XmlVmInfo
- type XmlVmsList
Constants ¶
const ProviderName = "ovirt"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OVirtApiConfig ¶
type OVirtCloud ¶
func (*OVirtCloud) AddSSHKeyToAllInstances ¶
func (*OVirtCloud) Clusters ¶
func (v *OVirtCloud) Clusters() (cloudprovider.Clusters, bool)
func (*OVirtCloud) CurrentNodeName ¶
Implementation of Instances.CurrentNodeName
func (*OVirtCloud) HasClusterID ¶
func (v *OVirtCloud) HasClusterID() bool
HasClusterID returns true if the cluster has a clusterID
func (*OVirtCloud) Initialize ¶
func (v *OVirtCloud) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, stop <-chan struct{})
Initialize passes a Kubernetes clientBuilder interface to the cloud provider
func (*OVirtCloud) InstanceExistsByProviderID ¶
func (v *OVirtCloud) InstanceExistsByProviderID(ctx context.Context, providerID string) (bool, error)
InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running. If false is returned with no error, the instance will be immediately deleted by the cloud controller manager.
func (*OVirtCloud) InstanceID ¶
InstanceID returns the cloud provider ID of the node with the specified NodeName.
func (*OVirtCloud) InstanceShutdownByProviderID ¶
func (v *OVirtCloud) InstanceShutdownByProviderID(ctx context.Context, providerID string) (bool, error)
InstanceShutdownByProviderID returns true if the instance is in safe state to detach volumes
func (*OVirtCloud) InstanceType ¶
InstanceType returns the type of the specified instance.
func (*OVirtCloud) InstanceTypeByProviderID ¶
func (v *OVirtCloud) InstanceTypeByProviderID(ctx context.Context, providerID string) (string, error)
InstanceTypeByProviderID returns the cloudprovider instance type of the node with the specified unique providerID This method will not be called from the node that is requesting this ID. i.e. metadata service and other local methods cannot be used here
func (*OVirtCloud) Instances ¶
func (v *OVirtCloud) Instances() (cloudprovider.Instances, bool)
Instances returns an implementation of Instances for oVirt cloud
func (*OVirtCloud) LoadBalancer ¶
func (v *OVirtCloud) LoadBalancer() (cloudprovider.LoadBalancer, bool)
LoadBalancer returns an implementation of LoadBalancer for oVirt cloud
func (*OVirtCloud) NodeAddresses ¶
func (v *OVirtCloud) NodeAddresses(ctx context.Context, nodeName types.NodeName) ([]v1.NodeAddress, error)
NodeAddresses returns the NodeAddresses of the instance with the specified nodeName.
func (*OVirtCloud) NodeAddressesByProviderID ¶
func (v *OVirtCloud) NodeAddressesByProviderID(ctx context.Context, providerID string) ([]v1.NodeAddress, error)
NodeAddressesByProviderID returns the node addresses of an instances with the specified unique providerID This method will not be called from the node that is requesting this ID. i.e. metadata service and other local methods cannot be used here
func (*OVirtCloud) ProviderName ¶
func (v *OVirtCloud) ProviderName() string
ProviderName returns the cloud provider ID.
func (*OVirtCloud) Routes ¶
func (v *OVirtCloud) Routes() (cloudprovider.Routes, bool)
Routes returns an implementation of Routes for oVirt cloud
func (*OVirtCloud) Zones ¶
func (v *OVirtCloud) Zones() (cloudprovider.Zones, bool)
Zones returns an implementation of Zones for oVirt cloud
type OVirtInstance ¶
type OVirtInstanceMap ¶
type OVirtInstanceMap map[string]OVirtInstance
func (*OVirtInstanceMap) ListSortedNames ¶
func (m *OVirtInstanceMap) ListSortedNames() []string
type XmlVmAddress ¶
type XmlVmAddress struct {
Address string `xml:"address,attr"`
}
type XmlVmInfo ¶
type XmlVmInfo struct { UUID string `xml:"id,attr"` Name string `xml:"name"` Hostname string `xml:"guest_info>fqdn"` Addresses []XmlVmAddress `xml:"guest_info>ips>ip"` State string `xml:"status>state"` }