client

package
v0.0.0-...-ebc5b54 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: BSD-3-Clause Imports: 14 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(options ...Option) *Client

func (*Client) DialContext

func (c *Client) DialContext(ctx context.Context, target string) error

func (*Client) List

func (c *Client) List(ctx context.Context) ([]string, error)

func (*Client) Read

func (c *Client) Read(ctx context.Context, name, dst string) error

func (*Client) Remove

func (c *Client) Remove(ctx context.Context, name string) error

func (*Client) Rename

func (c *Client) Rename(ctx context.Context, old, new string) error

func (*Client) Stat

func (c *Client) Stat(ctx context.Context, name string) (*storage.FileInfo, error)

func (*Client) Write

func (c *Client) Write(ctx context.Context, name string) error

type Option

type Option func(*Options)

func WithTLSConfig

func WithTLSConfig(config *tls.Config) Option

type Options

type Options struct {
	TLSConfig *tls.Config
}

func (*Options) Apply

func (o *Options) Apply(options ...Option)

Apply calls each option on o in turn

Jump to

Keyboard shortcuts

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