Files
fx-serverless/driver/driver.go
2020-03-19 11:28:52 +08:00

18 lines
499 B
Go

package driver
import (
"context"
"github.com/metrue/fx/types"
)
// Driver fx function running driver
type Driver interface {
Deploy(ctx context.Context, fn string, name string, image string, bindings []types.PortBinding) error
Destroy(ctx context.Context, name string) error
Update(ctx context.Context, name string) error
GetStatus(ctx context.Context, name string) (types.Service, error)
List(ctx context.Context, name string) ([]types.Service, error)
Ping(ctx context.Context) error
}