Documentation
¶
Index ¶
- func GenerateCloudConfig(options *CloudConfigOpts) ([]byte, error)
- type CloudConfigOpts
- type DataSource
- func (s *DataSource) Create(ctx context.Context, host *config.Host, cloud *config.Cloud) error
- func (s *DataSource) Delete(ctx context.Context, name string) error
- func (s *DataSource) FindFlavorID(ctx context.Context, name string) (string, error)
- func (s *DataSource) FindImageID(ctx context.Context, name string) (string, error)
- func (s *DataSource) FindNetworkID(ctx context.Context, name string) (string, error)
- func (s *DataSource) FindServer(ctx context.Context, name string) (egoscale.VirtualMachine, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCloudConfig ¶
func GenerateCloudConfig(options *CloudConfigOpts) ([]byte, error)
Types ¶
type CloudConfigOpts ¶
type DataSource ¶
type DataSource struct {
// contains filtered or unexported fields
}
func New ¶
func New( endpoint string, apiKey string, apiSecret string, zoneName string, ) *DataSource
func (*DataSource) FindFlavorID ¶
FindFlavorID retrieves the flavor UUID from name
func (*DataSource) FindImageID ¶
FindImageID retrieves the image UUID from name
func (*DataSource) FindNetworkID ¶
FindNetworkID retrieves the network UUID from name
func (*DataSource) FindServer ¶
func (s *DataSource) FindServer( ctx context.Context, name string, ) (egoscale.VirtualMachine, error)
Click to show internal directories.
Click to hide internal directories.