utils

package
v0.0.0-...-c677ff1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultS3Client = must(NewS3Client())

Functions

func StrPointer

func StrPointer(str string) *string

Types

type S3Client

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

func NewS3Client

func NewS3Client(config ...*aws.Config) (*S3Client, error)

NewS3Client returns a new S3Client.

func (S3Client) DownloadFile

func (client S3Client) DownloadFile(bucket, key string, dest *os.File) error

DownloadFile from a bucket and key to a destination file.

func (S3Client) GetContent

func (client S3Client) GetContent(bucket, key string) (string, error)

GetContent from a bucket and key as string.

Jump to

Keyboard shortcuts

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