vagrantclient

package
v0.0.0-...-4ef6c67 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHConfigFile

type SSHConfigFile struct {
	govagrant.SSHConfig
}

func (SSHConfigFile) Addr

func (s SSHConfigFile) Addr() string

func (SSHConfigFile) PrivateKeySigner

func (s SSHConfigFile) PrivateKeySigner() (ssh.Signer, error)

func (SSHConfigFile) SSHClientConfig

func (s SSHConfigFile) SSHClientConfig() (*ssh.ClientConfig, error)

type VagrantCli

type VagrantCli struct {
	Verbose bool
	// contains filtered or unexported fields
}

func NewVagrantCli

func NewVagrantCli(machineName string, vagrantMachineDir string, logger log.Logger, verbose bool) (*VagrantCli, error)

func (*VagrantCli) Destroy

func (v *VagrantCli) Destroy() error

func (*VagrantCli) SSHConfig

func (v *VagrantCli) SSHConfig() (SSHConfigFile, error)

func (*VagrantCli) Scp

func (v *VagrantCli) Scp(fromRemotePath string, toHostPath string) error

func (*VagrantCli) SshExec

func (v *VagrantCli) SshExec(command string) (string, error)

func (*VagrantCli) Status

func (v *VagrantCli) Status() string

func (*VagrantCli) TryUp

func (v *VagrantCli) TryUp() error

func (*VagrantCli) Up

func (v *VagrantCli) Up() error

Jump to

Keyboard shortcuts

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