dockerVolumeS3

package
v0.0.0-...-530d9d1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3fsDriver

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

S3fsDriver is a volume driver over s3fs

func NewDriver

func NewDriver() (*S3fsDriver, error)

NewDriver creates a new S3FS driver

func (*S3fsDriver) Capabilities

func (d *S3fsDriver) Capabilities() *volume.CapabilitiesResponse

Capabilities returns capabilities

func (*S3fsDriver) Create

func (d *S3fsDriver) Create(req *volume.CreateRequest) error

Create creates a volume

func (*S3fsDriver) Get

Get gets a volume

func (*S3fsDriver) List

func (d *S3fsDriver) List() (*volume.ListResponse, error)

List lists volumes

func (*S3fsDriver) Lock

func (d *S3fsDriver) Lock(bucket string, object string) error

Lock locks an object

func (*S3fsDriver) Mount

Mount mounts a volume

func (*S3fsDriver) Path

Path provides the path

func (*S3fsDriver) Remove

func (d *S3fsDriver) Remove(req *volume.RemoveRequest) error

Remove removes a volume

func (*S3fsDriver) UnLock

func (d *S3fsDriver) UnLock(bucket string, object string) error

UnLock unlocks an object

func (*S3fsDriver) Unmount

func (d *S3fsDriver) Unmount(req *volume.UnmountRequest) error

Unmount unmounts a volume

type VolConfig

type VolConfig struct {
	Name    string
	Bucket  string
	Options map[string]string
}

VolConfig represents the configuration of a volume

Jump to

Keyboard shortcuts

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