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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
s3driver command

Jump to

Keyboard shortcuts

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