mock

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t *testing.T, bucket string, mockData map[string][]MockObject) *storage.Storage

New mock storage. Takes a bucket and mock data. The data is a map of object name -> list of versions

Types

type MockObject

type MockObject struct {
	VersionID string
	Data      []byte
}

MockObject is a single version of an object

Jump to

Keyboard shortcuts

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