Documentation ¶
Index ¶
- type S3
- func (s *S3) Attributes(bucket, prefix string) (*system.Attrs, error)
- func (s *S3) BatchAttributes(bucket, prefix string, recursive bool) ([]*system.Attrs, error)
- func (s *S3) Cat(bucket, prefix string) ([]byte, error)
- func (s *S3) Copy(srcBucket, srcPrefix, dstBucket, dstPrefix string) error
- func (s *S3) Delete(bucket, prefix string) error
- func (s *S3) DeleteObject(bucket, prefix string) error
- func (s *S3) DiskUsage(bucket, prefix string, recursive bool) ([]system.DiskUsage, error)
- func (s *S3) Download(bucket, prefix, dstFile string, forceChecksum bool, ctx system.RunContext) error
- func (s *S3) GetObjectReader(bucket, prefix string) (io.ReadCloser, error)
- func (s *S3) Init(buckets ...string) error
- func (s *S3) IsDirectory(bucket, prefix string) (bool, error)
- func (s *S3) IsObject(bucket, prefix string) (bool, error)
- func (s *S3) List(bucket, prefix string, recursive bool) ([]*system.FileObject, error)
- func (s *S3) Move(srcBucket, srcPrefix, dstBucket, dstPrefix string) error
- func (s *S3) MustEqualCRC32C(flag bool, localPath, bucket, object string) error
- func (s *S3) PutObject(bucket, prefix string, from io.Reader) error
- func (s *S3) S3Attrs(bucket, prefix string) (*S3Attributes, error)
- func (s *S3) Scheme() string
- func (s *S3) Upload(srcFile, bucket, prefix string, ctx system.RunContext) error
- type S3Attributes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
func (*S3) Attributes ¶
GetObjectAttributes gets the attributes of an object
func (*S3) BatchAttributes ¶
GetObjectsAttributes gets the attributes of all the objects under a prefix
func (*S3) DeleteObject ¶
func (*S3) Download ¶
func (s *S3) Download( bucket, prefix, dstFile string, forceChecksum bool, ctx system.RunContext, ) error
DownloadObjectWithWorkerPool downloads a specific byte range of an object to a file.
func (*S3) GetObjectReader ¶
func (s *S3) GetObjectReader(bucket, prefix string) (io.ReadCloser, error)
func (*S3) IsDirectory ¶
IsDirectory checks if is a directory
func (*S3) IsObject ¶
IsObject checks if is an object case 1: gs://abc/def -> gs://abc/def/ : false case 2: gs://abc/de -> gs://abc/def/ : false case 3: gs://abc/def/ -> gs://abc/def/ : false case 4: gs://abc/def -> gs://abc/def : true
func (*S3) MustEqualCRC32C ¶
MustEqualCRC32C compare CRC32C values if flag is set - compare a local file with an object from gcp - exit process if values are different
type S3Attributes ¶
type S3Attributes struct { S3Attrs *s3.GetObjectAttributesOutput Bucket string Prefix string }
Click to show internal directories.
Click to hide internal directories.