image

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(image string, cmd string) *exec.Cmd

Cmd constructs a command that can be host.Exec (or else). Useful to run something in the container. Note the current implementation always uses `docker run --rm` regardless what backend is configured. Essentially that will span up new container every call which might be costly. This behavior may and certainly will change in future towards improving execution speed and using actually configured backend.

func DiscoverImage

func DiscoverImage(image string)

DiscoverImage discover facts about the image

Types

type Image

type Image struct {
	Name          string
	OS            string
	PathSeparator string
	User          string
	Home          string
}

Image holds facts about the image

Jump to

Keyboard shortcuts

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