client

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ClientSet *kubernetes.Clientset
	ExitCode  int
}

Client is a struct that holds the clientset and exit code

func NewClient

func NewClient() *Client

NewClient returns a new client

func (*Client) FetchExitCode

func (c *Client) FetchExitCode()

FetchExitCode waits for pod to be in terminated state and get the exit code

func (*Client) FetchFiles

func (c *Client) FetchFiles(config *rest.Config, clientset *kubernetes.Clientset, outputDir string)

FetchFiles downloads the e2e.log and junit_01.xml files from the pod and writes them to the output directory

func (*Client) PrintE2ELogs

func (c *Client) PrintE2ELogs()

PrintE2ELogs checks for Pod and start a go routine if new deployment added

Jump to

Keyboard shortcuts

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