container

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type In

type In struct {
	Image string // The container image to run
	Args  string // Arguments to be passed to the container on the command line
	Key   string // A JSON key to dereference from the container response - the corresponding value must be a string
}

In contains the values needed to run the container

type Out

type Out struct {
	Value string // The string value obtained when dereferencing the supplied key from the container response
}

Out contains the result of running the container

func Run

func Run(in In) Out

Run the container using Docker We assume the container returns a JSON response. We then use the supplied Key to pull a single value out of that response.

Jump to

Keyboard shortcuts

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