s3

package
v0.0.0-...-a916a98 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultObjectName = "default-object-name"

Variables

This section is empty.

Functions

This section is empty.

Types

type MinioClient

type MinioClient interface {
	MakeBucket(string, string) error
	BucketExists(string) (bool, error)
	PutObject(string, string, io.Reader, string) (int64, error)
	FGetObject(string, string, string) error
}

minioClient is the s3 client

type S3Store

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

func NewS3Store

func NewS3Store(client MinioClient, target *runcommands.Target) *S3Store

func (*S3Store) Read

func (s *S3Store) Read() (string, error)

S3Read is the function that reads from s3

func (*S3Store) Write

func (s *S3Store) Write(content io.Reader) error

S3Write is the function that writes to s3

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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