deployment

package
v0.0.0-...-b2d0fcc Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerStatusType

type ContainerStatusType int
const (
	ContainerStatusRunning ContainerStatusType = iota
	ContainerStatusStopped
	ContainerStatusNotFound
	ContainerStatusError
)

type Deployment

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

func NewDeployment

func NewDeployment(runner Runner, syncer ImageSyncer, sm *console.SpinnerManager) *Deployment

func (*Deployment) Deploy

func (d *Deployment) Deploy(ctx context.Context, project string, cfg *config.Config) error

type ImageSyncer

type ImageSyncer interface {
	Sync(ctx context.Context, image string) (bool, error)
	CompareImages(ctx context.Context, image string) (bool, error)
}

type Runner

type Runner interface {
	CopyFile(ctx context.Context, from, to string) error
	Host() string
	RunCommand(ctx context.Context, command string, args ...string) (io.ReadCloser, error)
}

Jump to

Keyboard shortcuts

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