ovirtci

package
v0.0.0-...-eb4903d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenTTY

func OpenTTY(address string, proxy Proxyvm) error

func PublicKeyFile

func PublicKeyFile(file string) ssh.AuthMethod

func RunVM

func RunVM(address string, proxy Proxyvm, cmd string) (string, error)

RunVM - run given command in given address VM throught proxy VM

func RunVMMany

func RunVMMany(addressList []string, proxy Proxyvm, cmd string) (map[string]string, error)

RunVMMany - connect to multiply VMs and run single command

Types

type ChannelLease

type ChannelLease struct {
	FileName string
	Content  string
	// contains filtered or unexported fields
}

func RunProxyVM

func RunProxyVM(cmd string, proxy Proxyvm) ChannelLease

RunProxyVM - run given command in bastion VM (proxy VM)

type Cluster

type Cluster struct {
	VmList    []Vm
	Name      string
	Raw       string
	LeaseFile string
}

func (*Cluster) SetRaw

func (c *Cluster) SetRaw(s string)

type Clusters

type Clusters map[string]Cluster

func (*Clusters) PrintClusters

func (c *Clusters) PrintClusters()

func (*Clusters) SetCluster

func (c *Clusters) SetCluster(key string, value string)

SetCluster - add new cluster to the map

type Engine

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

Engine - engine SDK

func (*Engine) AddComment

func (e *Engine) AddComment(vmname string, comment string)

func (*Engine) ConnectToOvirt

func (e *Engine) ConnectToOvirt()

func (*Engine) GetLastPRForCluster

func (e *Engine) GetLastPRForCluster(cluster string) string

GetLastPRForCluster - returns the last PR URL for the given cluster

func (*Engine) GetVmIp

func (e *Engine) GetVmIp(vmName string, subnetCIDR string) (string, error)

func (*Engine) ListEvents

func (e *Engine) ListEvents()

func (*Engine) ListVMs

func (e *Engine) ListVMs() map[string]string

func (*Engine) SetOvirtInfo

func (e *Engine) SetOvirtInfo()

type LeaseFiles

type LeaseFiles []string

func (*LeaseFiles) ParseLeaseFiles

func (c *LeaseFiles) ParseLeaseFiles(fileLists ChannelLease)

ParseLeaseFiles - parse file list and populate the slice

type Proxyvm

type Proxyvm struct {
	Address    string
	Sshconfig  *ssh.ClientConfig
	Sshconfig2 *ssh.ClientConfig

	SshUser  string
	SshKey   string
	VmSshKey string
	// contains filtered or unexported fields
}

func (*Proxyvm) ConnectSsh

func (p *Proxyvm) ConnectSsh()

func (*Proxyvm) RunSsh

func (p *Proxyvm) RunSsh(cmd string, c chan ChannelLease)

func (*Proxyvm) RunSshVM

func (p *Proxyvm) RunSshVM(cmd string, addr string, c chan ChannelLease)

run command on ocp VM

func (*Proxyvm) SetSshconfig

func (p *Proxyvm) SetSshconfig(config *ssh.ClientConfig)

func (*Proxyvm) SetSshconfig2

func (p *Proxyvm) SetSshconfig2(config *ssh.ClientConfig)

type Vm

type Vm struct {
	IpAddress string
	Name      string
	Alive     bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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