types

package
v0.0.0-...-01a130c Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: GPL-3.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerStatus

type ContainerStatus struct {
	Status  string
	Message string
}

ContianerStatus holds the status and related status message of a container

type ExitCodes

type ExitCodes struct {
	Codes []int
}

ExitCodes holds a list of exit codes

func (*ExitCodes) Contains

func (c *ExitCodes) Contains(value int) bool

Contains will return true if c contains the value, otherwise false

func (*ExitCodes) Len

func (c *ExitCodes) Len() int

Len returns the number of exit codes in c

type FileMonitor

type FileMonitor struct {
	File   string         `the file to monitor`
	Regex  *regexp.Regexp `the regular expression to look for`
	Status string         `weather to succeed or fail`
}

FileMonitor holds information about file monitors for our containers

type Requires

type Requires struct {
	Require []string
}

Requires stores the requirements for each compose-file

type StateConditions

type StateConditions struct {
	ExitCodes    *ExitCodes               `the exit code to expect. the value '-1' indicates that the process should not exit`
	FileMonitors map[string][]FileMonitor `a map of map[filepath][]FileMonitor type to store filemonitors`
	Timeout      *Timeout                 `how long we should wait (in seconds) for a success prior to automatically failing.`
}

StateConditions holds our conditions tht have been applied to services

type Timeout

type Timeout struct {
	Duration float64
	Status   string
}

Timeout holds information about a timeout that has been specified on a container

Jump to

Keyboard shortcuts

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