Documentation ¶
Index ¶
- Constants
- type APINotImplemented
- type BucketExists
- type Client
- type Content
- type ContentOnChannel
- type EmptyPath
- type GenericBucketError
- type GenericError
- type GenericFileError
- type GenericObjectError
- type ISBrokenSymlink
- type ISFolder
- type InvalidACLType
- type InvalidArgument
- type InvalidBucketName
- type InvalidMaxKeys
- type InvalidObjectName
- type InvalidQueryURL
- type InvalidRange
- type NotFolder
- type NotFound
- type ObjectExists
- type ObjectNotFound
- type URL
- type URLType
- type UnexpectedError
Constants ¶
const ( Object = iota // Minio and S3 compatible object storage Filesystem // POSIX compatible file systems )
enum types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APINotImplemented ¶
type APINotImplemented struct {
API string
}
APINotImplemented - api not implemented
func (APINotImplemented) Error ¶
func (e APINotImplemented) Error() string
type BucketExists ¶
type BucketExists GenericBucketError
BucketExists - bucket exists
func (BucketExists) Error ¶
func (e BucketExists) Error() string
type Client ¶
type Client interface { // Common operations Stat() (content *Content, err error) List(recursive bool) <-chan ContentOnChannel // Bucket operations MakeBucket() error SetBucketACL(acl string) error // Object operations GetObject(offset, length int64) (body io.ReadCloser, size int64, err error) PutObject(size int64, data io.Reader) error // URL returns back internal url URL() *URL }
Client - client interface
type ContentOnChannel ¶
ContentOnChannel - List contents on channel
type GenericBucketError ¶
type GenericBucketError struct {
Bucket string
}
GenericBucketError - generic bucket operations error
type GenericFileError ¶
type GenericFileError struct {
Path string
}
GenericFileError - generic file error
type GenericObjectError ¶
GenericObjectError - generic object operations error
type ISBrokenSymlink ¶
type ISBrokenSymlink GenericFileError
ISBrokenSymlink (ENOTENT) - file has broken symlink
func (ISBrokenSymlink) Error ¶
func (e ISBrokenSymlink) Error() string
type InvalidACLType ¶
type InvalidACLType struct {
ACL string
}
InvalidACLType - invalid acl type
func (InvalidACLType) Error ¶
func (e InvalidACLType) Error() string
type InvalidArgument ¶
type InvalidArgument GenericError
InvalidArgument - bad arguments provided
func (InvalidArgument) Error ¶
func (e InvalidArgument) Error() string
type InvalidBucketName ¶
type InvalidBucketName GenericBucketError
InvalidBucketName - bucket name invalid (http://goo.gl/wJlzDz)
func (InvalidBucketName) Error ¶
func (e InvalidBucketName) Error() string
type InvalidMaxKeys ¶
type InvalidMaxKeys struct {
MaxKeys int
}
InvalidMaxKeys - invalid maxkeys provided
func (InvalidMaxKeys) Error ¶
func (e InvalidMaxKeys) Error() string
type InvalidObjectName ¶
type InvalidObjectName GenericObjectError
InvalidObjectName - object requested is invalid
func (InvalidObjectName) Error ¶
func (e InvalidObjectName) Error() string
type InvalidQueryURL ¶
type InvalidQueryURL struct {
URL string
}
InvalidQueryURL - generic error
func (InvalidQueryURL) Error ¶
func (e InvalidQueryURL) Error() string
type InvalidRange ¶
type InvalidRange struct {
Offset int64
}
InvalidRange - invalid range requested
func (InvalidRange) Error ¶
func (e InvalidRange) Error() string
type NotFolder ¶
type NotFolder GenericFileError
NotFolder (ENOTDIR) - accessed file is not a folder
type ObjectExists ¶
type ObjectExists GenericObjectError
ObjectExists - object exists
func (ObjectExists) Error ¶
func (e ObjectExists) Error() string
type ObjectNotFound ¶
type ObjectNotFound GenericObjectError
ObjectNotFound - object requested does not exist
func (ObjectNotFound) Error ¶
func (e ObjectNotFound) Error() string
type UnexpectedError ¶
type UnexpectedError GenericError
UnexpectedError - unexpected error
func (UnexpectedError) Error ¶
func (e UnexpectedError) Error() string