Documentation
¶
Index ¶
- type Client
- func (s Client) GetObject(key string) ([]byte, error)
- func (s Client) GetVersions(prefix string) ([]string, error)
- func (s Client) ListObjects(prefix, delimiter string) (*s3.ListObjectsOutput, error)
- func (s Client) Load(i interface{}, path string) error
- func (s Client) PutObject(key, contentType string, object []byte) error
- func (s Client) Save(i interface{}, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client struct contains the initialized S3 service and other S3-related parameters
func NewSession ¶
NewSession creates an AWS session for S3 and returns an S3Client
func (Client) GetVersions ¶
GetVersions returns a list of all versions under a given prefix in S3 This assumes a specific format when organizing the objects in the S3 bucket, e.g.
s3://bucket/prefix/1.0/file.json
func (Client) ListObjects ¶
func (s Client) ListObjects(prefix, delimiter string) (*s3.ListObjectsOutput, error)
ListObjects returns a list of objects from S3
Click to show internal directories.
Click to hide internal directories.