s3

package
v0.0.0-...-f3e82cf Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*s3.S3
}

Client s3 client

func New

func New(awsCnf *Config) *Client

New function to instantiate s3 client

func (*Client) ListBucketNames

func (c *Client) ListBucketNames() ([]string, error)

ListBucketNames function to list buckets names in AWS account

func (*Client) ReadObjectText

func (c *Client) ReadObjectText(bucket string, path string) (string, error)

ReadObjectText function to read object from s3 bucket as text

type Config

type Config struct {
	Region string
}

Config configuration to connect to AWS infra

Jump to

Keyboard shortcuts

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