control

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(opt Opt) (*Controller, error)

func (*Controller) Close

func (c *Controller) Close() error

func (*Controller) Delete

func (c *Controller) Delete(ctx context.Context, ref string) error

func (*Controller) GetRuntimeImage

func (c *Controller) GetRuntimeImage(ctx context.Context, ref string, platform platforms.MatchComparer) (*images.Image, error)

func (*Controller) Images

func (c *Controller) Images(ctx context.Context) ([]images.Image, error)

func (*Controller) Pull

func (c *Controller) Pull(ctx context.Context, ref string, platform platforms.MatchComparer) (*images.Image, error)

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, img *images.Image, platform platforms.MatchComparer, po ProcessOpt) error

type Opt

type Opt struct {
	Root string
}

type ProcessOpt

type ProcessOpt struct {
	Args       []string
	Entrypoint string
	Env        map[string]string
	Volumes    map[string]string
	Runtime    string
}

Jump to

Keyboard shortcuts

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