aws

package
v0.0.0-...-69dedca Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS interface {
	DownloadObject(path string) (*AWSStorageObject, error)
	DownloadObjects(paths []string) ([]*AWSStorageObject, error)
	UploadObject(filename string, contentType string, data []byte) error
}

type AWSManager

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

func NewAWSManager

func NewAWSManager(bucketName string, awsCfg aws.Config) *AWSManager

func (*AWSManager) DownloadObject

func (m *AWSManager) DownloadObject(path string) (*AWSStorageObject, error)

func (*AWSManager) DownloadObjects

func (m *AWSManager) DownloadObjects(paths []string) ([]*AWSStorageObject, error)

func (*AWSManager) UploadObject

func (m *AWSManager) UploadObject(path string, contentType string, data []byte) error

type AWSStorageObject

type AWSStorageObject struct {
	Name        string
	ContentType string
	Body        []byte
}

Jump to

Keyboard shortcuts

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