plugin

package
v0.0.0-...-b0bc7de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 (c *ClientFactory) GetExoscaleV2Context(zoneName string, ctx context.Context) context.Context

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL