Documentation ¶
Index ¶
- func OpenTTY(address string, proxy Proxyvm) error
- func PublicKeyFile(file string) ssh.AuthMethod
- func RunVM(address string, proxy Proxyvm, cmd string) (string, error)
- func RunVMMany(addressList []string, proxy Proxyvm, cmd string) (map[string]string, error)
- type ChannelLease
- type Cluster
- type Clusters
- type Engine
- func (e *Engine) AddComment(vmname string, comment string)
- func (e *Engine) ConnectToOvirt()
- func (e *Engine) GetLastPRForCluster(cluster string) string
- func (e *Engine) GetVmIp(vmName string, subnetCIDR string) (string, error)
- func (e *Engine) ListEvents()
- func (e *Engine) ListVMs() map[string]string
- func (e *Engine) SetOvirtInfo()
- type LeaseFiles
- type Proxyvm
- type Vm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublicKeyFile ¶
func PublicKeyFile(file string) ssh.AuthMethod
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 Clusters ¶
func (*Clusters) PrintClusters ¶
func (c *Clusters) PrintClusters()
func (*Clusters) SetCluster ¶
SetCluster - add new cluster to the map
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine - engine SDK
func (*Engine) AddComment ¶
func (*Engine) ConnectToOvirt ¶
func (e *Engine) ConnectToOvirt()
func (*Engine) GetLastPRForCluster ¶
GetLastPRForCluster - returns the last PR URL for the given cluster
func (*Engine) ListEvents ¶
func (e *Engine) ListEvents()
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)
Click to show internal directories.
Click to hide internal directories.