rest

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRestClient

func SetRestClient(r RestClient)

SetRestClient for unit test

Types

type RestClient

type RestClient interface {
	// Exec exec command in pod
	Exec(ctx context.Context, namespace, pod, container string, cmd []string) (stdout string, stderr string, err error)
}

func GetRestClient

func GetRestClient() RestClient

type RestClientImpl

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

func (RestClientImpl) Exec

func (clis RestClientImpl) Exec(ctx context.Context, namespace, pod, container string, cmd []string) (stdout string, stderr string, err error)

Jump to

Keyboard shortcuts

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