mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
feat(edge/stacks): increase status transparency [EE-5554] (#9094)
This commit is contained in:
parent
db61fb149b
commit
0bcb57568c
45 changed files with 1305 additions and 316 deletions
|
@ -13,8 +13,21 @@ type Deployer interface {
|
|||
Remove(ctx context.Context, projectName string, filePaths []string, options Options) error
|
||||
Pull(ctx context.Context, filePaths []string, options Options) error
|
||||
Validate(ctx context.Context, filePaths []string, options Options) error
|
||||
WaitForStatus(ctx context.Context, name string, status Status) <-chan string
|
||||
}
|
||||
|
||||
type Status string
|
||||
|
||||
const (
|
||||
StatusUnknown Status = "unknown"
|
||||
StatusStarting Status = "starting"
|
||||
StatusRunning Status = "running"
|
||||
StatusStopped Status = "stopped"
|
||||
StatusError Status = "error"
|
||||
StatusRemoving Status = "removing"
|
||||
StatusRemoved Status = "removed"
|
||||
)
|
||||
|
||||
type Options struct {
|
||||
WorkingDir string
|
||||
Host string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue