client

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 11 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, apiKey string) (cc *Client, err error)

func (*Client) Export

func (c *Client) Export(ctx context.Context, prefix, filename string, r io.Reader) (newFilename string, err error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, prefix, filename string, fn func(io.Reader) error) (err error)

func (*Client) GetNext

func (c *Client) GetNext(ctx context.Context, prefix, lastFilename string) (filename string, err error)

GetNext will get the next filename Note: prefix is ignored for source proxy as it derives the prefix from the filename

func (*Client) Import

func (c *Client) Import(ctx context.Context, prefix, filename string, w io.Writer) (err error)

Jump to

Keyboard shortcuts

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