sut

package
v0.0.0-...-f99b5a7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialWithDeadline

func DialWithDeadline(network string, addr string, config *ssh.ClientConfig, timeout bool) (*ssh.Client, error)

DialWithDeadline Dials SSH with a deadline to avoid Read timeouts

Types

type SUT

type SUT struct {
	Host     string
	Username string
	Password string
	Timeout  int
}

func NewSUT

func NewSUT() *SUT

func (*SUT) Command

func (s *SUT) Command(cmd string) (string, error)

Command sends a command to the SUIT and waits for reply

func (*SUT) EventuallyConnects

func (s *SUT) EventuallyConnects(t ...int)

func (SUT) GatherAllLogs

func (s SUT) GatherAllLogs(services []string, logFiles []string)

GatherAllLogs will try to gather as much info from the system as possible, including services, dmesg and os related info

func (SUT) GatherLog

func (s SUT) GatherLog(logPath string)

GatherLog will try to scp the given log from the machine to a local file

func (*SUT) HasRunningPodByAppLabel

func (s *SUT) HasRunningPodByAppLabel(namespace string, applabel string) bool

func (*SUT) SendFile

func (s *SUT) SendFile(src, dst, permission string) error

func (*SUT) WriteInlineFile

func (s *SUT) WriteInlineFile(content, path string)

Jump to

Keyboard shortcuts

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