awsclient

package
v0.0.0-...-652aed5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetObjectOutput

type GetObjectOutput struct {
	Body            io.ReadCloser `type:"blob"`
	CacheControl    *string       `location:"header" locationName:"Cache-Control" type:"string"`
	ContentEncoding *string       `location:"header" locationName:"Content-Encoding" type:"string"`
	ContentLength   *int64        `location:"header" locationName:"Content-Length" type:"long"`
	ContentRange    *string       `location:"header" locationName:"Content-Range" type:"string"`
	ContentType     *string       `location:"header" locationName:"Content-Type" type:"string"`
	ETag            *string       `location:"header" locationName:"ETag" type:"string"`
	Expiration      *string       `location:"header" locationName:"x-amz-expiration" type:"string"`
	LastModified    *time.Time    `location:"header" locationName:"Last-Modified" type:"timestamp"`
	StorageClass    *string       `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
	TagCount        *int64        `location:"header" locationName:"x-amz-tagging-count" type:"integer"`
	VersionId       *string       `location:"header" locationName:"x-amz-version-id" type:"string"`
}

GetObjectOutput- constructs the output result from S3 GetObject call

type S3Client

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

S3Client - manages a persistent connection with downstream S3 bucket

func NewS3Client

func NewS3Client(region string) (*S3Client, error)

NewS3Client - creates a new instance for S3Client with a aws session manager embedded inside. The objective of S3Client will allow callers to manager a persistent connection for a given bucket through it's life-time.

func (*S3Client) GetObject

func (client *S3Client) GetObject(bucket, s3Path, byterange string) (*GetObjectOutput, error)

GetObject - talks to S3 to get content/byte-range from the bucket

Jump to

Keyboard shortcuts

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