s3

package
v0.0.0-...-8eb23e1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Region           string `json:"region"`
	Endpoint         string `json:"endpoint"`
	Insecure         bool   `json:"insecure"`
	S3ForcePathStyle bool   `json:"s3_force_path_style"`
	AccessKey        string `json:"access_key"`
	SecretKey        string `json:"secret_key"`
}

type S3

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

func NewSession

func NewSession(s3Credentials *Credentials) (*S3, error)

func (*S3) Download

func (s *S3) Download(bucket, object string) ([]byte, error)

func (*S3) Upload

func (s *S3) Upload(bucket string, object string, content []byte) error

Jump to

Keyboard shortcuts

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