Documentation
¶
Overview ¶
Package deploy implements deployment orchestration, handlers, and integration logic for managing application deployments in the daemon. It coordinates deployment workflows, lifecycle management, and high-level operations, utilizing core types from pkg/core/deploy. Concrete deployment execution and internal details are encapsulated within this package.
Index ¶
- func CloneRepo(remote store.RemoteObj, destDir, workDir string, config *shared.Config) error
- func DeployApp(bp store.Blueprint) error
- func SetupDir(name string) (string, error)
- type DeployRequest
- type Deployer
- func (d *Deployer) Deploy(ctx context.Context, req *deploy.DeployRequest) (*deploy.DeployResponse, error)
- func (d *Deployer) GetDeployment(ctx context.Context, id string) (*store.Deployment, error)
- func (d *Deployer) ListDeployments(ctx context.Context, userID string, limit, offset int) ([]*store.Deployment, error)
- func (d *Deployer) UpdateDeploymentStatus(ctx context.Context, id string, status store.Status) error
- type Dispatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeployRequest ¶
type DeployRequest struct{}
type Deployer ¶
type Deployer struct {
// contains filtered or unexported fields
}
func Init ¶
func Init(c *shared.Config, l *shared.Logger, s store.DeploymentStore, j Dispatcher) *Deployer
Init creates a new Deployer instance
func (*Deployer) Deploy ¶
func (d *Deployer) Deploy(ctx context.Context, req *deploy.DeployRequest) (*deploy.DeployResponse, error)
func (*Deployer) GetDeployment ¶
func (*Deployer) ListDeployments ¶
type Dispatcher ¶
type Dispatcher interface {
Submit(id string)
}
Click to show internal directories.
Click to hide internal directories.