Documentation ¶
Index ¶
- func CreateTar(dir string, filenames []string) *bytes.Buffer
- func Download(client StorageClient, ctx context.Context, bucket, name string) (*bytes.Buffer, error)
- func ExtractTar(dir string, buf *bytes.Buffer) (int, error)
- func ReadWorkspace(path string) (matches []string)
- func Upload(client StorageClient, ctx context.Context, buf *bytes.Buffer, ...) (*storage.ObjectHandle, *storage.ObjectAttrs, error)
- type StorageClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadWorkspace ¶
Given a path to a directory, returns a list of terraform configuration files matching the fileglob "*.tf"
func Upload ¶
func Upload(client StorageClient, ctx context.Context, buf *bytes.Buffer, bucket, name string) (*storage.ObjectHandle, *storage.ObjectAttrs, error)
Types ¶
type StorageClient ¶
type StorageClient interface {
Bucket(name string) *storage.BucketHandle
}
Click to show internal directories.
Click to hide internal directories.