fileCopier

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package fileCopier contains interfaces and functions to assist in copying files via ssh.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyToDestination

func CopyToDestination(ctx context.Context, f FileCopier) error

CopyToDestination wraps a FileCopier's copyToDestination method

Types

type FileCopier

type FileCopier interface {
	// contains filtered or unexported methods
}

FileCopier is an exported interface for objects that manage the copying of a file

func NewSSHFileCopier

func NewSSHFileCopier(source, account, node, destination string, fileCopierOptions []string, sshOptions []string, env environment.CommandEnvironment) FileCopier

NewSSHFileCopier returns a FileCopier object that copies a file via ssh

Jump to

Keyboard shortcuts

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