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) CreatePort(ip string, networkID string, subnetID string) (string, error)
- func (s *DataSource) Delete(ctx context.Context, name string) error
- func (s *DataSource) DeletePort(id string) error
- func (s *DataSource) FindFlavorID(name string) (string, error)
- func (s *DataSource) FindImageID(name string) (string, error)
- func (s *DataSource) FindNetworkID(name string) (string, error)
- func (s *DataSource) FindPortByDeviceID(deviceID string) (string, error)
- func (s *DataSource) FindServerID(name string) (string, error)
- func (s *DataSource) FindSubnetIDByNetwork(cidr string, networkID string) (string, 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 (*DataSource) CreatePort ¶
CreatePort connected to a network
func (*DataSource) DeletePort ¶
func (s *DataSource) DeletePort(id string) error
func (*DataSource) FindFlavorID ¶
func (s *DataSource) FindFlavorID(name string) (string, error)
FindFlavorID retrieves the flavor UUID from name
func (*DataSource) FindImageID ¶
func (s *DataSource) FindImageID(name string) (string, error)
FindImageID retrieves the image UUID from name
func (*DataSource) FindNetworkID ¶
func (s *DataSource) FindNetworkID(name string) (string, error)
FindNetworkID retrieves the network from name
func (*DataSource) FindPortByDeviceID ¶
func (s *DataSource) FindPortByDeviceID(deviceID string) (string, error)
FindPortByDeviceID retrieves the port UUID attached to an instance
func (*DataSource) FindServerID ¶
func (s *DataSource) FindServerID(name string) (string, error)
FindServerID retrieves the instance UUID by name
func (*DataSource) FindSubnetIDByNetwork ¶
func (s *DataSource) FindSubnetIDByNetwork(cidr string, networkID string) (string, error)
FindSubnetIDByNetwork retrieves the subnet UUID from CIDR by Network
Click to show internal directories.
Click to hide internal directories.