Documentation ¶
Index ¶
- Constants
- func GetOvirtConnectionConf(kubeClient kubernetes.Interface, namespace string, secretName string) (ovirtapi.Connection, error)
- type Instance
- type InstanceListOpts
- type InstanceService
- func (is *InstanceService) GetInstance(resourceId string) (instance *Instance, err error)
- func (is *InstanceService) GetInstanceList(opts *InstanceListOpts) ([]*Instance, error)
- func (is *InstanceService) InstanceCreate(name string, config *ovirtconfigv1.OvirtMachineProviderSpec, cmd string, ...) (instance *Instance, err error)
- func (is *InstanceService) InstanceDelete(id string) error
- type NetworkService
- type SshKeyPair
Constants ¶
View Source
const CloudsSecretKey = "ovirt.conf"
Variables ¶
This section is empty.
Functions ¶
func GetOvirtConnectionConf ¶
func GetOvirtConnectionConf(kubeClient kubernetes.Interface, namespace string, secretName string) (ovirtapi.Connection, error)
Types ¶
type InstanceListOpts ¶
type InstanceListOpts struct { // Name of the image in URL format. Image string `q:"image"` // Name of the flavor in URL format. Flavor string `q:"flavor"` // Name of the server as a string; can be queried with regular expressions. // Realize that ?name=bob returns both bob and bobb. If you need to match bob // only, you can use a regular expression matching the syntax of the // underlying database server implemented for Compute. Name string `q:"name"` }
type InstanceService ¶
type InstanceService struct {
// contains filtered or unexported fields
}
func NewInstanceService ¶
func NewInstanceService() (*InstanceService, error)
func NewInstanceServiceFromConf ¶
func NewInstanceServiceFromConf(connection ovirtapi.Connection) (*InstanceService, error)
func NewInstanceServiceFromMachine ¶
func NewInstanceServiceFromMachine(kubeClient kubernetes.Interface, machine *clusterv1.Machine) (*InstanceService, error)
TODO: Eventually we'll have a NewInstanceServiceFromCluster too
func (*InstanceService) GetInstance ¶
func (is *InstanceService) GetInstance(resourceId string) (instance *Instance, err error)
func (*InstanceService) GetInstanceList ¶
func (is *InstanceService) GetInstanceList(opts *InstanceListOpts) ([]*Instance, error)
func (*InstanceService) InstanceCreate ¶
func (is *InstanceService) InstanceCreate(name string, config *ovirtconfigv1.OvirtMachineProviderSpec, cmd string, keyName string) (instance *Instance, err error)
func (*InstanceService) InstanceDelete ¶
func (is *InstanceService) InstanceDelete(id string) error
type NetworkService ¶
type NetworkService struct {
// contains filtered or unexported fields
}
NetworkService interfaces with the OpenStack Networking API. It will create a network related infrastructure for the cluster, like network, subnet, router.
func NewNetworkService ¶
func NewNetworkService(client *gophercloud.ServiceClient) (*NetworkService, error)
NewNetworkService returns an instance for the OpenStack Networking API
func (*NetworkService) Reconcile ¶
func (s *NetworkService) Reconcile(clusterName string, desired ovirtconfigv1.OvirtClusterProviderSpec, status *ovirtconfigv1.OvirtClusterProviderStatus) error
Reconcile the Network for a given cluster
type SshKeyPair ¶
type SshKeyPair struct { Name string `json:"name"` // PublicKey is the public key from this pair, in OpenSSH format. // "ssh-rsa AAAAB3Nz..." PublicKey string `json:"public_key"` // PrivateKey is the private key from this pair, in PEM format. // "-----BEGIN RSA PRIVATE KEY-----\nMIICXA..." // It is only present if this KeyPair was just returned from a Create call. PrivateKey string `json:"private_key"` }
Click to show internal directories.
Click to hide internal directories.