Documentation ¶
Index ¶
- type Api
- func (a *Api) AddModule(ctx context.Context, id, version string) (string, error)
- func (a *Api) CancelJob(_ context.Context, id string) error
- func (a *Api) CancelPendingModuleUpdate(ctx context.Context, id string) error
- func (a *Api) CheckModuleUpdates(ctx context.Context) (string, error)
- func (a *Api) CreateDeployment(ctx context.Context, id string, depInput model.DepInput, ...) (string, error)
- func (a *Api) DeleteDeployment(ctx context.Context, id string, orphans bool) error
- func (a *Api) DeleteModule(ctx context.Context, id string, orphans, force bool) error
- func (a *Api) DisableDeployment(_ context.Context, id string, dependencies bool) (string, error)
- func (a *Api) EnableDeployment(ctx context.Context, id string) error
- func (a *Api) GetDeployment(ctx context.Context, id string) (model.Deployment, error)
- func (a *Api) GetDeploymentHealth(ctx context.Context, dID string) (model.DepHealthInfo, error)
- func (a *Api) GetDeploymentUpdateTemplate(ctx context.Context, id string) (model.DepUpdateTemplate, error)
- func (a *Api) GetDeployments(ctx context.Context, filter model.DepFilter) ([]model.DepBase, error)
- func (a *Api) GetDeploymentsHealth(ctx context.Context) (map[string]model.DepHealthInfo, error)
- func (a *Api) GetJob(_ context.Context, id string) (model.Job, error)
- func (a *Api) GetJobs(_ context.Context, filter model.JobFilter) ([]model.Job, error)
- func (a *Api) GetModule(ctx context.Context, id string) (model.Module, error)
- func (a *Api) GetModuleDeployTemplate(ctx context.Context, id string) (model.ModDeployTemplate, error)
- func (a *Api) GetModuleUpdate(ctx context.Context, id string) (model.ModUpdate, error)
- func (a *Api) GetModuleUpdateTemplate(ctx context.Context, id string) (model.ModUpdateTemplate, error)
- func (a *Api) GetModuleUpdates(ctx context.Context) (map[string]model.ModUpdate, error)
- func (a *Api) GetModules(ctx context.Context, filter model.ModFilter) ([]model.ModuleMeta, error)
- func (a *Api) PrepareModuleUpdate(ctx context.Context, id, version string) (string, error)
- func (a *Api) StartDeployments() error
- func (a *Api) UpdateDeployment(ctx context.Context, dID string, depInput model.DepInput) (string, error)
- func (a *Api) UpdateModule(ctx context.Context, id string, depInput model.DepInput, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func New ¶
func New(moduleHandler handler.ModuleHandler, moduleStagingHandler handler.ModStagingHandler, moduleUpdateHandler handler.ModUpdateHandler, deploymentHandler handler.DeploymentHandler, depHealthHandler handler.DepHealthHandler, jobHandler handler.JobHandler) *Api
func (*Api) CancelPendingModuleUpdate ¶
func (*Api) CheckModuleUpdates ¶
func (*Api) CreateDeployment ¶
func (*Api) DeleteDeployment ¶
func (*Api) DeleteModule ¶
func (*Api) DisableDeployment ¶ added in v0.3.0
func (*Api) EnableDeployment ¶ added in v0.3.0
func (*Api) GetDeployment ¶
func (*Api) GetDeploymentHealth ¶
func (*Api) GetDeploymentUpdateTemplate ¶
func (*Api) GetDeployments ¶
func (*Api) GetDeploymentsHealth ¶
func (*Api) GetModuleDeployTemplate ¶
func (*Api) GetModuleUpdate ¶
func (*Api) GetModuleUpdateTemplate ¶
func (*Api) GetModuleUpdates ¶
func (*Api) GetModules ¶
func (*Api) PrepareModuleUpdate ¶
func (*Api) StartDeployments ¶
func (*Api) UpdateDeployment ¶
Click to show internal directories.
Click to hide internal directories.