Documentation ¶
Index ¶
- Constants
- type APINotImplemented
- type BrokenSymlink
- type BucketExists
- type BucketNameEmpty
- type BucketNameTopLevel
- type Client
- type Config
- type Content
- type EmptyPath
- type GenericBucketError
- type GenericFileError
- type GenericObjectError
- type InvalidBucketName
- type InvalidObjectName
- type InvalidRange
- type ObjectAlreadyExists
- type ObjectMissing
- type PathInsufficientPermission
- type PathIsDir
- type PathNotFound
- type TooManyLevelsSymlink
- type URL
- type URLType
Constants ¶
const ( Object = iota // Minio and S3 compatible cloud storage Filesystem // POSIX compatible file systems )
enum types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APINotImplemented ¶
APINotImplemented - api not implemented
func (APINotImplemented) Error ¶
func (e APINotImplemented) Error() string
type BrokenSymlink ¶
type BrokenSymlink GenericFileError
BrokenSymlink (ENOTENT) - file has broken symlink.
func (BrokenSymlink) Error ¶
func (e BrokenSymlink) Error() string
type BucketExists ¶
type BucketExists GenericBucketError
BucketExists - bucket exists
func (BucketExists) Error ¶
func (e BucketExists) Error() string
type BucketNameEmpty ¶
type BucketNameEmpty struct{}
BucketNameEmpty - bucket name empty (http://goo.gl/wJlzDz)
func (BucketNameEmpty) Error ¶
func (e BucketNameEmpty) Error() string
type BucketNameTopLevel ¶
type BucketNameTopLevel struct{}
BucketNameTopLevel - generic error
func (BucketNameTopLevel) Error ¶
func (e BucketNameTopLevel) Error() string
type Client ¶
type Client interface { // Common operations Stat() (content *Content, err *probe.Error) List(recursive, incomplete bool) <-chan *Content // Bucket operations MakeBucket() *probe.Error GetBucketAccess() (access string, error *probe.Error) SetBucketAccess(access string) *probe.Error // I/O operations Get(offset, length int64) (body io.ReadSeeker, err *probe.Error) Put(data io.ReadSeeker, size int64, contentType string) *probe.Error // I/O operations with expiration // Delete operations Remove(incomplete bool) *probe.Error // GetURL returns back internal url GetURL() URL }
Client - client interface
type Config ¶
type Config struct { AccessKey string SecretKey string Signature string HostURL string AppName string AppVersion string AppComments []string Debug bool }
Config - see http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?RESTAuthentication.html
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 InvalidBucketName ¶
type InvalidBucketName GenericBucketError
InvalidBucketName - bucket name invalid (http://goo.gl/wJlzDz)
func (InvalidBucketName) Error ¶
func (e InvalidBucketName) Error() string
type InvalidObjectName ¶
type InvalidObjectName GenericObjectError
InvalidObjectName - object requested is invalid
func (InvalidObjectName) Error ¶
func (e InvalidObjectName) Error() string
type InvalidRange ¶
type InvalidRange struct {
Offset int64
}
InvalidRange - invalid range requested
func (InvalidRange) Error ¶
func (e InvalidRange) Error() string
type ObjectAlreadyExists ¶
type ObjectAlreadyExists struct {
Object string
}
ObjectAlreadyExists - typed return for MethodNotAllowed
func (ObjectAlreadyExists) Error ¶
func (e ObjectAlreadyExists) Error() string
type ObjectMissing ¶
type ObjectMissing struct{}
ObjectMissing (EINVAL) - object key missing.
func (ObjectMissing) Error ¶
func (e ObjectMissing) Error() string
type PathInsufficientPermission ¶
type PathInsufficientPermission GenericFileError
PathInsufficientPermission (EPERM) - permission denied.
func (PathInsufficientPermission) Error ¶
func (e PathInsufficientPermission) Error() string
type PathNotFound ¶
type PathNotFound GenericFileError
PathNotFound (ENOENT) - file not found.
func (PathNotFound) Error ¶
func (e PathNotFound) Error() string
type TooManyLevelsSymlink ¶
type TooManyLevelsSymlink GenericFileError
TooManyLevelsSymlink (ELOOP) - file has too many levels of symlinks.
func (TooManyLevelsSymlink) Error ¶
func (e TooManyLevelsSymlink) Error() string