local

package
v0.0.0-...-d22e7c3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

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

Local storage struct

func New

func New(ctx context.Context, bucketpath string, opts *Options) (*Local, error)

New local storage

func (*Local) Bucket

func (l *Local) Bucket() *blob.Bucket

Bucket of local storage

func (*Local) BucketName

func (l *Local) BucketName() string

BucketName return name of path in local

func (*Local) BucketURL

func (l *Local) BucketURL() string

BucketURL return the url of blob storage bucket

func (*Local) Close

func (l *Local) Close() error

Close will close the local bucket

func (*Local) Name

func (l *Local) Name() string

Name return the name of provider

type Options

type Options struct {
	// delete bucket when closing the storage
	DeleteOnClose bool
}

Options of local storage

Jump to

Keyboard shortcuts

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