cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately

func VirterConnect

func VirterConnect() (*virter.Virter, error)

VirterConnect connects to a local libvirt instance

Types

type BarReaderProxy

type BarReaderProxy struct {
	*mpb.Bar
}

BarReaderProxy adds the ReaderProxy methods to Bar

func (BarReaderProxy) ProxyReader

func (b BarReaderProxy) ProxyReader(r io.ReadCloser) io.ReadCloser

ProxyReader wraps r so that the bar is updated as the data is read

func (BarReaderProxy) SetTotal

func (b BarReaderProxy) SetTotal(total int64)

SetTotal sets the total for the bar

type SSHClientBuilder

type SSHClientBuilder struct {
}

SSHClientBuilder builds SSH shell clients

func (SSHClientBuilder) NewShellClient

func (SSHClientBuilder) NewShellClient(hostPort string, sshConfig ssh.ClientConfig) virter.ShellClient

NewShellClient returns an SSH shell client

Jump to

Keyboard shortcuts

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