docker

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(ctx context.Context) error

Types

type CleanupArtifactsOption

type CleanupArtifactsOption func(*CleanupArtifactsOptions)

func WithSkipLatest

func WithSkipLatest(skipLatest bool) CleanupArtifactsOption

type CleanupArtifactsOptions

type CleanupArtifactsOptions struct {
	SkipLatest bool
}

type DockerClient

type DockerClient struct {
	CLI *client.Client

	// If true, intermediate images will be removed when cleaning up
	// images. This keeps the environment clean, but increases build
	// times when Flowpipe is first launched. Default is true.
	PruneImages bool
	// contains filtered or unexported fields
}

Client represents a connection to Docker.

var GlobalDockerClient *DockerClient

func New

func New(options ...Option) (*DockerClient, error)

New creates a new Docker client with the provided options.

func (*DockerClient) CleanupArtifacts

func (dc *DockerClient) CleanupArtifacts() error

CleanupArtifacts deletes all containers and images related to flowpipe.

func (*DockerClient) CleanupArtifactsForLabel

func (dc *DockerClient) CleanupArtifactsForLabel(key string, value string, opts ...CleanupArtifactsOption) error

CleanupArtifacts deletes all containers and images related to flowpipe.

func (*DockerClient) ImageExists

func (dc *DockerClient) ImageExists(imageName string) (bool, error)

func (*DockerClient) ImagePull

func (dc *DockerClient) ImagePull(imageName string) error

type Option

type Option func(*DockerClient) error

Option defines a function signature for configuring the Docker client.

func WithContext

func WithContext(ctx context.Context) Option

WithContext configures the Docker client with a specific context.

func WithPingTest

func WithPingTest() Option

WithPingTest configures the Docker client to perform a ping test to ensure the Docker service is running and available.

func WithPruneImages

func WithPruneImages() Option

Jump to

Keyboard shortcuts

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