Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
An implementation of Client that delegates actual operation to gcsStorage.Client.
type Client ¶
type Client interface { // Read an object from a GCS bucket. Read(ctx context.Context) ([]byte, error) // Write an object onto a GCS bucket. Write(ctx context.Context, p []byte) error }
A minimal interface to mock behavior of GCS client.
type Config ¶
type Config struct { // The name of the GCS bucket. Bucket string `hcl:"bucket"` // Path to the migration history file. Name string `hcl:"name"` }
Config is a config for Google Cloud Storage. This is expected to have almost the same options as Terraform gcs backend. https://www.terraform.io/language/settings/backends/gcs However, it has many minor options and it's a pain to test all options from first, so we added only options we need for now.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
An implementation of storage.Storage interface.
func NewStorage ¶
NewStorage returns a new instance of Storage.
Click to show internal directories.
Click to hide internal directories.