deploy

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2025 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployer

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

Deployer handles service deployment strategies

func NewDeployer

func NewDeployer(mgr *manager.Manager) *Deployer

NewDeployer creates a new deployer

func (*Deployer) GetDeploymentStatus

func (d *Deployer) GetDeploymentStatus(serviceID string) (*DeploymentStatus, error)

GetDeploymentStatus returns the status of a deployment

func (*Deployer) UpdateService

func (d *Deployer) UpdateService(serviceID string, newImage string) error

UpdateService updates a service with the specified strategy

type DeploymentStatus

type DeploymentStatus struct {
	ServiceID    string
	ServiceName  string
	Image        string
	Strategy     string
	TotalTasks   int
	DesiredTasks int
	ReadyTasks   int
	Tasks        map[string]int // State -> Count
}

DeploymentStatus represents the current status of a deployment

Jump to

Keyboard shortcuts

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