updo

package module
v0.0.0-...-ba05ab0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanKey

func CleanKey(path string) string

func Decrypt

func Decrypt(dst io.Writer, src io.Reader, privKey string) error

func Encrypt

func Encrypt(dst io.Writer, src io.Reader, pubKey string) error

Types

type NamedData

type NamedData struct {
	Data io.ReadCloser
	Key  string
}

type Store

type Store interface {
	Put(ctx context.Context, r io.Reader, key string) error
}

type Uploader

type Uploader struct {
	// contains filtered or unexported fields
}

func NewUploader

func NewUploader(store Store, pubKey string) Uploader

func (Uploader) Upload

func (u Uploader) Upload(ctx context.Context, data ...NamedData) error

Directories

Path Synopsis
cmd
eup

Jump to

Keyboard shortcuts

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