deploy

package
v0.6.21 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package deploy implements deployment orchestration, handlers, and integration logic for managing application deployments in the daemon. It coordinates deployment workflows, lifecycle management, and high-level operations, utilizing core types from pkg/core/deploy. Concrete deployment execution and internal details are encapsulated within this package.

Build pipeline (build nodes only):

  • BuildImage(name, srcDir, cfg) builds a Docker image from a cloned source directory, pushes it to cfg.RegistryURL, removes the local copy to reclaim disk, and returns the fully-qualified image reference. The image tag is a millisecond Unix timestamp for natural sort order and uniqueness. Requires REGISTRY_URL in config.toml. Set REGISTRY_AUTH to a base64-encoded JSON credential string ({"username":"…","password":"…"}) for authenticated registries such as DigitalOcean Container Registry.

  • imageRef(registryURL, name) constructs the image reference used as the tag for both docker build and docker push.

Index

Constants

View Source
const DockerIgnoreContent = `` /* 1163-byte string literal not displayed */

DockerIgnoreContent defines patterns to exclude from Docker builds

Variables

This section is empty.

Functions

func BuildImage added in v0.6.21

func BuildImage(name, srcDir string, cfg *shared.Config) (string, error)

func CloneRepo

func CloneRepo(remote store.RemoteObj, destDir, workDir string, config *shared.Config) error

CloneRepo clones a git repository to the specified directory

func DeployApp

func DeployApp(bp store.Blueprint, name, logPath string, cfg *shared.Config) error

DeployApp handles runtime setup, build, and service installation

func PullImage added in v0.6.0

func PullImage(imageRef string, workDir string, config *shared.Config) error

PullImage pulls a docker image from a registry

func SetupDir

func SetupDir(name string) (string, error)

SetupDir creates a working directory for the deployment

Types

type Deployer

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

func Init

Init creates a new Deployer instance

func (*Deployer) Build added in v0.6.21

func (*Deployer) Deploy

func (*Deployer) GetDeployment

func (d *Deployer) GetDeployment(ctx context.Context, id string) (*store.Deployment, error)

func (*Deployer) ListDeployments

func (d *Deployer) ListDeployments(ctx context.Context, userID string, limit, offset int) ([]*store.Deployment, error)

func (*Deployer) Publish added in v0.6.21

func (*Deployer) UpdateDeploymentStatus

func (d *Deployer) UpdateDeploymentStatus(ctx context.Context, id string, status store.Status) error

type Dispatcher

type Dispatcher interface {
	Submit(id string)
}

Jump to

Keyboard shortcuts

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