fs

package
v0.0.0-...-f3ad2b4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) (bool, error)

Types

type Fs

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

func New

func New(path string) (*Fs, apperror.Error)

func (Fs) BucketConfig

func (fs Fs) BucketConfig(string) kit.BucketConfig

func (Fs) Buckets

func (fs Fs) Buckets() ([]string, apperror.Error)

func (Fs) ClearAll

func (fs Fs) ClearAll() apperror.Error

func (Fs) ClearBucket

func (fs Fs) ClearBucket(bucket string) apperror.Error

func (Fs) ConfigureBucket

func (fs Fs) ConfigureBucket(string, kit.BucketConfig) apperror.Error

func (Fs) CreateBucket

func (fs Fs) CreateBucket(bucket string, _ kit.BucketConfig) apperror.Error

func (Fs) DeleteBucket

func (fs Fs) DeleteBucket(bucket string) apperror.Error

func (Fs) DeleteFile

func (fs Fs) DeleteFile(f kit.File) apperror.Error

func (Fs) DeleteFileById

func (fs Fs) DeleteFileById(bucket, id string) apperror.Error

func (Fs) FileIds

func (fs Fs) FileIds(bucket string) ([]string, apperror.Error)

func (Fs) FilePath

func (fs Fs) FilePath(bucket, file string) string

func (Fs) FileSize

func (fs Fs) FileSize(file kit.File) (int64, apperror.Error)

func (Fs) FileSizeById

func (fs Fs) FileSizeById(bucket, id string) (int64, apperror.Error)

func (Fs) HasBucket

func (fs Fs) HasBucket(bucket string) (bool, apperror.Error)

func (Fs) HasFile

func (fs Fs) HasFile(f kit.File) (bool, apperror.Error)

func (Fs) HasFileById

func (fs Fs) HasFileById(bucket, id string) (bool, apperror.Error)

func (*Fs) Name

func (fs *Fs) Name() string

func (Fs) Reader

func (fs Fs) Reader(f kit.File) (kit.ReadSeekerCloser, apperror.Error)

func (Fs) ReaderById

func (fs Fs) ReaderById(bucket, id string) (kit.ReadSeekerCloser, apperror.Error)

func (*Fs) SetName

func (fs *Fs) SetName(x string)

func (Fs) Writer

func (fs Fs) Writer(f kit.File, create bool) (string, io.WriteCloser, apperror.Error)

func (Fs) WriterById

func (fs Fs) WriterById(bucket, id string, create bool) (string, io.WriteCloser, apperror.Error)

Jump to

Keyboard shortcuts

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