disk

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disk

type Disk struct {
	Host string
	Path string
}

Disk client

func NewEngine

func NewEngine(host, path string) *Disk

NewEngine struct

func (*Disk) CreateBucket

func (d *Disk) CreateBucket(bucketName, region string) error

CreateBucket create bucket

func (*Disk) DeleteFile

func (d *Disk) DeleteFile(bucketName, fileName string) error

DeleteFile delete file

func (*Disk) FilePath

func (d *Disk) FilePath(bucketName, fileName string) string

FilePath for store path + file name

func (*Disk) GetFile

func (d *Disk) GetFile(bucketName, fileName string) string

GetFile for storage host + bucket + filename

func (*Disk) UploadFile

func (d *Disk) UploadFile(bucketName, fileName string, content []byte) error

UploadFile to s3 server

Source Files

Jump to

Keyboard shortcuts

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