1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

fix(stack): support removing duplicated stacks EE-1962 (#6068)

* fix/EE-1962/cannot-same-stack-name handle multiple names duplicate case

Co-authored-by: Eric Sun <ericsun@SG1.local>
This commit is contained in:
sunportainer 2021-11-22 17:23:56 +13:00 committed by GitHub
parent 5f2e3452e4
commit cea634a7aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 103 additions and 3 deletions

View file

@ -1379,6 +1379,7 @@ type (
StackService interface {
Stack(ID StackID) (*Stack, error)
StackByName(name string) (*Stack, error)
StacksByName(name string) ([]Stack, error)
Stacks() ([]Stack, error)
CreateStack(stack *Stack) error
UpdateStack(ID StackID, stack *Stack) error