command

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 9 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 {
	Kubernetes kubernetes.Interface
	REST       rest.Interface
	Config     *rest.Config
	Context    contextpkg.Context
	Stderr     io.Writer

	Namespace            string
	SurrogateAppName     string
	SpoolerContainerName string
	RegistryHost         string
	RegistryCertificate  string
	RegistryUsername     string
	RegistryPassword     string
	RegistryToken        string

	Log commonlog.Logger
}

func NewClient

func NewClient(kubernetes kubernetes.Interface, rest rest.Interface, config *rest.Config, context contextpkg.Context, stderr io.Writer, namespace string, surrogateAppName string, spoolerContainerName string, host string, certificate string, username string, password string, token string, log commonlog.Logger) *Client

func (*Client) Command

func (self *Client) Command(writer io.Writer, arguments ...string) error

func (*Client) ListImages

func (self *Client) ListImages() ([]string, error)

func (*Client) PullLayer

func (self *Client) PullLayer(imageName string, writer io.Writer) error

func (*Client) PullTarball

func (self *Client) PullTarball(imageName string, writer io.Writer) error

Jump to

Keyboard shortcuts

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