Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Bench []Image = []Image{ Ubuntu("bionic"), CentOS(7), }
Bench is
View Source
var FullBench []Image = []Image{ Debian("bullseye"), Debian("buster"), Debian("stretch"), Ubuntu("bionic"), Ubuntu("eoan"), Ubuntu("focal"), Ubuntu("trusty"), Ubuntu("xenial"), CentOS(7), CentOS(6), RedHat(6), RedHat(7), Oracle(6), Oracle(7), Oracle(8), Fedora(26), Fedora(27), Fedora(28), Fedora(29), Fedora(30), Fedora(31), Fedora(32), Fedora(33), }
FullBench is a map of images that can be used as a test bench.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container represents a docker container
func (*Container) Addr ¶
Addr is a handy function for getting the container address string localhost:port
func (*Container) Exec ¶
Exec issues 'docker exec' to the container. Returns stdout, stderr and exitcode if found. Leading and trailing spaces and newlines are trimmed from stdout and stderr.
func (*Container) NewSSHClient ¶
NewSSHClient returns a new ssh client for the container user must be eiter root, gossh or hobgob
type Image ¶
type Image struct { // From and tag is the docker image (prefixed repo url, if not hub.docker.com) // // Used in the from statement in the top of the Dockerfile // // FROM <From>[:<tag>] From string Tag string // Last part of the dockerfile, after FROM Instructions string // Slug should be a short sluglike name Slug string }
Image is a reference to a docker image
func (Image) Dockerfile ¶
Dockerfile returns the dockerfile for a debian image
Click to show internal directories.
Click to hide internal directories.