package
0.0.0-20240818021530-f5e744f7964a
Repository: https://github.com/kaisenlinux/docker.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
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.
NewExecConfig initializes the a new exec configuration.
NewExecStore initializes a new exec store.
NewMemoryStore initializes a new memory store.
NewState creates a default state object.
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
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.
ExecConfig holds the configurations for execs.
ExecStore keeps track of the exec configurations.
ExitStatus provides exit reasons for a container.
Health holds the current container health-check state.
Mount contains information for a mount operation.
No description provided by the author
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.
View provides a consistent read-only view of the database.
ViewDB provides an in-memory transactional (ACID) container store.
# Interfaces
Store defines an interface that any container store must implement.
# 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.