Documentation
¶
Index ¶
- type ComposeExecutor
- func (c *ComposeExecutor) Down(deploymentPath string) (string, error)
- func (c *ComposeExecutor) GetStatus(deploymentPath string) (string, error)
- func (c *ComposeExecutor) Logs(deploymentPath string, tail int) (string, error)
- func (c *ComposeExecutor) PS(deploymentPath string) (string, error)
- func (c *ComposeExecutor) Pull(deploymentPath string) (string, error)
- func (c *ComposeExecutor) Restart(deploymentPath string) (string, error)
- func (c *ComposeExecutor) Start(deploymentPath string) (string, error)
- func (c *ComposeExecutor) Stop(deploymentPath string) (string, error)
- func (c *ComposeExecutor) Up(deploymentPath string) (string, error)
- type DeploymentStats
- type Discovery
- func (d *Discovery) CreateDeployment(name string, composeContent string) error
- func (d *Discovery) DeleteDeployment(name string) error
- func (d *Discovery) DeleteMetadata(name string) error
- func (d *Discovery) FindDeployments() ([]models.Deployment, error)
- func (d *Discovery) GetComposeFile(name string) (string, error)
- func (d *Discovery) GetDeployment(name string) (*models.Deployment, error)
- func (d *Discovery) SaveMetadata(name string, metadata *models.ServiceMetadata) error
- func (d *Discovery) UpdateComposeFile(name string, content string) error
- type Manager
- func (m *Manager) BasePath() string
- func (m *Manager) CreateDeployment(name string, composeContent string) error
- func (m *Manager) DeleteDeployment(name string) error
- func (m *Manager) GetComposeFile(name string) (string, error)
- func (m *Manager) GetDeployment(name string) (*models.Deployment, error)
- func (m *Manager) GetDeploymentLogs(name string, tail int) (string, error)
- func (m *Manager) GetStats() (*DeploymentStats, error)
- func (m *Manager) ListDeployments() ([]models.Deployment, error)
- func (m *Manager) RestartDeployment(name string) (string, error)
- func (m *Manager) SaveMetadata(name string, metadata *models.ServiceMetadata) error
- func (m *Manager) StartDeployment(name string) (string, error)
- func (m *Manager) StopDeployment(name string) (string, error)
- func (m *Manager) UpdateDeployment(name string, composeContent string) error
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) 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)
type DeploymentStats ¶
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
func NewDiscovery ¶
func (*Discovery) CreateDeployment ¶
func (*Discovery) DeleteDeployment ¶
func (*Discovery) DeleteMetadata ¶
func (*Discovery) FindDeployments ¶
func (d *Discovery) FindDeployments() ([]models.Deployment, 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
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) CreateDeployment ¶
func (*Manager) DeleteDeployment ¶
func (*Manager) GetDeployment ¶
func (m *Manager) GetDeployment(name string) (*models.Deployment, error)
func (*Manager) GetDeploymentLogs ¶
func (*Manager) GetStats ¶
func (m *Manager) GetStats() (*DeploymentStats, error)
func (*Manager) ListDeployments ¶
func (m *Manager) ListDeployments() ([]models.Deployment, error)
func (*Manager) RestartDeployment ¶
func (*Manager) SaveMetadata ¶
func (m *Manager) SaveMetadata(name string, metadata *models.ServiceMetadata) error
Click to show internal directories.
Click to hide internal directories.