Documentation ¶
Index ¶
- func FetchVNICProfileByClusterNetwork(con *ovirtsdk.Connection, clusterID string, networkName string) ([]*ovirtsdk.VnicProfile, error)
- func FindHostsInCluster(con *ovirtsdk.Connection, cName string) ([]*ovirtsdk.Host, error)
- func GetClusterName(con *ovirtsdk.Connection, clusterID string) (string, error)
- func LoadOvirtConfig() ([]byte, error)
- func NewConnection() (*ovirtsdk.Connection, error)
- func Platform() (*ovirt.Platform, error)
- func Validate(ic *types.InstallConfig) error
- func ValidateForProvisioning(ic *types.InstallConfig) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchVNICProfileByClusterNetwork ¶
func FetchVNICProfileByClusterNetwork(con *ovirtsdk.Connection, clusterID string, networkName string) ([]*ovirtsdk.VnicProfile, error)
FetchVNICProfileByClusterNetwork returns a list of profiles for the given cluster and network name.
func FindHostsInCluster ¶
FindHostsInCluster returns a list of the hosts that exists in the specified cluster
func GetClusterName ¶
func GetClusterName(con *ovirtsdk.Connection, clusterID string) (string, error)
GetClusterName returns the name of the ovirt cluster with the specified Cluster ID
func LoadOvirtConfig ¶
LoadOvirtConfig from the following location (first wins): 1. OVIRT_CONFIG env variable 2 $defaultOvirtConfigPath See #@Config for the expected format
func NewConnection ¶
func NewConnection() (*ovirtsdk.Connection, error)
NewConnection returns a new client connection to oVirt's API endpoint. It is the responsibility of the caller to close the connection.
func Validate ¶
func Validate(ic *types.InstallConfig) error
Validate executes ovirt specific validation
func ValidateForProvisioning ¶
func ValidateForProvisioning(ic *types.InstallConfig) error
ValidateForProvisioning validates that the install config is valid for provisioning the cluster.
Types ¶
type Config ¶
type Config struct { URL string `yaml:"ovirt_url"` FQDN string `yaml:"ovirt_fqdn"` PemURL string `yaml:"ovirt_pem_url"` Username string `yaml:"ovirt_username"` Password string `yaml:"ovirt_password"` CAFile string `yaml:"ovirt_cafile,omitempty"` Insecure bool `yaml:"ovirt_insecure,omitempty"` CABundle string `yaml:"ovirt_ca_bundle,omitempty"` }
Config holds oVirt api access details