docker

package
v1.39.18 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetAvailablePort = util.GetAvailablePort // For testing

Functions

This section is empty.

Types

type Deployer

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

func NewDeployer

func NewDeployer(ctx context.Context, cfg dockerutil.Config, labeller *label.DefaultLabeller, d *latest.DockerDeploy, resources []*latest.PortForwardResource) (*Deployer, error)

func (*Deployer) Cleanup

func (d *Deployer) Cleanup(ctx context.Context, out io.Writer, dryRun bool) error

func (*Deployer) Dependencies

func (d *Deployer) Dependencies() ([]string, error)

func (*Deployer) Deploy

func (d *Deployer) Deploy(ctx context.Context, out io.Writer, builds []graph.Artifact) error

Deploy deploys built artifacts by creating containers in the local docker daemon from each artifact's image.

func (*Deployer) GetAccessor

func (d *Deployer) GetAccessor() access.Accessor

func (*Deployer) GetDebugger

func (d *Deployer) GetDebugger() debug.Debugger

func (*Deployer) GetLogger

func (d *Deployer) GetLogger() log.Logger

func (*Deployer) GetStatusMonitor

func (d *Deployer) GetStatusMonitor() status.Monitor

func (*Deployer) GetSyncer

func (d *Deployer) GetSyncer() pkgsync.Syncer

func (*Deployer) RegisterLocalImages

func (d *Deployer) RegisterLocalImages([]graph.Artifact)

func (*Deployer) Render

func (*Deployer) TrackBuildArtifacts

func (d *Deployer) TrackBuildArtifacts(artifacts []graph.Artifact)

func (*Deployer) TrackContainerFromBuild

func (d *Deployer) TrackContainerFromBuild(artifact graph.Artifact, container tracker.Container)

TrackContainerFromBuild adds an artifact and its newly-associated container to the container tracker.

type PortManager

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

func NewPortManager

func NewPortManager() *PortManager

func (*PortManager) Start

func (pm *PortManager) Start(_ context.Context, out io.Writer) error

func (*PortManager) Stop

func (pm *PortManager) Stop()

Jump to

Keyboard shortcuts

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