s3mock

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ErrS3Mock = internal.Error("Mock S3 error")

Variables

This section is empty.

Functions

This section is empty.

Types

type MockS3

type MockS3 struct {
	Data        string
	Def         string
	SoftpackYML string
	Readme      string
	Fail        bool
	Exes        string
}

MockS3 can be used to test a build.Builder by implementing the build.S3 interface.

func (*MockS3) OpenFile

func (m *MockS3) OpenFile(source string) (io.ReadCloser, error)

OpenFile implements the build.S3 interface.

func (*MockS3) UploadData

func (m *MockS3) UploadData(data io.Reader, dest string) error

UploadData implements the build.S3 interface.

Jump to

Keyboard shortcuts

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