Documentation ¶
Index ¶
- Constants
- func String(v string) *string
- type AmazonS3
- type Bucket
- func (b *Bucket) AddObject(obj *S3Object, path string)
- func (b *Bucket) AddSecretObject(obj *S3Object, path string)
- func (b *Bucket) DeleteObject(path string) error
- func (b *Bucket) GetObjectByte(path string) ([]byte, error)
- func (b *Bucket) GetSecretURL(path string) (string, error)
- func (b *Bucket) GetSecretURLWithExpire(path string, expire uint64) (string, error)
- func (b *Bucket) GetURL(path string) (string, error)
- func (b *Bucket) Put() error
- type FileBuffer
- type S3Object
Constants ¶
View Source
const ( ACLAuthenticatedRead = "authenticated-read" ACLPrivate = "private" ACLPublicRead = "public-read" ACLPublicReadWrite = "public-read-write" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AmazonS3 ¶
type AmazonS3 struct {
// contains filtered or unexported fields
}
wrapped struct for S3
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
struct for bucket
func (*Bucket) AddSecretObject ¶
add object to write spool (w/ ACL permission)
func (*Bucket) DeleteObject ¶
delete object of target path
func (*Bucket) GetObjectByte ¶
fetch bytes of object from target S3 path
func (*Bucket) GetSecretURL ¶
fetch url of target S3 object w/ ACL permission (url expires in 3min)
func (*Bucket) GetSecretURLWithExpire ¶
fetch url of target S3 object w/ ACL permission (url expires in `expire` value seconds) ** this isn't work **
type FileBuffer ¶
wrapped struct for io.ReadSeeker alternative
func NewFileBuffer ¶
func NewFileBuffer(b []byte) *FileBuffer
func (*FileBuffer) Bytes ¶
func (f *FileBuffer) Bytes() []byte
func (*FileBuffer) Close ¶
func (f *FileBuffer) Close() error
type S3Object ¶
type S3Object struct {
// contains filtered or unexported fields
}
struct for S3 upload
func NewS3ObjectCopy ¶
Create new S3Object From File and copy byte data
func NewS3ObjectString ¶
Create new S3Object From string
func (*S3Object) SetTypeAsText ¶
func (o *S3Object) SetTypeAsText()
Click to show internal directories.
Click to hide internal directories.