Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ObsoleteAfter = 10 * time.Minute
Functions ¶
func ClearObsolete ¶
func ClearObsolete() error
ClearObsolete will delete all obsolete containers, created by this program
Types ¶
type ContainerConfig ¶
type ContainerConfig struct { Image string Cmd []string Env []string ContainerPort string Tmpfs map[string]string }
ContainerConfig holds a subset of all of the configuration options available for the docker instance
type HTTPProbe ¶
type HTTPProbe struct { }
HTTPProbe implements the IProbe interface for HTTP connections
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance contains the setup for the docker instance
func CreateContainer ¶
func CreateContainer(config ContainerConfig, prober Probe) (*Instance, error)
CreateContainer will create a new container with the specified Probe to check if it is up
func CreateContainerWithPlatform ¶ added in v1.3.1
func CreateContainerWithPlatform(config ContainerConfig, platform *v1.Platform, prober Probe) (*Instance, error)
CreateContainerWithPlatform applies the config and creates the container config specifices configuration for the container platform if you want to specificy a certain platform. nil if you want to use default.
func (*Instance) Container ¶
func (i *Instance) Container() types.ContainerJSON
Click to show internal directories.
Click to hide internal directories.