s3

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package s3 wraps AWS S3 API in a basic interface that provides calls specific to our needs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is our own parameter store client

func New

func New(opts ...ClientOptions) (*Client, error)

New returns a new Client instance

func (*Client) WriteBytes

func (c *Client) WriteBytes(bucket string, key string, r io.ReadSeeker) error

WriteBytes writes the given bytes to an object key

type ClientOptions

type ClientOptions func(*Client)

ClientOptions provides the ability to override client settings during initialization

func WithRegion

func WithRegion(r string) ClientOptions

WithRegion allows specifying the region we're operating in

func WithRoleARN

func WithRoleARN(r string) ClientOptions

WithRoleARN allows specifying a role ARN to assume for S3 operations

func WithS3APIClient

func WithS3APIClient(s3c s3iface.S3API) ClientOptions

WithS3APIClient allows providing the AWS S3 API client instead of initializing one

Jump to

Keyboard shortcuts

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