docker

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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

func ConnectToSocket() (net.Conn, error)

ConnectToSocket connects to the docker socket

func CreateDockerCli

func CreateDockerCli(quiet, verifyTLS bool) (command.Cli, error)

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 GetSocketGroupOwner() (string, error)

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 NewHttpClient() *http.Client

func VerifySocketConnection

func VerifySocketConnection(apiVersion string) error

VerifySocketConnection verifies whether the application can connect to the docker socket

func VerifySocketRead

func VerifySocketRead(httpClient *http.Client, apiVersion string) error

VerifySocketRead verifies whether the application can read from the docker socket

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL