Documentation ¶
Index ¶
- Constants
- func GetEtag(f vfs.File, partSize int64) (string, error)
- type ACL
- type FileInfo
- type Header
- type Policy
- type PolicyConditions
- func (c *PolicyConditions) ACL(acl ACL)
- func (c *PolicyConditions) Bucket(bucket string)
- func (c *PolicyConditions) ContentLengthRange(from, to int)
- func (c *PolicyConditions) Equals(cond, match string)
- func (c *PolicyConditions) Redirect(url string)
- func (c *PolicyConditions) StartsWith(cond, match string)
- func (c *PolicyConditions) SuccessActionRedirect(url string)
- type S3FS
- func (fs *S3FS) GetLifecycle()
- func (fs *S3FS) Lstat(name string) (os.FileInfo, error)
- func (fs *S3FS) Mkdir(name string, perm os.FileMode) error
- func (fs *S3FS) OpenFile(name string, flag int, perm os.FileMode) (vfs.File, error)
- func (fs *S3FS) PathSeparator() uint8
- func (fs *S3FS) ReadDir(path string) ([]os.FileInfo, error)
- func (fs *S3FS) Remove(name string) error
- func (fs *S3FS) Rename(oldpath, newpath string) error
- func (fs *S3FS) Stat(name string) (os.FileInfo, error)
- type Stat
- type Writer
Constants ¶
View Source
const ( MaxObjectSize = 8 * 1024 * 1024 * 1024 * 1024 PartSize = 8 * 1024 * 1024 MaxNumParts = 10000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Policy ¶
type Policy policyMap
func (Policy) Conditions ¶
func (p Policy) Conditions() *PolicyConditions
func (Policy) SetExpiration ¶
type PolicyConditions ¶
type PolicyConditions []interface{}
func (*PolicyConditions) ACL ¶
func (c *PolicyConditions) ACL(acl ACL)
func (*PolicyConditions) Bucket ¶
func (c *PolicyConditions) Bucket(bucket string)
func (*PolicyConditions) ContentLengthRange ¶
func (c *PolicyConditions) ContentLengthRange(from, to int)
func (*PolicyConditions) Equals ¶
func (c *PolicyConditions) Equals(cond, match string)
func (*PolicyConditions) Redirect ¶
func (c *PolicyConditions) Redirect(url string)
func (*PolicyConditions) StartsWith ¶
func (c *PolicyConditions) StartsWith(cond, match string)
func (*PolicyConditions) SuccessActionRedirect ¶
func (c *PolicyConditions) SuccessActionRedirect(url string)
type S3FS ¶
type S3FS struct { // Bucket is the S3 bucket to use Bucket string // AccessKey is the S3 access key AccessKey string // Secret is the S3 secret Secret string Proto string Host string // contains filtered or unexported fields }
A S3FS that prefixes the path in each vfs.Filesystem operation.
func (*S3FS) GetLifecycle ¶
func (fs *S3FS) GetLifecycle()
func (*S3FS) PathSeparator ¶
PathSeparator implements vfs.Filesystem.
type Stat ¶
type Stat struct { Key string LastModified string ETag string // ETag value, without double quotes. Size string StorageClass string OwnerID string `xml:"Owner>ID"` OwnerName string `xml:"Owner>DisplayName"` }
Stat contains information about an S3 object or directory. It is the "underlying data source" returned by method Sys for each FileInfo produced by this package.
fi.Sys().(*s3util.Stat)
For the meaning of these fields, see http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html.
type Writer ¶
type Writer interface { io.WriteCloser // Abort aborts the current write/upload operation Abort() error }
Click to show internal directories.
Click to hide internal directories.