transporters

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package transporters define how transport plugins behave

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UniquifyDest added in v0.16.0

func UniquifyDest(s string) string

UniquifyDest turns a string in to a unique string, by appending a ULID

Types

type Config

type Config struct {
	Destination string
	Purge       bool
}

Config is everything a transporter needs to be configured

func (Config) ToEnv

func (c Config) ToEnv() error

ToEnv sets interesting info in a Key/Value format

type Transporter

type Transporter interface {
	// Configure(c Config) error
	Check() error
	Send(s, u string) error
	SendWithChannel(s, u string, c chan rclone.TransferStatus) error
}

Transporter describes how items that meet a Transporter behaves

Directories

Path Synopsis
Package cloud defines how to transport the files out to the cloud ☁️
Package cloud defines how to transport the files out to the cloud ☁️
Package shell is a shell transporter plugin
Package shell is a shell transporter plugin

Jump to

Keyboard shortcuts

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