clients

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 Instance

type Instance struct {
	ovirtapi.VM
}

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

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL