s3log

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Bucket        string
	ObjectPrefix  string
	ObjectPostfix string
}

type LogDestination

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

func New

func New(ctx context.Context, cfg *Config) (*LogDestination, error)

func (*LogDestination) AlreadyExists

func (ld *LogDestination) AlreadyExists(ctx context.Context) (bool, error)

func (*LogDestination) Cleanup

func (ld *LogDestination) Cleanup(_ context.Context)

func (*LogDestination) NewWriter

func (ld *LogDestination) NewWriter(ctx context.Context) (io.Writer, io.Writer, error)

func (*LogDestination) SetName

func (ld *LogDestination) SetName(name string)

func (*LogDestination) String

func (ld *LogDestination) String() string

type S3Client

type S3Client interface {
	s3.HeadObjectAPIClient
	manager.UploadAPIClient
}

Jump to

Keyboard shortcuts

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