fakes

package
v0.0.184 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	GetPath     string
	GetContents io.ReadCloser
	GetErr      error

	PutPath          string
	PutContents      string
	PutContentLength int64
	PutErr           error
}

func NewFakeClient

func NewFakeClient() *FakeClient

func (*FakeClient) Get

func (c *FakeClient) Get(path string) (io.ReadCloser, error)

func (*FakeClient) Put

func (c *FakeClient) Put(path string, content io.ReadCloser, contentLength int64) error

Jump to

Keyboard shortcuts

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