kubevirt

package
v0.0.0-...-12c5f08 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PromptExpression = `(\$ |\# )`
	CRLF             = "\r\n"
	UTFPosEscape     = "\u001b\\[[0-9]+;[0-9]+H"
)

Variables

This section is empty.

Functions

func LoginToFedora

func LoginToFedora(vmi *kubevirtv1.VirtualMachineInstance, user, password string) error

LoginToFedora performs a console login to a Fedora base VM

func RunCommand

func RunCommand(vmi *v1.VirtualMachineInstance, command string, timeout time.Duration) (string, error)

Types

type Address

type Address struct {
	Ip           string `json:"ip"`
	PrefixLength uint   `json:"prefix-length"`
}

type IP

type IP struct {
	Address []Address `json:"address"`
}

type Interface

type Interface struct {
	Name string `json:"name"`
	IPv4 IP     `json:"ipv4"`
	IPv6 IP     `json:"ipv6"`
}

type NetworkState

type NetworkState struct {
	Interfaces []Interface `json:"interfaces"`
}

func RetrieveNetworkState

func RetrieveNetworkState(vmi *v1.VirtualMachineInstance) (*NetworkState, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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