Documentation ¶
Index ¶
- type ErrorTraceProvider
- func (w ErrorTraceProvider) AddPublicIPToVIP(vip *resources.VIP) (err error)
- func (w ErrorTraceProvider) BindHostToVIP(vip *resources.VIP, host *resources.Host) (err error)
- func (w ErrorTraceProvider) Build(something map[string]interface{}) (p Provider, err error)
- func (w ErrorTraceProvider) CreateGateway(req resources.GatewayRequest) (host *resources.Host, content *userdata.Content, err error)
- func (w ErrorTraceProvider) CreateHost(request resources.HostRequest) (_ *resources.Host, _ *userdata.Content, err error)
- func (w ErrorTraceProvider) CreateKeyPair(name string) (pairs *resources.KeyPair, err error)
- func (w ErrorTraceProvider) CreateNetwork(req resources.NetworkRequest) (net *resources.Network, err error)
- func (w ErrorTraceProvider) CreateVIP(networkID string, description string) (_ *resources.VIP, err error)
- func (w ErrorTraceProvider) CreateVolume(request resources.VolumeRequest) (_ *resources.Volume, err error)
- func (w ErrorTraceProvider) CreateVolumeAttachment(request resources.VolumeAttachmentRequest) (_ string, err error)
- func (w ErrorTraceProvider) DeleteGateway(networkID string) (err error)
- func (w ErrorTraceProvider) DeleteHost(id string) (err error)
- func (w ErrorTraceProvider) DeleteKeyPair(id string) (err error)
- func (w ErrorTraceProvider) DeleteNetwork(id string) (err error)
- func (w ErrorTraceProvider) DeleteVIP(vip *resources.VIP) (err error)
- func (w ErrorTraceProvider) DeleteVolume(id string) (err error)
- func (w ErrorTraceProvider) DeleteVolumeAttachment(serverID, id string) (err error)
- func (w ErrorTraceProvider) GetAuthenticationOptions() (cfg providers.Config, err error)
- func (w ErrorTraceProvider) GetCapabilities() providers.Capabilities
- func (w ErrorTraceProvider) GetConfigurationOptions() (cfg providers.Config, err error)
- func (w ErrorTraceProvider) GetHostByName(name string) (_ *resources.Host, err error)
- func (w ErrorTraceProvider) GetHostState(something interface{}) (_ HostState.Enum, err error)
- func (w ErrorTraceProvider) GetImage(id string) (images *resources.Image, err error)
- func (w ErrorTraceProvider) GetKeyPair(id string) (pairs *resources.KeyPair, err error)
- func (w ErrorTraceProvider) GetName() string
- func (w ErrorTraceProvider) GetNetwork(id string) (net *resources.Network, err error)
- func (w ErrorTraceProvider) GetNetworkByName(name string) (net *resources.Network, err error)
- func (w ErrorTraceProvider) GetTemplate(id string) (templates *resources.HostTemplate, err error)
- func (w ErrorTraceProvider) GetTenantParameters() map[string]interface{}
- func (w ErrorTraceProvider) GetVolume(id string) (_ *resources.Volume, err error)
- func (w ErrorTraceProvider) GetVolumeAttachment(serverID, id string) (_ *resources.VolumeAttachment, err error)
- func (w ErrorTraceProvider) InspectHost(something interface{}) (_ *resources.Host, err error)
- func (w ErrorTraceProvider) ListAvailabilityZones() (zones map[string]bool, err error)
- func (w ErrorTraceProvider) ListHosts() (_ []*resources.Host, err error)
- func (w ErrorTraceProvider) ListImages(all bool) (images []resources.Image, err error)
- func (w ErrorTraceProvider) ListKeyPairs() (pairs []resources.KeyPair, err error)
- func (w ErrorTraceProvider) ListNetworks() (net []*resources.Network, err error)
- func (w ErrorTraceProvider) ListRegions() (regions []string, err error)
- func (w ErrorTraceProvider) ListTemplates(all bool) (templates []resources.HostTemplate, err error)
- func (w ErrorTraceProvider) ListVolumeAttachments(serverID string) (_ []resources.VolumeAttachment, err error)
- func (w ErrorTraceProvider) ListVolumes() (_ []resources.Volume, err error)
- func (w ErrorTraceProvider) RebootHost(id string) (err error)
- func (w ErrorTraceProvider) ResizeHost(id string, request resources.SizingRequirements) (_ *resources.Host, err error)
- func (w ErrorTraceProvider) StartHost(id string) (err error)
- func (w ErrorTraceProvider) StopHost(id string) (err error)
- func (w ErrorTraceProvider) UnbindHostFromVIP(vip *resources.VIP, host *resources.Host) (err error)
- type LoggedProvider
- func (w LoggedProvider) AddPublicIPToVIP(vip *resources.VIP) error
- func (w LoggedProvider) BindHostToVIP(vip *resources.VIP, host *resources.Host) error
- func (w LoggedProvider) Build(something map[string]interface{}) (Provider, error)
- func (w LoggedProvider) CreateGateway(req resources.GatewayRequest) (*resources.Host, *userdata.Content, error)
- func (w LoggedProvider) CreateHost(request resources.HostRequest) (*resources.Host, *userdata.Content, error)
- func (w LoggedProvider) CreateKeyPair(name string) (*resources.KeyPair, error)
- func (w LoggedProvider) CreateNetwork(req resources.NetworkRequest) (*resources.Network, error)
- func (w LoggedProvider) CreateVIP(networkID string, description string) (*resources.VIP, error)
- func (w LoggedProvider) CreateVolume(request resources.VolumeRequest) (*resources.Volume, error)
- func (w LoggedProvider) CreateVolumeAttachment(request resources.VolumeAttachmentRequest) (string, error)
- func (w LoggedProvider) DeleteGateway(networkID string) error
- func (w LoggedProvider) DeleteHost(id string) error
- func (w LoggedProvider) DeleteKeyPair(id string) error
- func (w LoggedProvider) DeleteNetwork(id string) error
- func (w LoggedProvider) DeleteVIP(vip *resources.VIP) error
- func (w LoggedProvider) DeleteVolume(id string) error
- func (w LoggedProvider) DeleteVolumeAttachment(serverID, id string) error
- func (w LoggedProvider) GetAuthenticationOptions() (providers.Config, error)
- func (w LoggedProvider) GetCapabilities() providers.Capabilities
- func (w LoggedProvider) GetConfigurationOptions() (providers.Config, error)
- func (w LoggedProvider) GetHostByName(name string) (*resources.Host, error)
- func (w LoggedProvider) GetHostState(something interface{}) (HostState.Enum, error)
- func (w LoggedProvider) GetImage(id string) (*resources.Image, error)
- func (w LoggedProvider) GetKeyPair(id string) (*resources.KeyPair, error)
- func (w LoggedProvider) GetName() string
- func (w LoggedProvider) GetNetwork(id string) (*resources.Network, error)
- func (w LoggedProvider) GetNetworkByName(name string) (*resources.Network, error)
- func (w LoggedProvider) GetTemplate(id string) (*resources.HostTemplate, error)
- func (w LoggedProvider) GetTenantParameters() map[string]interface{}
- func (w LoggedProvider) GetVolume(id string) (*resources.Volume, error)
- func (w LoggedProvider) GetVolumeAttachment(serverID, id string) (*resources.VolumeAttachment, error)
- func (w LoggedProvider) InspectHost(something interface{}) (*resources.Host, error)
- func (w LoggedProvider) ListAvailabilityZones() (map[string]bool, error)
- func (w LoggedProvider) ListHosts() ([]*resources.Host, error)
- func (w LoggedProvider) ListImages(all bool) ([]resources.Image, error)
- func (w LoggedProvider) ListKeyPairs() ([]resources.KeyPair, error)
- func (w LoggedProvider) ListNetworks() ([]*resources.Network, error)
- func (w LoggedProvider) ListRegions() ([]string, error)
- func (w LoggedProvider) ListTemplates(all bool) ([]resources.HostTemplate, error)
- func (w LoggedProvider) ListVolumeAttachments(serverID string) ([]resources.VolumeAttachment, error)
- func (w LoggedProvider) ListVolumes() ([]resources.Volume, error)
- func (w LoggedProvider) RebootHost(id string) error
- func (w LoggedProvider) ResizeHost(id string, request resources.SizingRequirements) (*resources.Host, error)
- func (w LoggedProvider) StartHost(id string) error
- func (w LoggedProvider) StopHost(id string) error
- func (w LoggedProvider) UnbindHostFromVIP(vip *resources.VIP, host *resources.Host) error
- type Provider
- type WrappedProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorTraceProvider ¶
type ErrorTraceProvider WrappedProvider
ErrorTraceProvider ...
func NewErrorTraceProvider ¶
func NewErrorTraceProvider(innerProvider Provider, name string) *ErrorTraceProvider
NewErrorTraceProvider ...
func (ErrorTraceProvider) AddPublicIPToVIP ¶
func (w ErrorTraceProvider) AddPublicIPToVIP(vip *resources.VIP) (err error)
AddPublicIPToVIP adds a public IP to VIP
func (ErrorTraceProvider) BindHostToVIP ¶
BindHostToVIP makes the host passed as parameter an allowed "target" of the VIP
func (ErrorTraceProvider) Build ¶
func (w ErrorTraceProvider) Build(something map[string]interface{}) (p Provider, err error)
Build ...
func (ErrorTraceProvider) CreateGateway ¶
func (w ErrorTraceProvider) CreateGateway(req resources.GatewayRequest) (host *resources.Host, content *userdata.Content, err error)
CreateGateway ...
func (ErrorTraceProvider) CreateHost ¶
func (w ErrorTraceProvider) CreateHost(request resources.HostRequest) (_ *resources.Host, _ *userdata.Content, err error)
CreateHost ...
func (ErrorTraceProvider) CreateKeyPair ¶
func (w ErrorTraceProvider) CreateKeyPair(name string) (pairs *resources.KeyPair, err error)
CreateKeyPair ...
func (ErrorTraceProvider) CreateNetwork ¶
func (w ErrorTraceProvider) CreateNetwork(req resources.NetworkRequest) (net *resources.Network, err error)
CreateNetwork ...
func (ErrorTraceProvider) CreateVIP ¶
func (w ErrorTraceProvider) CreateVIP(networkID string, description string) (_ *resources.VIP, err error)
CreateVIP ...
func (ErrorTraceProvider) CreateVolume ¶
func (w ErrorTraceProvider) CreateVolume(request resources.VolumeRequest) (_ *resources.Volume, err error)
CreateVolume ...
func (ErrorTraceProvider) CreateVolumeAttachment ¶
func (w ErrorTraceProvider) CreateVolumeAttachment(request resources.VolumeAttachmentRequest) (_ string, err error)
CreateVolumeAttachment ...
func (ErrorTraceProvider) DeleteGateway ¶
func (w ErrorTraceProvider) DeleteGateway(networkID string) (err error)
DeleteGateway ...
func (ErrorTraceProvider) DeleteHost ¶
func (w ErrorTraceProvider) DeleteHost(id string) (err error)
DeleteHost ...
func (ErrorTraceProvider) DeleteKeyPair ¶
func (w ErrorTraceProvider) DeleteKeyPair(id string) (err error)
DeleteKeyPair ...
func (ErrorTraceProvider) DeleteNetwork ¶
func (w ErrorTraceProvider) DeleteNetwork(id string) (err error)
DeleteNetwork ...
func (ErrorTraceProvider) DeleteVIP ¶
func (w ErrorTraceProvider) DeleteVIP(vip *resources.VIP) (err error)
DeleteVIP deletes the port corresponding to the VIP
func (ErrorTraceProvider) DeleteVolume ¶
func (w ErrorTraceProvider) DeleteVolume(id string) (err error)
DeleteVolume ...
func (ErrorTraceProvider) DeleteVolumeAttachment ¶
func (w ErrorTraceProvider) DeleteVolumeAttachment(serverID, id string) (err error)
DeleteVolumeAttachment ...
func (ErrorTraceProvider) GetAuthenticationOptions ¶
func (w ErrorTraceProvider) GetAuthenticationOptions() (cfg providers.Config, err error)
GetAuthenticationOptions ...
func (ErrorTraceProvider) GetCapabilities ¶
func (w ErrorTraceProvider) GetCapabilities() providers.Capabilities
GetCapabilities ...
func (ErrorTraceProvider) GetConfigurationOptions ¶
func (w ErrorTraceProvider) GetConfigurationOptions() (cfg providers.Config, err error)
GetConfigurationOptions ...
func (ErrorTraceProvider) GetHostByName ¶
func (w ErrorTraceProvider) GetHostByName(name string) (_ *resources.Host, err error)
GetHostByName ...
func (ErrorTraceProvider) GetHostState ¶
func (w ErrorTraceProvider) GetHostState(something interface{}) (_ HostState.Enum, err error)
GetHostState ...
func (ErrorTraceProvider) GetImage ¶
func (w ErrorTraceProvider) GetImage(id string) (images *resources.Image, err error)
GetImage ...
func (ErrorTraceProvider) GetKeyPair ¶
func (w ErrorTraceProvider) GetKeyPair(id string) (pairs *resources.KeyPair, err error)
GetKeyPair ...
func (ErrorTraceProvider) GetNetwork ¶
func (w ErrorTraceProvider) GetNetwork(id string) (net *resources.Network, err error)
GetNetwork ...
func (ErrorTraceProvider) GetNetworkByName ¶
func (w ErrorTraceProvider) GetNetworkByName(name string) (net *resources.Network, err error)
GetNetworkByName ...
func (ErrorTraceProvider) GetTemplate ¶
func (w ErrorTraceProvider) GetTemplate(id string) (templates *resources.HostTemplate, err error)
GetTemplate ...
func (ErrorTraceProvider) GetTenantParameters ¶
func (w ErrorTraceProvider) GetTenantParameters() map[string]interface{}
GetTenantParameters ...
func (ErrorTraceProvider) GetVolume ¶
func (w ErrorTraceProvider) GetVolume(id string) (_ *resources.Volume, err error)
GetVolume ...
func (ErrorTraceProvider) GetVolumeAttachment ¶
func (w ErrorTraceProvider) GetVolumeAttachment(serverID, id string) (_ *resources.VolumeAttachment, err error)
GetVolumeAttachment ...
func (ErrorTraceProvider) InspectHost ¶
func (w ErrorTraceProvider) InspectHost(something interface{}) (_ *resources.Host, err error)
InspectHost ...
func (ErrorTraceProvider) ListAvailabilityZones ¶
func (w ErrorTraceProvider) ListAvailabilityZones() (zones map[string]bool, err error)
ListAvailabilityZones ...
func (ErrorTraceProvider) ListHosts ¶
func (w ErrorTraceProvider) ListHosts() (_ []*resources.Host, err error)
ListHosts ...
func (ErrorTraceProvider) ListImages ¶
func (w ErrorTraceProvider) ListImages(all bool) (images []resources.Image, err error)
ListImages ...
func (ErrorTraceProvider) ListKeyPairs ¶
func (w ErrorTraceProvider) ListKeyPairs() (pairs []resources.KeyPair, err error)
ListKeyPairs ...
func (ErrorTraceProvider) ListNetworks ¶
func (w ErrorTraceProvider) ListNetworks() (net []*resources.Network, err error)
ListNetworks ...
func (ErrorTraceProvider) ListRegions ¶
func (w ErrorTraceProvider) ListRegions() (regions []string, err error)
ListRegions ...
func (ErrorTraceProvider) ListTemplates ¶
func (w ErrorTraceProvider) ListTemplates(all bool) (templates []resources.HostTemplate, err error)
ListTemplates ...
func (ErrorTraceProvider) ListVolumeAttachments ¶
func (w ErrorTraceProvider) ListVolumeAttachments(serverID string) (_ []resources.VolumeAttachment, err error)
ListVolumeAttachments ...
func (ErrorTraceProvider) ListVolumes ¶
func (w ErrorTraceProvider) ListVolumes() (_ []resources.Volume, err error)
ListVolumes ...
func (ErrorTraceProvider) RebootHost ¶
func (w ErrorTraceProvider) RebootHost(id string) (err error)
RebootHost ...
func (ErrorTraceProvider) ResizeHost ¶
func (w ErrorTraceProvider) ResizeHost(id string, request resources.SizingRequirements) (_ *resources.Host, err error)
ResizeHost ...
func (ErrorTraceProvider) StartHost ¶
func (w ErrorTraceProvider) StartHost(id string) (err error)
StartHost ...
func (ErrorTraceProvider) StopHost ¶
func (w ErrorTraceProvider) StopHost(id string) (err error)
StopHost ...
func (ErrorTraceProvider) UnbindHostFromVIP ¶
UnbindHostFromVIP removes the bind between the VIP and a host
type LoggedProvider ¶
type LoggedProvider WrappedProvider
LoggedProvider ...
func NewLoggedProvider ¶
func NewLoggedProvider(innerProvider Provider, name string) *LoggedProvider
NewLoggedProvider ...
func (LoggedProvider) AddPublicIPToVIP ¶
func (w LoggedProvider) AddPublicIPToVIP(vip *resources.VIP) error
AddPublicIPToVIP adds a public IP to VIP
func (LoggedProvider) BindHostToVIP ¶
BindHostToVIP makes the host passed as parameter an allowed "target" of the VIP
func (LoggedProvider) Build ¶
func (w LoggedProvider) Build(something map[string]interface{}) (Provider, error)
Build ...
func (LoggedProvider) CreateGateway ¶
func (w LoggedProvider) CreateGateway(req resources.GatewayRequest) (*resources.Host, *userdata.Content, error)
CreateGateway ...
func (LoggedProvider) CreateHost ¶
func (w LoggedProvider) CreateHost(request resources.HostRequest) (*resources.Host, *userdata.Content, error)
CreateHost ...
func (LoggedProvider) CreateKeyPair ¶
func (w LoggedProvider) CreateKeyPair(name string) (*resources.KeyPair, error)
CreateKeyPair ...
func (LoggedProvider) CreateNetwork ¶
func (w LoggedProvider) CreateNetwork(req resources.NetworkRequest) (*resources.Network, error)
CreateNetwork ...
func (LoggedProvider) CreateVolume ¶
func (w LoggedProvider) CreateVolume(request resources.VolumeRequest) (*resources.Volume, error)
CreateVolume ...
func (LoggedProvider) CreateVolumeAttachment ¶
func (w LoggedProvider) CreateVolumeAttachment(request resources.VolumeAttachmentRequest) (string, error)
CreateVolumeAttachment ...
func (LoggedProvider) DeleteGateway ¶
func (w LoggedProvider) DeleteGateway(networkID string) error
DeleteGateway ...
func (LoggedProvider) DeleteHost ¶
func (w LoggedProvider) DeleteHost(id string) error
DeleteHost ...
func (LoggedProvider) DeleteKeyPair ¶
func (w LoggedProvider) DeleteKeyPair(id string) error
DeleteKeyPair ...
func (LoggedProvider) DeleteNetwork ¶
func (w LoggedProvider) DeleteNetwork(id string) error
DeleteNetwork ...
func (LoggedProvider) DeleteVIP ¶
func (w LoggedProvider) DeleteVIP(vip *resources.VIP) error
DeleteVIP deletes the port corresponding to the VIP
func (LoggedProvider) DeleteVolume ¶
func (w LoggedProvider) DeleteVolume(id string) error
DeleteVolume ...
func (LoggedProvider) DeleteVolumeAttachment ¶
func (w LoggedProvider) DeleteVolumeAttachment(serverID, id string) error
DeleteVolumeAttachment ...
func (LoggedProvider) GetAuthenticationOptions ¶
func (w LoggedProvider) GetAuthenticationOptions() (providers.Config, error)
GetAuthenticationOptions ...
func (LoggedProvider) GetCapabilities ¶
func (w LoggedProvider) GetCapabilities() providers.Capabilities
GetCapabilities returns the capabilities of the provider
func (LoggedProvider) GetConfigurationOptions ¶
func (w LoggedProvider) GetConfigurationOptions() (providers.Config, error)
GetConfigurationOptions ...
func (LoggedProvider) GetHostByName ¶
func (w LoggedProvider) GetHostByName(name string) (*resources.Host, error)
GetHostByName ...
func (LoggedProvider) GetHostState ¶
func (w LoggedProvider) GetHostState(something interface{}) (HostState.Enum, error)
GetHostState ...
func (LoggedProvider) GetImage ¶
func (w LoggedProvider) GetImage(id string) (*resources.Image, error)
GetImage ...
func (LoggedProvider) GetKeyPair ¶
func (w LoggedProvider) GetKeyPair(id string) (*resources.KeyPair, error)
GetKeyPair ...
func (LoggedProvider) GetNetwork ¶
func (w LoggedProvider) GetNetwork(id string) (*resources.Network, error)
GetNetwork ...
func (LoggedProvider) GetNetworkByName ¶
func (w LoggedProvider) GetNetworkByName(name string) (*resources.Network, error)
GetNetworkByName ...
func (LoggedProvider) GetTemplate ¶
func (w LoggedProvider) GetTemplate(id string) (*resources.HostTemplate, error)
GetTemplate ...
func (LoggedProvider) GetTenantParameters ¶
func (w LoggedProvider) GetTenantParameters() map[string]interface{}
GetTenantParameters ...
func (LoggedProvider) GetVolume ¶
func (w LoggedProvider) GetVolume(id string) (*resources.Volume, error)
GetVolume ...
func (LoggedProvider) GetVolumeAttachment ¶
func (w LoggedProvider) GetVolumeAttachment(serverID, id string) (*resources.VolumeAttachment, error)
GetVolumeAttachment ...
func (LoggedProvider) InspectHost ¶
func (w LoggedProvider) InspectHost(something interface{}) (*resources.Host, error)
InspectHost ...
func (LoggedProvider) ListAvailabilityZones ¶
func (w LoggedProvider) ListAvailabilityZones() (map[string]bool, error)
ListAvailabilityZones ...
func (LoggedProvider) ListHosts ¶
func (w LoggedProvider) ListHosts() ([]*resources.Host, error)
ListHosts ...
func (LoggedProvider) ListImages ¶
func (w LoggedProvider) ListImages(all bool) ([]resources.Image, error)
ListImages ...
func (LoggedProvider) ListKeyPairs ¶
func (w LoggedProvider) ListKeyPairs() ([]resources.KeyPair, error)
ListKeyPairs ...
func (LoggedProvider) ListNetworks ¶
func (w LoggedProvider) ListNetworks() ([]*resources.Network, error)
ListNetworks ...
func (LoggedProvider) ListRegions ¶
func (w LoggedProvider) ListRegions() ([]string, error)
ListRegions ...
func (LoggedProvider) ListTemplates ¶
func (w LoggedProvider) ListTemplates(all bool) ([]resources.HostTemplate, error)
ListTemplates ...
func (LoggedProvider) ListVolumeAttachments ¶
func (w LoggedProvider) ListVolumeAttachments(serverID string) ([]resources.VolumeAttachment, error)
ListVolumeAttachments ...
func (LoggedProvider) ListVolumes ¶
func (w LoggedProvider) ListVolumes() ([]resources.Volume, error)
ListVolumes ...
func (LoggedProvider) RebootHost ¶
func (w LoggedProvider) RebootHost(id string) error
RebootHost ...
func (LoggedProvider) ResizeHost ¶
func (w LoggedProvider) ResizeHost(id string, request resources.SizingRequirements) (*resources.Host, error)
ResizeHost ...
func (LoggedProvider) UnbindHostFromVIP ¶
UnbindHostFromVIP removes the bind between the VIP and a host
type Provider ¶
type Provider interface { Build(map[string]interface{}) (Provider, error) stacks.Stack // ListImages lists available OS images ListImages(all bool) ([]resources.Image, error) // ListTemplates lists available host templates // Host templates are sorted using Dominant Resource Fairness Algorithm ListTemplates(all bool) ([]resources.HostTemplate, error) // GetAuthenticationOptions returns authentication options as a Config GetAuthenticationOptions() (providers.Config, error) // GetConfigurationfgOpts returns configuration options as a Config GetConfigurationOptions() (providers.Config, error) // GetName returns the provider name GetName() string // GetCapabilities returns the capabilities of the provider GetCapabilities() providers.Capabilities // GetTenantParameters returns the tenant parameters as read GetTenantParameters() map[string]interface{} }
Provider is the interface to cloud stack It has to recall Stack api, to serve as Provider AND as Stack
type WrappedProvider ¶
WrappedProvider ...