You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/api/internal/testhelpers/compose_stack_manager.go

34 lines
827 B

package testhelpers
import (
"context"
portainer "github.com/portainer/portainer/api"
)
type composeStackManager struct{}
func NewComposeStackManager() *composeStackManager {
return &composeStackManager{}
}
func (manager *composeStackManager) ComposeSyntaxMaxVersion() string {
return ""
}
func (manager *composeStackManager) NormalizeStackName(name string) string {
return name
}
func (manager *composeStackManager) Up(ctx context.Context, stack *portainer.Stack, endpoint *portainer.Endpoint, forceRecreate bool) error {
return nil
}
func (manager *composeStackManager) Down(ctx context.Context, stack *portainer.Stack, endpoint *portainer.Endpoint) error {
return nil
}
func (manager *composeStackManager) Pull(ctx context.Context, stack *portainer.Stack, endpoint *portainer.Endpoint) error {
return nil
}