transfer

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 13 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(config Config) (*Client, error)

func (*Client) Close

func (c *Client) Close(ctx context.Context) error

func (*Client) Initialize

func (c *Client) Initialize(ctx context.Context) error

func (*Client) InputPath

func (c *Client) InputPath(workspacePath, remotePath, localName string) (string, error)

func (*Client) Mode

func (c *Client) Mode() string

func (*Client) Prepare

func (c *Client) Prepare(ctx context.Context, remotePath, destinationDir, inputPath string) (int64, error)

func (*Client) Pull

func (c *Client) Pull(ctx context.Context, remotePath, destinationDir string) (int64, error)

func (*Client) ResolveSource

func (c *Client) ResolveSource(contentPath, savePath, releaseName string) (remotePath, localName string, err error)

func (*Client) Verify

func (c *Client) Verify(ctx context.Context, inputPath string) (int64, error)

type Config

type Config struct {
	Type          string
	Binary        string
	SSHFSBinary   string
	UnmountBinary string
	Host          string
	User          string
	Port          int
	KeyPath       string
	SourceRoot    string
	MountPath     string
	ManageMount   bool
	UnmountOnExit bool
	ExtraArgs     []string
	SSHFSOptions  []string
}

Jump to

Keyboard shortcuts

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