filesystem

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// DefaultFilePermissions is the default permission octal for the file that
	// holds the blob content.
	DefaultFilePermissions = os.FileMode(0640)

	// DefaultDirPermissions is the default permission octal for all directories created
	// as part of a key's path.
	DefaultDirPermissions = os.FileMode(0740)
)

Variables

This section is empty.

Functions

func New

func New(u url.URL) (storage.BlobStore, error)

Types

type Filesystem

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

func (*Filesystem) Delete

func (fs *Filesystem) Delete(ctx context.Context, key string, opts storage.DeleteOptions) error

func (*Filesystem) Get

func (fs *Filesystem) Get(ctx context.Context, key string, src storage.Source, opts storage.GetOptions) (err error)

func (*Filesystem) Put

func (fs *Filesystem) Put(ctx context.Context, key string, sink storage.Sink, opts storage.PutOptions) (err error)

type Meta

type Meta struct {
	ContentType string `json:"Content-Type"`
}

Jump to

Keyboard shortcuts

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