s3

package module
v0.0.0-...-37ed2b5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 26 Imported by: 0

README

s3

Build Status

Swiss army pen-knife for Amazon S3.

  • ls: List buckets or keys
  • get: Download keys
  • cat: Cat keys
  • grep: Search for key containing text
  • sync: Synchronise local to s3, s3 to local or s3 to s3
  • rm: Delete keys
  • mb: Create buckets
  • rb: Delete buckets

Installation

Installation is super-easy, there's no need to install anything, just download the self-contained binary from the github releases page (builds are available for Linux, Mac or Windows and 32-bit or 64-bit): https://github.com/barnybug/s3/releases/

Rename and make the download executable:

$ mv s3-my-platform s3; chmod +x s3

And you're ready to go:

$ ./s3 -h

Alternatively you can instead build from source, you'll need go 1.2 installed, then:

go get github.com/barnybug/s3

Setup

Set the environment variables:

export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...

Usage

List buckets:

s3 ls

List keys in a bucket under a prefix:

s3 ls s3://bucket/prefix

Download all the contents (recursively) under the path to local:

s3 get s3://bucket/path

Cat (stream to stdout) all the contents under the path:

s3 cat s3://bucket/path | grep needle

Synchronise localpath to an s3 bucket:

s3 sync localpath s3://bucket/path

Synchronise an s3 bucket to localpath:

s3 sync s3://bucket/path localpath

Synchronise an s3 bucket to another s3 bucket:

s3 sync s3://bucket1/path s3://bucket2/otherpath

Recursively remove all keys under a path:

s3 rm s3://bucket/path

Create a bucket:

s3 mb bucket

Delete a bucket:

s3 rb bucket

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSuchBucket  = errors.New("NoSuchBucket: The specified bucket does not exist")
	ErrBucketExists  = errors.New("Bucket already exists")
	ErrBucketHasKeys = errors.New("Bucket has keys so cannot be deleted")
)
View Source
var (
	ErrNotFound = errors.New("No files found")
)
View Source
var ValidACLs = map[string]bool{
	"private":                   true,
	"public-read":               true,
	"public-read-write":         true,
	"authenticated-read":        true,
	"bucket-owner-read":         true,
	"bucket-owner-full-control": true,
	"log-delivery-write":        true,
}

Functions

func Main

func Main(conn s3iface.S3API, args []string, output io.Writer) int

Types

type Action

type Action struct {
	Action string
	File   File
}

type File

type File interface {
	Relative() string
	Size() int64
	MD5() []byte
	Reader() (io.ReadCloser, error)
	Delete() error
	String() string
	IsDirectory() bool
}

type Filesystem

type Filesystem interface {
	Files() <-chan File
	Create(src File) error
	Delete(path string) error
	Error() error
}

type LocalFile

type LocalFile struct {
	// contains filtered or unexported fields
}

func (*LocalFile) Delete

func (self *LocalFile) Delete() error

func (*LocalFile) IsDirectory

func (self *LocalFile) IsDirectory() bool

func (*LocalFile) MD5

func (self *LocalFile) MD5() []byte

func (*LocalFile) Reader

func (self *LocalFile) Reader() (io.ReadCloser, error)

func (*LocalFile) Relative

func (self *LocalFile) Relative() string

func (*LocalFile) Size

func (self *LocalFile) Size() int64

func (*LocalFile) String

func (self *LocalFile) String() string

type LocalFilesystem

type LocalFilesystem struct {
	// contains filtered or unexported fields
}

func (*LocalFilesystem) Create

func (self *LocalFilesystem) Create(src File) error

func (*LocalFilesystem) Delete

func (self *LocalFilesystem) Delete(path string) error

func (*LocalFilesystem) Error

func (self *LocalFilesystem) Error() error

func (*LocalFilesystem) Files

func (self *LocalFilesystem) Files() <-chan File

type MockBucket

type MockBucket map[string][]byte

type MockS3

type MockS3 struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewMockS3

func NewMockS3() *MockS3

func (*MockS3) AbortMultipartUpload

func (self *MockS3) AbortMultipartUpload(*s3.AbortMultipartUploadInput) (*s3.AbortMultipartUploadOutput, error)

func (*MockS3) AbortMultipartUploadRequest

func (self *MockS3) AbortMultipartUploadRequest(*s3.AbortMultipartUploadInput) (*request.Request, *s3.AbortMultipartUploadOutput)

func (*MockS3) CompleteMultipartUpload

func (self *MockS3) CompleteMultipartUpload(*s3.CompleteMultipartUploadInput) (*s3.CompleteMultipartUploadOutput, error)

func (*MockS3) CompleteMultipartUploadRequest

func (self *MockS3) CompleteMultipartUploadRequest(*s3.CompleteMultipartUploadInput) (*request.Request, *s3.CompleteMultipartUploadOutput)

func (*MockS3) CopyObject

func (self *MockS3) CopyObject(*s3.CopyObjectInput) (*s3.CopyObjectOutput, error)

func (*MockS3) CopyObjectRequest

func (self *MockS3) CopyObjectRequest(*s3.CopyObjectInput) (*request.Request, *s3.CopyObjectOutput)

func (*MockS3) CreateBucket

func (self *MockS3) CreateBucket(input *s3.CreateBucketInput) (*s3.CreateBucketOutput, error)

func (*MockS3) CreateBucketRequest

func (self *MockS3) CreateBucketRequest(*s3.CreateBucketInput) (*request.Request, *s3.CreateBucketOutput)

func (*MockS3) CreateMultipartUpload

func (self *MockS3) CreateMultipartUpload(*s3.CreateMultipartUploadInput) (*s3.CreateMultipartUploadOutput, error)

func (*MockS3) CreateMultipartUploadRequest

func (self *MockS3) CreateMultipartUploadRequest(*s3.CreateMultipartUploadInput) (*request.Request, *s3.CreateMultipartUploadOutput)

func (*MockS3) DeleteBucket

func (self *MockS3) DeleteBucket(input *s3.DeleteBucketInput) (*s3.DeleteBucketOutput, error)

func (*MockS3) DeleteBucketCors

func (self *MockS3) DeleteBucketCors(*s3.DeleteBucketCorsInput) (*s3.DeleteBucketCorsOutput, error)

func (*MockS3) DeleteBucketCorsRequest

func (self *MockS3) DeleteBucketCorsRequest(*s3.DeleteBucketCorsInput) (*request.Request, *s3.DeleteBucketCorsOutput)

func (*MockS3) DeleteBucketLifecycle

func (self *MockS3) DeleteBucketLifecycle(*s3.DeleteBucketLifecycleInput) (*s3.DeleteBucketLifecycleOutput, error)

func (*MockS3) DeleteBucketLifecycleRequest

func (self *MockS3) DeleteBucketLifecycleRequest(*s3.DeleteBucketLifecycleInput) (*request.Request, *s3.DeleteBucketLifecycleOutput)

func (*MockS3) DeleteBucketPolicy

func (self *MockS3) DeleteBucketPolicy(*s3.DeleteBucketPolicyInput) (*s3.DeleteBucketPolicyOutput, error)

func (*MockS3) DeleteBucketPolicyRequest

func (self *MockS3) DeleteBucketPolicyRequest(*s3.DeleteBucketPolicyInput) (*request.Request, *s3.DeleteBucketPolicyOutput)

func (*MockS3) DeleteBucketReplication

func (self *MockS3) DeleteBucketReplication(*s3.DeleteBucketReplicationInput) (*s3.DeleteBucketReplicationOutput, error)

func (*MockS3) DeleteBucketReplicationRequest

func (self *MockS3) DeleteBucketReplicationRequest(*s3.DeleteBucketReplicationInput) (*request.Request, *s3.DeleteBucketReplicationOutput)

func (*MockS3) DeleteBucketRequest

func (self *MockS3) DeleteBucketRequest(*s3.DeleteBucketInput) (*request.Request, *s3.DeleteBucketOutput)

func (*MockS3) DeleteBucketTagging

func (self *MockS3) DeleteBucketTagging(*s3.DeleteBucketTaggingInput) (*s3.DeleteBucketTaggingOutput, error)

func (*MockS3) DeleteBucketTaggingRequest

func (self *MockS3) DeleteBucketTaggingRequest(*s3.DeleteBucketTaggingInput) (*request.Request, *s3.DeleteBucketTaggingOutput)

func (*MockS3) DeleteBucketWebsite

func (self *MockS3) DeleteBucketWebsite(*s3.DeleteBucketWebsiteInput) (*s3.DeleteBucketWebsiteOutput, error)

func (*MockS3) DeleteBucketWebsiteRequest

func (self *MockS3) DeleteBucketWebsiteRequest(*s3.DeleteBucketWebsiteInput) (*request.Request, *s3.DeleteBucketWebsiteOutput)

func (*MockS3) DeleteObject

func (self *MockS3) DeleteObject(input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)

func (*MockS3) DeleteObjectRequest

func (self *MockS3) DeleteObjectRequest(*s3.DeleteObjectInput) (*request.Request, *s3.DeleteObjectOutput)

func (*MockS3) DeleteObjects

func (self *MockS3) DeleteObjects(input *s3.DeleteObjectsInput) (*s3.DeleteObjectsOutput, error)

func (*MockS3) DeleteObjectsRequest

func (self *MockS3) DeleteObjectsRequest(*s3.DeleteObjectsInput) (*request.Request, *s3.DeleteObjectsOutput)

func (*MockS3) GetBucketAcl

func (self *MockS3) GetBucketAcl(*s3.GetBucketAclInput) (*s3.GetBucketAclOutput, error)

func (*MockS3) GetBucketAclRequest

func (self *MockS3) GetBucketAclRequest(*s3.GetBucketAclInput) (*request.Request, *s3.GetBucketAclOutput)

func (*MockS3) GetBucketCors

func (self *MockS3) GetBucketCors(*s3.GetBucketCorsInput) (*s3.GetBucketCorsOutput, error)

func (*MockS3) GetBucketCorsRequest

func (self *MockS3) GetBucketCorsRequest(*s3.GetBucketCorsInput) (*request.Request, *s3.GetBucketCorsOutput)

func (*MockS3) GetBucketLifecycle

func (self *MockS3) GetBucketLifecycle(*s3.GetBucketLifecycleInput) (*s3.GetBucketLifecycleOutput, error)

func (*MockS3) GetBucketLifecycleRequest

func (self *MockS3) GetBucketLifecycleRequest(*s3.GetBucketLifecycleInput) (*request.Request, *s3.GetBucketLifecycleOutput)

func (*MockS3) GetBucketLocation

func (self *MockS3) GetBucketLocation(*s3.GetBucketLocationInput) (*s3.GetBucketLocationOutput, error)

func (*MockS3) GetBucketLocationRequest

func (self *MockS3) GetBucketLocationRequest(*s3.GetBucketLocationInput) (*request.Request, *s3.GetBucketLocationOutput)

func (*MockS3) GetBucketLogging

func (self *MockS3) GetBucketLogging(*s3.GetBucketLoggingInput) (*s3.GetBucketLoggingOutput, error)

func (*MockS3) GetBucketLoggingRequest

func (self *MockS3) GetBucketLoggingRequest(*s3.GetBucketLoggingInput) (*request.Request, *s3.GetBucketLoggingOutput)

func (*MockS3) GetBucketNotificationConfiguration

func (self *MockS3) GetBucketNotificationConfiguration(*s3.GetBucketNotificationConfigurationRequest) (*s3.NotificationConfiguration, error)

func (*MockS3) GetBucketPolicy

func (self *MockS3) GetBucketPolicy(*s3.GetBucketPolicyInput) (*s3.GetBucketPolicyOutput, error)

func (*MockS3) GetBucketPolicyRequest

func (self *MockS3) GetBucketPolicyRequest(*s3.GetBucketPolicyInput) (*request.Request, *s3.GetBucketPolicyOutput)

func (*MockS3) GetBucketReplication

func (self *MockS3) GetBucketReplication(*s3.GetBucketReplicationInput) (*s3.GetBucketReplicationOutput, error)

func (*MockS3) GetBucketReplicationRequest

func (self *MockS3) GetBucketReplicationRequest(*s3.GetBucketReplicationInput) (*request.Request, *s3.GetBucketReplicationOutput)

func (*MockS3) GetBucketRequestPayment

func (self *MockS3) GetBucketRequestPayment(*s3.GetBucketRequestPaymentInput) (*s3.GetBucketRequestPaymentOutput, error)

func (*MockS3) GetBucketRequestPaymentRequest

func (self *MockS3) GetBucketRequestPaymentRequest(*s3.GetBucketRequestPaymentInput) (*request.Request, *s3.GetBucketRequestPaymentOutput)

func (*MockS3) GetBucketTagging

func (self *MockS3) GetBucketTagging(*s3.GetBucketTaggingInput) (*s3.GetBucketTaggingOutput, error)

func (*MockS3) GetBucketTaggingRequest

func (self *MockS3) GetBucketTaggingRequest(*s3.GetBucketTaggingInput) (*request.Request, *s3.GetBucketTaggingOutput)

func (*MockS3) GetBucketVersioning

func (self *MockS3) GetBucketVersioning(*s3.GetBucketVersioningInput) (*s3.GetBucketVersioningOutput, error)

func (*MockS3) GetBucketVersioningRequest

func (self *MockS3) GetBucketVersioningRequest(*s3.GetBucketVersioningInput) (*request.Request, *s3.GetBucketVersioningOutput)

func (*MockS3) GetBucketWebsite

func (self *MockS3) GetBucketWebsite(*s3.GetBucketWebsiteInput) (*s3.GetBucketWebsiteOutput, error)

func (*MockS3) GetBucketWebsiteRequest

func (self *MockS3) GetBucketWebsiteRequest(*s3.GetBucketWebsiteInput) (*request.Request, *s3.GetBucketWebsiteOutput)

func (*MockS3) GetObject

func (self *MockS3) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error)

func (*MockS3) GetObjectAcl

func (self *MockS3) GetObjectAcl(*s3.GetObjectAclInput) (*s3.GetObjectAclOutput, error)

func (*MockS3) GetObjectAclRequest

func (self *MockS3) GetObjectAclRequest(*s3.GetObjectAclInput) (*request.Request, *s3.GetObjectAclOutput)

func (*MockS3) GetObjectRequest

func (self *MockS3) GetObjectRequest(*s3.GetObjectInput) (*request.Request, *s3.GetObjectOutput)

func (*MockS3) GetObjectTorrent

func (self *MockS3) GetObjectTorrent(*s3.GetObjectTorrentInput) (*s3.GetObjectTorrentOutput, error)

func (*MockS3) GetObjectTorrentRequest

func (self *MockS3) GetObjectTorrentRequest(*s3.GetObjectTorrentInput) (*request.Request, *s3.GetObjectTorrentOutput)

func (*MockS3) HeadBucket

func (self *MockS3) HeadBucket(*s3.HeadBucketInput) (*s3.HeadBucketOutput, error)

func (*MockS3) HeadBucketRequest

func (self *MockS3) HeadBucketRequest(*s3.HeadBucketInput) (*request.Request, *s3.HeadBucketOutput)

func (*MockS3) HeadObject

func (self *MockS3) HeadObject(*s3.HeadObjectInput) (*s3.HeadObjectOutput, error)

func (*MockS3) HeadObjectRequest

func (self *MockS3) HeadObjectRequest(*s3.HeadObjectInput) (*request.Request, *s3.HeadObjectOutput)

func (*MockS3) ListBuckets

func (self *MockS3) ListBuckets(*s3.ListBucketsInput) (*s3.ListBucketsOutput, error)

func (*MockS3) ListBucketsRequest

func (self *MockS3) ListBucketsRequest(*s3.ListBucketsInput) (*request.Request, *s3.ListBucketsOutput)

func (*MockS3) ListMultipartUploads

func (self *MockS3) ListMultipartUploads(*s3.ListMultipartUploadsInput) (*s3.ListMultipartUploadsOutput, error)

func (*MockS3) ListMultipartUploadsPages

func (self *MockS3) ListMultipartUploadsPages(*s3.ListMultipartUploadsInput, func(*s3.ListMultipartUploadsOutput, bool) bool) error

func (*MockS3) ListMultipartUploadsRequest

func (self *MockS3) ListMultipartUploadsRequest(*s3.ListMultipartUploadsInput) (*request.Request, *s3.ListMultipartUploadsOutput)

func (*MockS3) ListObjectVersions

func (self *MockS3) ListObjectVersions(*s3.ListObjectVersionsInput) (*s3.ListObjectVersionsOutput, error)

func (*MockS3) ListObjectVersionsPages

func (self *MockS3) ListObjectVersionsPages(*s3.ListObjectVersionsInput, func(*s3.ListObjectVersionsOutput, bool) bool) error

func (*MockS3) ListObjectVersionsRequest

func (self *MockS3) ListObjectVersionsRequest(*s3.ListObjectVersionsInput) (*request.Request, *s3.ListObjectVersionsOutput)

func (*MockS3) ListObjects

func (self *MockS3) ListObjects(input *s3.ListObjectsInput) (*s3.ListObjectsOutput, error)

func (*MockS3) ListObjectsPages

func (self *MockS3) ListObjectsPages(*s3.ListObjectsInput, func(*s3.ListObjectsOutput, bool) bool) error

func (*MockS3) ListObjectsRequest

func (self *MockS3) ListObjectsRequest(*s3.ListObjectsInput) (*request.Request, *s3.ListObjectsOutput)

func (*MockS3) ListObjectsV2

func (self *MockS3) ListObjectsV2(*s3.ListObjectsV2Input) (*s3.ListObjectsV2Output, error)

func (*MockS3) ListObjectsV2Pages

func (self *MockS3) ListObjectsV2Pages(*s3.ListObjectsV2Input, func(*s3.ListObjectsV2Output, bool) bool) error

func (*MockS3) ListObjectsV2Request

func (self *MockS3) ListObjectsV2Request(*s3.ListObjectsV2Input) (*request.Request, *s3.ListObjectsV2Output)

func (*MockS3) ListParts

func (self *MockS3) ListParts(*s3.ListPartsInput) (*s3.ListPartsOutput, error)

func (*MockS3) ListPartsPages

func (self *MockS3) ListPartsPages(*s3.ListPartsInput, func(*s3.ListPartsOutput, bool) bool) error

func (*MockS3) ListPartsRequest

func (self *MockS3) ListPartsRequest(*s3.ListPartsInput) (*request.Request, *s3.ListPartsOutput)

func (*MockS3) PutBucketAcl

func (self *MockS3) PutBucketAcl(*s3.PutBucketAclInput) (*s3.PutBucketAclOutput, error)

func (*MockS3) PutBucketAclRequest

func (self *MockS3) PutBucketAclRequest(*s3.PutBucketAclInput) (*request.Request, *s3.PutBucketAclOutput)

func (*MockS3) PutBucketCors

func (self *MockS3) PutBucketCors(*s3.PutBucketCorsInput) (*s3.PutBucketCorsOutput, error)

func (*MockS3) PutBucketCorsRequest

func (self *MockS3) PutBucketCorsRequest(*s3.PutBucketCorsInput) (*request.Request, *s3.PutBucketCorsOutput)

func (*MockS3) PutBucketLifecycle

func (self *MockS3) PutBucketLifecycle(*s3.PutBucketLifecycleInput) (*s3.PutBucketLifecycleOutput, error)

func (*MockS3) PutBucketLifecycleRequest

func (self *MockS3) PutBucketLifecycleRequest(*s3.PutBucketLifecycleInput) (*request.Request, *s3.PutBucketLifecycleOutput)

func (*MockS3) PutBucketLogging

func (self *MockS3) PutBucketLogging(*s3.PutBucketLoggingInput) (*s3.PutBucketLoggingOutput, error)

func (*MockS3) PutBucketLoggingRequest

func (self *MockS3) PutBucketLoggingRequest(*s3.PutBucketLoggingInput) (*request.Request, *s3.PutBucketLoggingOutput)

func (*MockS3) PutBucketNotification

func (self *MockS3) PutBucketNotification(*s3.PutBucketNotificationInput) (*s3.PutBucketNotificationOutput, error)

func (*MockS3) PutBucketNotificationRequest

func (self *MockS3) PutBucketNotificationRequest(*s3.PutBucketNotificationInput) (*request.Request, *s3.PutBucketNotificationOutput)

func (*MockS3) PutBucketPolicy

func (self *MockS3) PutBucketPolicy(*s3.PutBucketPolicyInput) (*s3.PutBucketPolicyOutput, error)

func (*MockS3) PutBucketPolicyRequest

func (self *MockS3) PutBucketPolicyRequest(*s3.PutBucketPolicyInput) (*request.Request, *s3.PutBucketPolicyOutput)

func (*MockS3) PutBucketReplication

func (self *MockS3) PutBucketReplication(*s3.PutBucketReplicationInput) (*s3.PutBucketReplicationOutput, error)

func (*MockS3) PutBucketReplicationRequest

func (self *MockS3) PutBucketReplicationRequest(*s3.PutBucketReplicationInput) (*request.Request, *s3.PutBucketReplicationOutput)

func (*MockS3) PutBucketRequestPayment

func (self *MockS3) PutBucketRequestPayment(*s3.PutBucketRequestPaymentInput) (*s3.PutBucketRequestPaymentOutput, error)

func (*MockS3) PutBucketRequestPaymentRequest

func (self *MockS3) PutBucketRequestPaymentRequest(*s3.PutBucketRequestPaymentInput) (*request.Request, *s3.PutBucketRequestPaymentOutput)

func (*MockS3) PutBucketTagging

func (self *MockS3) PutBucketTagging(*s3.PutBucketTaggingInput) (*s3.PutBucketTaggingOutput, error)

func (*MockS3) PutBucketTaggingRequest

func (self *MockS3) PutBucketTaggingRequest(*s3.PutBucketTaggingInput) (*request.Request, *s3.PutBucketTaggingOutput)

func (*MockS3) PutBucketVersioning

func (self *MockS3) PutBucketVersioning(*s3.PutBucketVersioningInput) (*s3.PutBucketVersioningOutput, error)

func (*MockS3) PutBucketVersioningRequest

func (self *MockS3) PutBucketVersioningRequest(*s3.PutBucketVersioningInput) (*request.Request, *s3.PutBucketVersioningOutput)

func (*MockS3) PutBucketWebsite

func (self *MockS3) PutBucketWebsite(*s3.PutBucketWebsiteInput) (*s3.PutBucketWebsiteOutput, error)

func (*MockS3) PutBucketWebsiteRequest

func (self *MockS3) PutBucketWebsiteRequest(*s3.PutBucketWebsiteInput) (*request.Request, *s3.PutBucketWebsiteOutput)

func (*MockS3) PutObject

func (self *MockS3) PutObject(input *s3.PutObjectInput) (*s3.PutObjectOutput, error)

func (*MockS3) PutObjectAcl

func (self *MockS3) PutObjectAcl(*s3.PutObjectAclInput) (*s3.PutObjectAclOutput, error)

func (*MockS3) PutObjectAclRequest

func (self *MockS3) PutObjectAclRequest(*s3.PutObjectAclInput) (*request.Request, *s3.PutObjectAclOutput)

func (*MockS3) PutObjectRequest

func (self *MockS3) PutObjectRequest(input *s3.PutObjectInput) (*request.Request, *s3.PutObjectOutput)

func (*MockS3) RestoreObject

func (self *MockS3) RestoreObject(*s3.RestoreObjectInput) (*s3.RestoreObjectOutput, error)

func (*MockS3) RestoreObjectRequest

func (self *MockS3) RestoreObjectRequest(*s3.RestoreObjectInput) (*request.Request, *s3.RestoreObjectOutput)

func (*MockS3) UploadPart

func (self *MockS3) UploadPart(*s3.UploadPartInput) (*s3.UploadPartOutput, error)

func (*MockS3) UploadPartCopy

func (self *MockS3) UploadPartCopy(*s3.UploadPartCopyInput) (*s3.UploadPartCopyOutput, error)

func (*MockS3) UploadPartCopyRequest

func (self *MockS3) UploadPartCopyRequest(*s3.UploadPartCopyInput) (*request.Request, *s3.UploadPartCopyOutput)

func (*MockS3) UploadPartRequest

func (self *MockS3) UploadPartRequest(*s3.UploadPartInput) (*request.Request, *s3.UploadPartOutput)

type S3File

type S3File struct {
	// contains filtered or unexported fields
}

func (*S3File) Delete

func (self *S3File) Delete() error

func (*S3File) IsDirectory

func (self *S3File) IsDirectory() bool

func (*S3File) MD5

func (self *S3File) MD5() []byte

func (*S3File) Reader

func (self *S3File) Reader() (io.ReadCloser, error)

func (*S3File) Relative

func (self *S3File) Relative() string

func (*S3File) Size

func (self *S3File) Size() int64

func (*S3File) String

func (self *S3File) String() string

type S3Filesystem

type S3Filesystem struct {
	// contains filtered or unexported fields
}

func (*S3Filesystem) Create

func (self *S3Filesystem) Create(src File) error

func (*S3Filesystem) Delete

func (self *S3Filesystem) Delete(path string) error

func (*S3Filesystem) Error

func (self *S3Filesystem) Error() error

func (*S3Filesystem) Files

func (self *S3Filesystem) Files() <-chan File

Directories

Path Synopsis
cmd
s3
internal

Jump to

Keyboard shortcuts

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