2019-04-09 10:46:41 -04:00
|
|
|
package yandex
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
ycsdk "github.com/yandex-cloud/go-sdk"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Driver interface {
|
|
|
|
DeleteImage(id string) error
|
|
|
|
SDK() *ycsdk.SDK
|
|
|
|
GetImage(imageID string) (*Image, error)
|
|
|
|
GetImageFromFolder(ctx context.Context, folderID string, family string) (*Image, error)
|
2019-09-10 10:52:42 -04:00
|
|
|
GetImageFromFolderByName(ctx context.Context, folderID string, name string) (*Image, error)
|
2019-04-09 10:46:41 -04:00
|
|
|
DeleteDisk(ctx context.Context, diskID string) error
|
|
|
|
DeleteInstance(ctx context.Context, instanceID string) error
|
|
|
|
DeleteSubnet(ctx context.Context, subnetID string) error
|
|
|
|
DeleteNetwork(ctx context.Context, networkID string) error
|
2020-04-26 19:37:10 -04:00
|
|
|
GetInstanceMetadata(ctx context.Context, instanceID string, key string) (string, error)
|
2019-04-09 10:46:41 -04:00
|
|
|
}
|