registry

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectInfo

type ProjectInfo struct {
	Name        string    `json:"name"`
	Environment string    `json:"environment"`
	Network     string    `json:"network"`
	Services    []string  `json:"services"`
	Domains     []string  `json:"domains"`
	DeployedAt  time.Time `json:"deployed_at"`
}

ProjectInfo holds metadata about a deployed project

type Registry

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

Registry manages the list of deployed projects on a server

func NewRegistry

func NewRegistry(client *ssh.Client, verbose bool) *Registry

NewRegistry creates a new project registry

func (*Registry) GetAllProjectNetworks

func (r *Registry) GetAllProjectNetworks() ([]string, error)

GetAllProjectNetworks returns a list of all networks used by registered projects

func (*Registry) GetProject

func (r *Registry) GetProject(name, environment string) (*ProjectInfo, error)

GetProject retrieves project information from the registry

func (*Registry) ListProjects

func (r *Registry) ListProjects() ([]ProjectInfo, error)

ListProjects returns a list of all registered projects

func (*Registry) RegisterProject

func (r *Registry) RegisterProject(info ProjectInfo) error

RegisterProject adds or updates a project in the registry

func (*Registry) UnregisterProject

func (r *Registry) UnregisterProject(name, environment string) error

UnregisterProject removes a project from the registry

Jump to

Keyboard shortcuts

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