# Packages
No description provided by the author
# Functions
HasErrorCode is a function.
NewDockerCommand it runs docker commands.
NewDummyAppConfig creates a new dummy AppConfig for testing.
NewDummyDockerCommand creates a new dummy DockerCommand for testing.
NewDummyDockerCommandWithOSCommand creates a new dummy DockerCommand for testing.
NewDummyLog creates a new dummy Log for testing.
NewDummyOSCommand creates a new dummy OSCommand for testing.
NewOSCommand os command runner.
WrapError wraps an error for the sake of showing a stack trace at the top level the go-errors package, for some reason, does not return nil when you try to wrap a non-error, so we're just doing it here.
# Constants
No description provided by the author
MustStopContainer tells us that we must stop the container before removing it.
# Structs
CommandObject is what we pass to our template resolvers when we are running a custom command.
ComplexError an error which carries a code so that calling code has an easier job to do adapted from https://medium.com/yakka/better-go-error-handling-with-xerrors-1987650e0c79.
Container : A docker Container.
ContainerStats autogenerated at https://mholt.github.io/json-to-go/.
DerivedStats contains some useful stats that we've calculated based on the raw container stats that we got back from docker.
DockerCommand is our main docker interface.
Image : A docker Image.
Network : A docker Network.
OSCommand holds all the os commands.
Platform stores the os state.
No description provided by the author
RecordedStats contains both the container stats we've received from docker, and our own derived stats from those container stats.
Service : A docker Service.
Volume : A docker Volume.
# Interfaces
LimitedDockerCommand is a stripped-down DockerCommand with just the methods the container/service/image might need.