mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 13:23:03 +01:00
19 lines
540 B
Go
19 lines
540 B
Go
package provider
|
|
|
|
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)
|
|
InstanceList(ctx context.Context, options InstanceListOptions) ([]types.Instance, error)
|
|
|
|
NotifyInstanceStopped(ctx context.Context, instance chan<- string)
|
|
}
|