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: 0

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