Versions in this module Expand all Collapse all v0 v0.0.2 Jul 21, 2023 v0.0.1 Apr 27, 2023 Changes in this version + const StatePending + const StateRunning + const StateStopped + const StateUnknown + type AWSComputeProperties struct + FilterTags map[string]string + type AWSStorageProperties struct + BlockSize int64 + DownloadConcurrency int + Region string + UploadConcurrency int + type AzureStorageProperties struct + AppendBlockSize int + PutBlockSize int64 + type Compute interface + GetInstance func(name string) (ComputeInstance, error) + GetInstances func(ids []string) ([]ComputeInstance, error) + ListInstances func() ([]ComputeInstance, error) + SetProperties func(props interface{}) + func NewAWSCompute(session *session.Session) (Compute, error) + func NewAzureCompute(ctx context.Context, clientCreds *azidentity.ClientSecretCredential, ...) (Compute, error) + func NewGoogleCompute(service *compute.Service, projectID string, region string) (Compute, error) + type ComputeInstance interface + CanConnect func(port int) bool + ID func() string + Name func() string + PublicDNS func() string + PublicIP func() string + Restart func() error + Start func() error + State func() (InstanceState, error) + Stop func() error + type GoogleComputeProperties struct + FilterLabels map[string]string + OpTimeout time.Duration + Region string + Zone string + type GoogleStorageProperties struct + BlockSize int + Region string + type InstanceState int + func (s InstanceState) String() string + type Storage interface + ListInstances func() ([]StorageInstance, error) + NewInstance func(name string) (StorageInstance, error) + SetProperties func(props interface{}) + func NewAWSStorage(session *session.Session, region string) (Storage, error) + func NewAzureStorage(ctx context.Context, clientCreds *azidentity.ClientSecretCredential, ...) (Storage, error) + func NewGoogleStorage(ctx context.Context, client *storage.Client, projectID, region string) (Storage, error) + type StorageInstance interface + Delete func() error + DeleteObject func(path string) error + Download func(name string, data io.Writer) error + DownloadFile func(name, path string) error + ListObjects func(path string) ([]string, error) + Name func() string + Upload func(name, contentType string, data io.Reader, size int64) error + UploadFile func(name, contentType, path string) error