Documentation ¶
Index ¶
- Variables
- func ConnectToSocket() (net.Conn, error)
- func CreateDockerCli(quiet, verifyTLS bool) (command.Cli, error)
- func DeployCompose(ctx context.Context, dockerCli command.Cli, project *types.Project, ...) error
- func GetSocketGroupOwner() (string, error)
- func LoadCompose(ctx context.Context, workingDir, projectName string, composeFiles []string) (*types.Project, error)
- func NewHttpClient() *http.Client
- func VerifySocketConnection(apiVersion string) error
- func VerifySocketRead(httpClient *http.Client, apiVersion string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDockerSocketConnectionFailed = errors.New("failed to connect to docker socket") ErrNoContainerToStart = errors.New("no container to start") )
Functions ¶
func ConnectToSocket ¶
ConnectToSocket connects to the docker socket
func DeployCompose ¶
func DeployCompose(ctx context.Context, dockerCli command.Cli, project *types.Project, deployConfig *config.DeployConfig, payload webhook.ParsedPayload) error
DeployCompose deploys a project as specified by the Docker Compose specification (LoadCompose)
func GetSocketGroupOwner ¶
func LoadCompose ¶
func LoadCompose(ctx context.Context, workingDir, projectName string, composeFiles []string) (*types.Project, error)
LoadCompose parses and loads Compose files as specified by the Docker Compose specification
func NewHttpClient ¶
func VerifySocketConnection ¶
VerifySocketConnection verifies whether the application can connect to the docker socket
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.