package
17.12.1-ce-rc2+incompatible
Repository: https://github.com/kleijnweb/cli.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
GetSandboxPortMapInfo retrieves the current port-mapping programmed for the given sandbox.
IsValidHealthString checks if the provided string is a valid container health status or not.
IsValidStateString checks if the provided string is a valid container state or not.
NewBaseContainer creates a new container with its basic configuration.
NewMemoryStore initializes a new memory store.
NewState creates a default state object with a fresh channel for state changes.
NewViewDB provides the default implementation, with the default schema.
ReplaceOrAppendEnvValues returns the defaults with the overrides either replaced by env key or appended to the list.
# Constants
DefaultStopTimeout is the timeout (in seconds) for the syscall signal used to stop a container.
Possible WaitCondition Values.
Possible WaitCondition Values.
Possible WaitCondition Values.
# Variables
ErrNameNotReserved is an error which is returned when trying to find a name that is not reserved.
ErrNameReserved is an error which is returned when a name is requested to be reserved that already is reserved.
# Structs
Container holds the structure defining a container object.
ExitStatus provides exit reasons for a container.
Health holds the current container health-check state.
Mount contains information for a mount operation.
NoSuchContainerError indicates that the container wasn't found in the database.
Snapshot is a read only view for Containers.
State holds the current container state, and has methods to get and set the state.
StateStatus is used to return container wait results.
# Type aliases
History is a convenience type for storing a list of containers, sorted by creation date in descendant order.
StoreFilter defines a function to filter container in the store.
StoreReducer defines a function to manipulate containers in the store.
WaitCondition is an enum type for different states to wait for.