fake

package
v0.0.0-...-41cac4f Latest Latest
Warning

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

Go to latest
Published: May 26, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Directory string
}

func MakeClient

func MakeClient(remote config.RemoteObject) *Client

func (*Client) DownloadWithWriter

func (c *Client) DownloadWithWriter(hash string, w io.WriterAt) error

Fake downloading a file

func (*Client) List

func (c *Client) List(prefix string, action func(key string)) ([]string, error)

List with a prefix string

func (*Client) UploadWithReader

func (c *Client) UploadWithReader(hash string, r io.Reader) error

Fake uploading a file

func (*Client) VerifyHash

func (c *Client) VerifyHash(hash string) (bool, error)

Verify the existence of a hash

Jump to

Keyboard shortcuts

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