awsclient

package
v0.0.0-...-6df56f3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewSession

func CreateNewSession(accessKey, secretKey, sessionToken, region string) *session.Session

CreateNewSession return new AWS session

Types

type S3Api

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

func NewS3API

func NewS3API(s *session.Session) *S3Api

func (*S3Api) GetObject

func (s3Api *S3Api) GetObject(bucket, path string) ([]byte, error)

func (*S3Api) GetObjectAsString

func (s3Api *S3Api) GetObjectAsString(bucket, path string) (string, error)

Jump to

Keyboard shortcuts

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