mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-25 23:03:38 +01:00
19 lines
504 B
Go
19 lines
504 B
Go
package providers
|
|
|
|
import (
|
|
"context"
|
|
"github.com/sablierapp/sablier/app/types"
|
|
|
|
"github.com/sablierapp/sablier/app/instance"
|
|
)
|
|
|
|
type Provider interface {
|
|
Start(ctx context.Context, name string) error
|
|
Stop(ctx context.Context, name string) error
|
|
GetState(ctx context.Context, name string) (instance.State, error)
|
|
GetGroups(ctx context.Context) (map[string][]string, error)
|
|
List(ctx context.Context) ([]types.Instance, error)
|
|
|
|
NotifyInstanceStopped(ctx context.Context, instance chan<- string)
|
|
}
|