Documentation ¶
Index ¶
- func ContainerExists(name string) bool
- func ContainerExitCode(containerName string) string
- func ContainerIsRunning(name string) bool
- func GetContainerImageId(name string) string
- func GetContainerServiceNameLabel(containerName string) string
- func GetContainerUniqueLabel(containerName string) string
- func GetImageId(imageName string) string
- func GetNumericSuffix(name string, sep string) (int, error)
- func GetProjectState(projName string, projSep string) (svcs map[string]*ServiceState, err error)
- func HashInterfaceSlice(args []interface{}) string
- func PullImage(imageName string) error
- func RandStringBytesMaskImprSrc(n int) string
- func RenameContainer(currentName string, newName string) error
- func RunCmd(args ...interface{}) (out []byte, err error)
- func ToInterfaceSlice(data []string) (out []interface{})
- func ToStringSlice(data []interface{}) (out []string)
- func WasContainerStartedAfter(name string, afterTime time.Time) (bool, error)
- func WasContainerStartedAfterOrRetry(name string, afterTime time.Time, maxAttempts int, interval time.Duration) bool
- type ServiceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerExitCode ¶
func GetContainerImageId ¶
Get the image id for a given container
func GetContainerServiceNameLabel ¶
Get the value of the label used to record the run service name (for scaling)
func GetContainerUniqueLabel ¶
Get the value of the label used to record the run arguments used when creating the container
func GetProjectState ¶
func GetProjectState(projName string, projSep string) (svcs map[string]*ServiceState, err error)
func HashInterfaceSlice ¶
func HashInterfaceSlice(args []interface{}) string
func RandStringBytesMaskImprSrc ¶
stole this from stack overflow.
func RenameContainer ¶
func ToInterfaceSlice ¶
func ToInterfaceSlice(data []string) (out []interface{})
func ToStringSlice ¶
func ToStringSlice(data []interface{}) (out []string)
Types ¶
Click to show internal directories.
Click to hide internal directories.