utils

package
v2.709.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentDir

func AgentDir() string

func AgentGateway

func AgentGateway() string

func AgentIP

func AgentIP() string

func AgentNetmask

func AgentNetmask() string

func BlobstoreURI

func BlobstoreURI() string

func BuildAgent

func BuildAgent() error

func FakeDirectorIP

func FakeDirectorIP() string

func GetSSHTunnelClient

func GetSSHTunnelClient() (*ssh.Client, error)

func JumpboxIP

func JumpboxIP() string

func JumpboxKeyPath

func JumpboxKeyPath() string

func JumpboxUsername

func JumpboxUsername() string

func NatsCA

func NatsCA() string

func NatsCertificate

func NatsCertificate() string

func NatsPrivateKey

func NatsPrivateKey() string

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

Types

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