docker

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder handles Docker image building operations

func NewBuilder

func NewBuilder() (*Builder, error)

NewBuilder creates a new Docker builder

func (*Builder) BuildImage

func (b *Builder) BuildImage(ctx context.Context, contextPath, dockerfileName, tag string) error

BuildImage builds a Docker image from the specified context

func (*Builder) Close added in v0.1.2

func (b *Builder) Close() error

Close closes the Docker client connection

func (*Builder) GetImageHistory added in v0.1.2

func (b *Builder) GetImageHistory(ctx context.Context, imageID string) ([]image.HistoryResponseItem, error)

GetImageHistory retrieves the history of a Docker image

func (*Builder) GetImageInfo added in v0.1.2

func (b *Builder) GetImageInfo(ctx context.Context, imageID string) (*image.InspectResponse, error)

GetImageInfo retrieves information about a Docker image

func (*Builder) RemoveImage added in v0.1.2

func (b *Builder) RemoveImage(ctx context.Context, imageID string) error

RemoveImage removes a Docker image by ID or name

Jump to

Keyboard shortcuts

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