awslib

package
v0.0.0-...-abde6d7 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCredentials

func InitCredentials(flag *flag.FlagSet, envPtr *bool, credPtr *bool, profilePtr *string) (aws.Config, string)

Types

type S3Handler

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

func NewS3Handler

func NewS3Handler(client s3.Client) *S3Handler

func (*S3Handler) CreateBucket

func (s *S3Handler) CreateBucket(name string, length int) (bool, error)

func (*S3Handler) DeleteObject

func (s *S3Handler) DeleteObject(bucket string, key string) (bool, error)

func (*S3Handler) GetBuckets

func (s *S3Handler) GetBuckets() ([]string, error)

func (*S3Handler) GetDirectoryStructure

func (s *S3Handler) GetDirectoryStructure(bucket string, delimiter string, prefix string) ([]string, error)

func (*S3Handler) GetFolderNames

func (s *S3Handler) GetFolderNames(bucket string, delimiter string, prefix string) ([]string, error)

func (*S3Handler) GetKeyNames

func (s *S3Handler) GetKeyNames(bucket string, delimiter string, prefix string) ([]string, error)

func (*S3Handler) IsGlacier

func (s *S3Handler) IsGlacier(bucket string, key string) (bool, error)

func (*S3Handler) PreviewFile

func (s *S3Handler) PreviewFile(bucket string, key string) ([]byte, error)

TODO: write utility function that checks the byte slice for non utf-8 chars if this is present, display a /// cannot display binary /// message

func (*S3Handler) RenameObject

func (s *S3Handler) RenameObject(bucket string, oldKey string, newKey string) (bool, error)

Jump to

Keyboard shortcuts

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