Documentation ¶
Index ¶
- type ClientFactory
- func (c *ClientFactory) GetDnsClient() *egoscale.Client
- func (c *ClientFactory) GetExoscaleClient() *egoscale.Client
- func (c *ClientFactory) GetExoscaleV2Context(zoneName string, ctx context.Context) context.Context
- func (c *ClientFactory) GetRunstatusClient() *egoscale.Client
- func (c *ClientFactory) GetS3Client(zoneName string) (*s3.S3, error)
- type DeletePlugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
func NewClientFactory ¶
func NewClientFactory(apiKey string, apiSecret string) *ClientFactory
func (*ClientFactory) GetDnsClient ¶
func (c *ClientFactory) GetDnsClient() *egoscale.Client
func (*ClientFactory) GetExoscaleClient ¶
func (c *ClientFactory) GetExoscaleClient() *egoscale.Client
func (*ClientFactory) GetExoscaleV2Context ¶
func (*ClientFactory) GetRunstatusClient ¶
func (c *ClientFactory) GetRunstatusClient() *egoscale.Client
func (*ClientFactory) GetS3Client ¶
func (c *ClientFactory) GetS3Client(zoneName string) (*s3.S3, error)
type DeletePlugin ¶
type DeletePlugin interface { // Return a unique key for this plugin GetKey() string // Return a parameter list with descriptions. GetParameters() map[string]string // Set a parameter. The plugin may return an error if the configuration value is not valid or no such configuration // option exists. Parameter names will be passed lowercase, separated by a dash (-) even when the input was sent // with an underscore (-) SetParameter(name string, value string) error // Run the deletion process. Will only be called if a deletion of that particular resource is requested. Should // handle failures to delete the resource. Run(client *ClientFactory, ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.