ops

package
v0.0.0-...-648c8e3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalAwsProfiles

func GetLocalAwsProfiles() []string

Types

type BucketBasics

type BucketBasics struct {
	Clients map[string]*s3.Client
}

func NewBucketBasics

func NewBucketBasics() (*BucketBasics, error)

func (*BucketBasics) AddClient

func (b *BucketBasics) AddClient(profile string) error

func (*BucketBasics) DeleteDirectory

func (b *BucketBasics) DeleteDirectory(bucket, key, profile string) error

func (*BucketBasics) DeleteFile

func (b *BucketBasics) DeleteFile(bucket, key, profile string) error

DeleteFile deletes a file from S3.

func (*BucketBasics) UploadFile

func (b *BucketBasics) UploadFile(bucketName, objectKey, fileName, profile string) error

UploadFile reads from a file and puts the data into an object in a bucket.

type S3ClientFailedError

type S3ClientFailedError struct {
	Err error
}

S3ClientFailedError represents an error when trying to start a S3 client.

func (*S3ClientFailedError) Error

func (e *S3ClientFailedError) Error() string

Allow S3ClientFailedError to satisfy error interface.

Jump to

Keyboard shortcuts

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