package
0.2.0
Repository: https://github.com/hyperhq/libcompose.git
Documentation: pkg.go.dev

# Functions

And returns a map of labels by merging the two specified values (left and right).
AndString returns a json list of labels by merging the two specified values (left and right) serialized as string.
Convert converts a service configuration to an docker API structures (Config and HostConfig).
ConvertToAPI converts a service configuration to a docker API container configuration.
CreateClient creates a docker client based on the specified options.
CreateTar create a build context tar for the specified project and service name.
Filter filters the specified string slice with the specified function.
GetContainerByID looks up the hosts containers with the specified Id and returns it, or an error.
GetContainerByName looks up the hosts containers with the specified name and returns it, or an error.
GetContainersByFilter looks up the hosts containers with the specified filters and returns a list of container matching it, or an error.
NewContainer creates a container struct with the specified docker client, name and service.
NewDaemonBuilder creates a DaemonBuilder based on the specified context.
NewDefaultClientFactory creates and returns the default client factory that uses github.com/docker/engine-api client.
NewNamer returns a namer that returns names based on the specified project and service name and an inner counter, e.g.
NewProject creates a Project with the specified context.
NewService creates a service.
NewSingleNamer returns a namer that only allows a single name.

# Constants

ComposeVersion is name of docker-compose.yml file syntax supported version.
DefaultAPIVersion is the default docker API version set by libcompose.
DefaultDockerfileName is the default name of a Dockerfile.
DefaultTag is the name of the default tag of an image.
Libcompose default labels.
Libcompose default labels.
Libcompose default labels.
Libcompose default labels.
Libcompose default labels.
Libcompose default labels.

# Structs

ClientOpts holds docker client options (host, tls, ..).
ConfigWrapper wraps Config, HostConfig and NetworkingConfig for a container.
Container holds information about a docker container and the service it is tied on.
Context holds context meta information about a libcompose project and docker client information (like configuration file, builder to use, …).
DaemonBuilder is the daemon "docker build" Builder implementation.
Service is a project.Service implementations.
ServiceFactory is an implementation of project.ServiceFactory.

# Interfaces

Builder defines methods to provide a docker builder.
ClientFactory is a factory to create docker clients.
Namer defines method to provide container name.

# Type aliases

Label represents a docker label.