spooler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 10 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
	SpoolDirectory       string
}

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, spoolDirectory string) *Client

func (*Client) DeleteImage

func (self *Client) DeleteImage(imageName string) error

func (*Client) PushLayer

func (self *Client) PushLayer(fileName string, reader io.Reader, size int64) error

func (*Client) PushLayerFromURL

func (self *Client) PushLayerFromURL(fileName string, url urlpkg.URL) error

func (*Client) PushTarball

func (self *Client) PushTarball(fileName string, reader io.Reader) error

func (*Client) PushTarballFromFile

func (self *Client) PushTarballFromFile(imageName string, path string) error

func (*Client) PushTarballFromURL

func (self *Client) PushTarballFromURL(imageName string, url urlpkg.URL) error

Jump to

Keyboard shortcuts

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