util

package
v0.0.0-...-559b47e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(src string, dest string) error

func DeCompress

func DeCompress(tarFile, dest string) error

func ParallelizeUntil

func ParallelizeUntil(ctx context.Context, workers, pieces int, doWorkPiece DoWorkPieceFunc)

ParallelizeUntil is a framework that allows for parallelizing N independent pieces of work until done or the context is canceled.

func ScpDir

func ScpDir(client *sftp.Client, srcDir, dstDir string, forward bool) error

func ScpFile

func ScpFile(client *sftp.Client, srcPath, dstPath string, forward bool) error

func SetupSigusr1Trap

func SetupSigusr1Trap()

Types

type DoWorkPieceFunc

type DoWorkPieceFunc func(piece int)

Jump to

Keyboard shortcuts

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