contracts

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

universal-network-adapter interfaces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader interface {
	// Get remote file info
	Stat(destination *models.ParsedDestination) (*models.RemoteFile, error)
	// Browse remote directory
	Browse(destination *models.ParsedDestination) ([]*models.RemoteFile, error)
	// Browse remote directory
	Remove(remoteFile *models.RemoteFile) error
	// Download remote file
	Download(remoteFile *models.RemoteFile) (*models.RemoteFileContent, error)
}

type Remover added in v1.1.2

type Remover interface {
	Remove(remoteFile *models.RemoteFile) error
}

Jump to

Keyboard shortcuts

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