drivers

package
v0.0.0-...-2637142 Latest Latest
Warning

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

Go to latest
Published: May 4, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmazonS3Driver

type AmazonS3Driver struct {
	Name          string
	Username      string
	Apikey        string
	Layout        string
	Origin        string
	Containername string
	Connection    *s3.S3
	Logger        *log.Logger
}

func (*AmazonS3Driver) Authenticate

func (d *AmazonS3Driver) Authenticate() bool

func (*AmazonS3Driver) Connect

func (d *AmazonS3Driver) Connect() bool

func (*AmazonS3Driver) Upload

func (d *AmazonS3Driver) Upload(rdb []byte) bool

type CloudFilesDriver

type CloudFilesDriver struct {
	Name          string
	Username      string
	Apikey        string
	Authurl       string
	Layout        string
	Origin        string
	Containername string
	Connection    swift.Connection
	Logger        *log.Logger
}

func (*CloudFilesDriver) Authenticate

func (d *CloudFilesDriver) Authenticate() bool

func (*CloudFilesDriver) Connect

func (d *CloudFilesDriver) Connect() bool

func (*CloudFilesDriver) Upload

func (d *CloudFilesDriver) Upload(data []byte) bool

type Driver

type Driver interface {
	Connect() bool
	Authenticate() bool
	Upload(rdb []byte) bool
}

type LocalFileDriver

type LocalFileDriver struct {
	Name          string
	Layout        string
	Containername string
	Logger        *log.Logger
}

LocalFileDriver provides a means to store the dump data locally Containername is the directory to store the dump in

func (*LocalFileDriver) Authenticate

func (d *LocalFileDriver) Authenticate() bool

func (*LocalFileDriver) Connect

func (d *LocalFileDriver) Connect() bool

func (*LocalFileDriver) Upload

func (d *LocalFileDriver) Upload(data []byte) bool

type MissingDriver

type MissingDriver struct {
	Name       string
	Username   string
	Apikey     string
	Authurl    string
	Connection swift.Connection
	Logger     *log.Logger
}

func (*MissingDriver) Authenticate

func (d *MissingDriver) Authenticate() bool

func (*MissingDriver) Connect

func (d *MissingDriver) Connect() bool

func (*MissingDriver) Upload

func (d *MissingDriver) Upload(rdb []byte) bool

Jump to

Keyboard shortcuts

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