52 lines
1.5 KiB
Go
52 lines
1.5 KiB
Go
package scaleway
|
|
|
|
import (
|
|
"fmt"
|
|
"context"
|
|
|
|
"github.com/hashicorp/go-hclog"
|
|
|
|
"gitlab.com/gitlab-org/fleeting/fleeting/plugin"
|
|
"gitlab.com/gitlab-org/fleeting/fleeting/provider"
|
|
)
|
|
|
|
var Version plugin.VersionInfo
|
|
|
|
type InstanceGroup struct {}
|
|
|
|
func (g *InstanceGroup) Init(ctx context.Context, log hclog.Logger, settings provider.Settings) (provider.ProviderInfo, error) {
|
|
return provider.ProviderInfo{}, fmt.Errorf("TODO")
|
|
}
|
|
|
|
func (g *InstanceGroup) Update(ctx context.Context, fn func(instance string, state provider.State)) error {
|
|
return fmt.Errorf("TODO")
|
|
}
|
|
|
|
func (g *InstanceGroup) Increase(ctx context.Context, n int) (succeeded int, err error) {
|
|
return 0, fmt.Errorf("TODO")
|
|
}
|
|
|
|
func (g *InstanceGroup) Decrease(ctx context.Context, instances []string) (succeeded []string, err error) {
|
|
return make([]string, 0, 0), fmt.Errorf("TODO")
|
|
}
|
|
|
|
func (g *InstanceGroup) ConnectInfo(ctx context.Context, instance string) (provider.ConnectInfo, error) {
|
|
return provider.ConnectInfo{}, fmt.Errorf("TODO")
|
|
}
|
|
|
|
func (g *InstanceGroup) Heartbeat(ctx context.Context, instance string) error {
|
|
return fmt.Errorf("TODO")
|
|
}
|
|
|
|
func (g *InstanceGroup) Suspend(ctx context.Context, instances []string) (succeeded []string, err error) {
|
|
return make([]string, 0, 0), fmt.Errorf("TODO")
|
|
}
|
|
|
|
func (g *InstanceGroup) Resume(ctx context.Context, instances []string) (succeeded []string, err error) {
|
|
return make([]string, 0, 0), fmt.Errorf("TODO")
|
|
}
|
|
|
|
func (g *InstanceGroup) Shutdown(ctx context.Context) error {
|
|
return fmt.Errorf("TODO")
|
|
}
|