Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCloudProvider ¶
RegisterCloudProvider registers a cloudprovider.Factory by name. This is expected to happen during app startup.
Types ¶
type ArchonInterface ¶
type ArchonInterface interface { EnsureNetwork(clusterName string, network *cluster.Network) (status *cluster.NetworkStatus, err error) EnsureNetworkDeleted(clusterName string, network *cluster.Network) error ListInstances(clusterName string, network *cluster.Network, selector map[string]string) (names []string, instances []*cluster.InstanceStatus, err error) GetInstance(clusterName string, instance *cluster.Instance) (status *cluster.InstanceStatus, err error) EnsureInstance(clusterName string, instance *cluster.Instance) (status *cluster.InstanceStatus, err error) EnsureInstanceDeleted(clusterName string, instance *cluster.Instance) error PublicIP() (PublicIPInterface, bool) PrivateIP() (PrivateIPInterface, bool) }
type Factory ¶
Factory is a function that returns a cloudprovider.Interface. The config parameter provides an io.Reader handler to the factory in order to load specific configurations. If no configuration is provided the parameter is nil.
type Interface ¶
type Interface interface { cloudprovider.Interface Archon() (ArchonInterface, bool) }
func GetCloudProvider ¶
GetCloudProvider creates an instance of the named cloud provider, or nil if the name is not known. The error return is only used if the named provider was known but failed to initialize. The config parameter specifies the io.Reader handler of the configuration file for the cloud provider, or nil for no configuation.