docker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildResult

type BuildResult struct {
	ImageTag string
	ImageURI string
}

BuildResult holds the result of a Docker build

type Client

type Client struct {
	Docker *client.Client
}

Client wraps Docker client

func NewClient

func NewClient(ctx context.Context) (*Client, error)

NewClient creates a new Docker client

func (*Client) Build

func (c *Client) Build(ctx context.Context, cfg *config.DeployConfig, contextPath, tag string) (*BuildResult, error)

Build builds a Docker image

func (*Client) Close

func (c *Client) Close() error

Close closes the Docker client

func (*Client) Push

func (c *Client) Push(ctx context.Context, ecrClient *ecr.Client, imageTag string) error

Push pushes an image to ECR

func (*Client) Tag

func (c *Client) Tag(ctx context.Context, sourceTag, targetTag string) error

Tag tags a Docker image

Jump to

Keyboard shortcuts

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