cacheclient

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 12 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 {
	// contains filtered or unexported fields
}

func New

func New(host string) *Client

func (*Client) GetChunk

func (cc *Client) GetChunk(ctx context.Context, hash string, chunk io.Writer) (err error)

func (*Client) GetDerivation

func (cc *Client) GetDerivation(ctx context.Context, filename string) (drv store.Derivation, exists bool, err error)

func (*Client) GetOutput

func (cc *Client) GetOutput(ctx context.Context, hash string) (output []chunkedarchive.TOCEntry, exists bool, err error)

func (*Client) PostChunk

func (cc *Client) PostChunk(ctx context.Context, chunk io.Reader) (hash string, err error)

func (*Client) PostDerivation

func (cc *Client) PostDerivation(ctx context.Context, drv store.Derivation) (filename string, err error)

func (*Client) PostOutput

func (cc *Client) PostOutput(ctx context.Context, req store.OutputRequestBody) (err error)

Jump to

Keyboard shortcuts

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