Documentation
¶
Index ¶
- type ProjectInfo
- type Registry
- func (r *Registry) GetAllProjectNetworks() ([]string, error)
- func (r *Registry) GetProject(name, environment string) (*ProjectInfo, error)
- func (r *Registry) ListProjects() ([]ProjectInfo, error)
- func (r *Registry) RegisterProject(info ProjectInfo) error
- func (r *Registry) UnregisterProject(name, environment string) error
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 ¶
NewRegistry creates a new project registry
func (*Registry) GetAllProjectNetworks ¶
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 ¶
UnregisterProject removes a project from the registry
Click to show internal directories.
Click to hide internal directories.