client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Client

type S3Client interface {
	Put(key string, object []byte) error
	Get(key string) ([]byte, error)
}

type S3CompressorClient

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

func NewS3CompressorClient

func NewS3CompressorClient(sess client.ConfigProvider, bucket string, compressor gompressors.Compressor) *S3CompressorClient

func (*S3CompressorClient) Get

func (s *S3CompressorClient) Get(key string) ([]byte, error)

func (*S3CompressorClient) Put

func (s *S3CompressorClient) Put(key string, object []byte) error

type S3PlainClient

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

func NewS3PlainClient

func NewS3PlainClient(sess client.ConfigProvider, bucket string) *S3PlainClient

func (*S3PlainClient) Get

func (s *S3PlainClient) Get(key string) ([]byte, error)

func (*S3PlainClient) Put

func (s *S3PlainClient) Put(key string, object []byte) error

Jump to

Keyboard shortcuts

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