client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 10 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, filename string, r io.Reader) (err error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, 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, 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