utils

package
v2.184.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAgent

func BuildAgent() error

func RetrievePrivateIP

func RetrievePrivateIP(vmName string) (string, error)

func RetrievePublicIP

func RetrievePublicIP(vmName string) (string, error)

func StartVagrant

func StartVagrant(vmName, provider string, osVersion string) error

func TarballDirectory

func TarballDirectory(dirname, rootdir, tarname string) (string, error)

TarballDirectory - rootdir is equivalent to tar -C 'rootdir'

Types

type BlobClient added in v0.0.24

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

func NewBlobstore added in v0.0.24

func NewBlobstore(uri string) BlobClient

func (BlobClient) Create added in v0.0.24

func (b BlobClient) Create(filepath string) (string, error)

func (BlobClient) Get added in v0.0.24

func (b BlobClient) Get(uuid string, destinationPath string) error

type TarWalker added in v0.0.24

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

func (*TarWalker) Walk added in v0.0.24

func (t *TarWalker) Walk(path string, fi os.FileInfo, err error) error

type WinRMCommandRunner

type WinRMCommandRunner struct {
	Client *winrm.Client
}

func (*WinRMCommandRunner) CommandExists

func (r *WinRMCommandRunner) CommandExists(cmdName string) (exists bool)

func (*WinRMCommandRunner) RunCommand

func (r *WinRMCommandRunner) RunCommand(cmdName string, args ...string) (stdout, stderr string, exitStatus int, err error)

func (*WinRMCommandRunner) RunCommandQuietly

func (r *WinRMCommandRunner) RunCommandQuietly(cmdName string, args ...string) (stdout, stderr string, exitStatus int, err error)

func (*WinRMCommandRunner) RunCommandWithInput

func (r *WinRMCommandRunner) RunCommandWithInput(input, cmdName string, args ...string) (stdout, stderr string, exitStatus int, err error)

func (*WinRMCommandRunner) RunComplexCommand

func (r *WinRMCommandRunner) RunComplexCommand(cmd boshsys.Command) (stdout, stderr string, exitStatus int, err error)

func (*WinRMCommandRunner) RunComplexCommandAsync

func (r *WinRMCommandRunner) RunComplexCommandAsync(cmd boshsys.Command) (boshsys.Process, error)

Jump to

Keyboard shortcuts

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