Documentation
¶
Index ¶
- type Orchestrator
- func (o *Orchestrator) Deploy(ctx context.Context, config *model.Deployment) error
- func (o *Orchestrator) GetLogs(ctx context.Context, containerName string, lines int) (string, error)
- func (o *Orchestrator) GetStatus(ctx context.Context, containerName string) (string, error)
- func (o *Orchestrator) Rollback(ctx context.Context, config *model.Deployment) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
func NewOrchestrator ¶
func NewOrchestrator(logger *logrus.Logger, dockerMgr *docker.Manager) *Orchestrator
NewOrchestrator creates a new deployment orchestrator
func (*Orchestrator) Deploy ¶
func (o *Orchestrator) Deploy(ctx context.Context, config *model.Deployment) error
Deploy deploys a new version of the application
func (*Orchestrator) GetLogs ¶
func (o *Orchestrator) GetLogs(ctx context.Context, containerName string, lines int) (string, error)
GetLogs retrieves logs for the container
func (*Orchestrator) Rollback ¶
func (o *Orchestrator) Rollback(ctx context.Context, config *model.Deployment) error
Rollback reverts to the previous version
Click to show internal directories.
Click to hide internal directories.