spaces

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Auth struct {
		Access, Secret string
	}
	Region, Space, Path string
	Cache               time.Duration
}

Config contains the Spaces credentials and config

type Driver

type Driver struct {
	Config Config
	// contains filtered or unexported fields
}

Driver defines a filesystem-based storage driver

func (*Driver) Connect

func (d *Driver) Connect()

Connect setus up the Spaces client

func (*Driver) Read

func (d *Driver) Read(path string) ([]byte, error)

Jump to

Keyboard shortcuts

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