common

package
v0.0.0-...-264ff9f Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadFiles

func UploadFiles(
	config *viper.Viper,
	sshClient SshClient,
	deployment *apis.Deployment,
	uploadedFiles map[string]string,
	log *logging.Logger) error

Types

type Downloader

type Downloader interface {
	Download(fileUrl string) (string, error)
}

func NewS3Downloader

func NewS3Downloader(config *viper.Viper) (Downloader, error)

type S3Downloader

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

func (*S3Downloader) Download

func (files *S3Downloader) Download(s3FileUrl string) (string, error)

type SshClient

type SshClient struct {
	Host         string
	BastionHost  string
	ClientConfig *ssh.ClientConfig
}

func NewSshClient

func NewSshClient(host string, config *ssh.ClientConfig, bastionHost string) SshClient

func (*SshClient) CopyLocalFileToRemote

func (a *SshClient) CopyLocalFileToRemote(localPath string, remotePath string) error

Copies the contents of an local file to a remote location

func (*SshClient) CopyRemoteFileToLocal

func (a *SshClient) CopyRemoteFileToLocal(remotePath string, localPath string) error

func (*SshClient) RunCommand

func (a *SshClient) RunCommand(command string, verbose bool) error

Jump to

Keyboard shortcuts

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