s3driver

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

README

S3-volume-driver

This repo contains code to create and mount a s3 based filesystem for cloud foundry applications.

For the documentation please go to the repo of the bosh release associated: https://github.com/orange-cloudfoundry/s3-volume-release

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionInfo

type ConnectionInfo struct {
	AccessKeyId     string            `mapstructure:"access_key_id" json:"-"`
	Bucket          string            `mapstructure:"bucket"`
	SecretAccessKey string            `mapstructure:"secret_access_key" json:"-"`
	Endpoint        string            `mapstructure:"endpoint"`
	Region          string            `mapstructure:"region"`
	RegionSet       bool              `mapstructure:"region_set"`
	StorageClass    string            `mapstructure:"storage_class"`
	UseContentType  bool              `mapstructure:"use_content_type"`
	UseSSE          bool              `mapstructure:"use_sse"`
	UseKMS          bool              `mapstructure:"use_kms"`
	KMSKeyID        string            `mapstructure:"kms_key_id" json:"-"`
	ACL             string            `mapstructure:"acl"`
	Subdomain       bool              `mapstructure:"subdomain"`
	MountOptions    map[string]string `mapstructure:"mount_options"`
}

type OsHelper

type OsHelper interface {
	Umask(mask int) (oldmask int)
}

type S3Driver

type S3Driver struct {
	// contains filtered or unexported fields
}

func NewS3Driver

func NewS3Driver(
	logger lager.Logger,
	os osshim.Os,
	filepath filepathshim.Filepath,
	ioutil ioutilshim.Ioutil,
	time timeshim.Time,
	mountChecker mountchecker.MountChecker,
	mountPathRoot string,
	oshelper OsHelper,
	invoker invoker.Invoker,
	mounterPath string,
) *S3Driver

func (S3Driver) Activate

func (S3Driver) Capabilities

func (*S3Driver) Create

func (*S3Driver) Drain

func (d *S3Driver) Drain(env dockerdriver.Env) error

func (S3Driver) Get

func (S3Driver) List

func (*S3Driver) Mount

func (S3Driver) Path

func (*S3Driver) Purge

func (d *S3Driver) Purge(env dockerdriver.Env, path string)

func (*S3Driver) Remove

func (*S3Driver) Unmount

type S3VolumeInfo

type S3VolumeInfo struct {
	ConnectionInfo ConnectionInfo

	dockerdriver.VolumeInfo
	// contains filtered or unexported fields
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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