s3

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3

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

func New

func New(s3Client *s3.S3, bucket string) *S3

func (S3) DeleteFile

func (s S3) DeleteFile(ctx context.Context, path string) error

DeleteFile deletes a file

func (S3) ReadFile

func (s S3) ReadFile(ctx context.Context, path string, w io.Writer) error

ReadFile reads a file

func (S3) WriteFile

func (s S3) WriteFile(ctx context.Context, path string, r io.ReadSeeker) error

WriteFile writes a file

Jump to

Keyboard shortcuts

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