docker

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComposeExecutor

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

func NewComposeExecutor

func NewComposeExecutor(basePath string) *ComposeExecutor

func (*ComposeExecutor) Down

func (c *ComposeExecutor) Down(deploymentPath string) (string, error)

func (*ComposeExecutor) GetStatus

func (c *ComposeExecutor) GetStatus(deploymentPath string) (string, error)

func (*ComposeExecutor) Logs

func (c *ComposeExecutor) Logs(deploymentPath string, tail int) (string, error)

func (*ComposeExecutor) PS

func (c *ComposeExecutor) PS(deploymentPath string) (string, error)

func (*ComposeExecutor) Pull

func (c *ComposeExecutor) Pull(deploymentPath string) (string, error)

func (*ComposeExecutor) Restart

func (c *ComposeExecutor) Restart(deploymentPath string) (string, error)

func (*ComposeExecutor) Start

func (c *ComposeExecutor) Start(deploymentPath string) (string, error)

func (*ComposeExecutor) Stop

func (c *ComposeExecutor) Stop(deploymentPath string) (string, error)

func (*ComposeExecutor) Up

func (c *ComposeExecutor) Up(deploymentPath string) (string, error)

type DeploymentStats

type DeploymentStats struct {
	TotalDeployments int       `json:"total_deployments"`
	Running          int       `json:"running"`
	Stopped          int       `json:"stopped"`
	Error            int       `json:"error"`
	Unknown          int       `json:"unknown"`
	LastUpdated      time.Time `json:"last_updated"`
}

type Discovery

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

func NewDiscovery

func NewDiscovery(basePath string) *Discovery

func (*Discovery) CreateDeployment

func (d *Discovery) CreateDeployment(name string, composeContent string) error

func (*Discovery) DeleteDeployment

func (d *Discovery) DeleteDeployment(name string) error

func (*Discovery) DeleteMetadata

func (d *Discovery) DeleteMetadata(name string) error

func (*Discovery) FindDeployments

func (d *Discovery) FindDeployments() ([]models.Deployment, error)

func (*Discovery) GetComposeFile

func (d *Discovery) GetComposeFile(name string) (string, error)

func (*Discovery) GetDeployment

func (d *Discovery) GetDeployment(name string) (*models.Deployment, error)

func (*Discovery) SaveMetadata

func (d *Discovery) SaveMetadata(name string, metadata *models.ServiceMetadata) error

func (*Discovery) UpdateComposeFile

func (d *Discovery) UpdateComposeFile(name string, content string) error

type Manager

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

func NewManager

func NewManager(deploymentsPath string) *Manager

func (*Manager) BasePath

func (m *Manager) BasePath() string

func (*Manager) CreateDeployment

func (m *Manager) CreateDeployment(name string, composeContent string) error

func (*Manager) DeleteDeployment

func (m *Manager) DeleteDeployment(name string) error

func (*Manager) GetComposeFile

func (m *Manager) GetComposeFile(name string) (string, error)

func (*Manager) GetDeployment

func (m *Manager) GetDeployment(name string) (*models.Deployment, error)

func (*Manager) GetDeploymentLogs

func (m *Manager) GetDeploymentLogs(name string, tail int) (string, error)

func (*Manager) GetStats

func (m *Manager) GetStats() (*DeploymentStats, error)

func (*Manager) ListDeployments

func (m *Manager) ListDeployments() ([]models.Deployment, error)

func (*Manager) RestartDeployment

func (m *Manager) RestartDeployment(name string) (string, error)

func (*Manager) SaveMetadata

func (m *Manager) SaveMetadata(name string, metadata *models.ServiceMetadata) error

func (*Manager) StartDeployment

func (m *Manager) StartDeployment(name string) (string, error)

func (*Manager) StopDeployment

func (m *Manager) StopDeployment(name string) (string, error)

func (*Manager) UpdateDeployment

func (m *Manager) UpdateDeployment(name string, composeContent string) error

Jump to

Keyboard shortcuts

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