client

package
v0.6.0 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: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is used to retrieve conformance test logs, results and status information.

func NewClient

func NewClient(config *rest.Config, clientset *kubernetes.Clientset, namespace string) *Client

func (*Client) FetchExitCode

func (c *Client) FetchExitCode(ctx context.Context) (int, error)

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

func (*Client) FetchFiles

func (c *Client) FetchFiles(ctx context.Context, outputDir string) error

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(ctx context.Context) error

PrintE2ELogs checks for Pod and starts a goroutine to print the logs in real-time to stdout.

Jump to

Keyboard shortcuts

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