funk

package
v0.0.0-...-19b4c9d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTar

func CreateTar(dir string, filenames []string) *bytes.Buffer

func Download

func Download(client StorageClient, ctx context.Context, bucket, name string) (*bytes.Buffer, error)

func ExtractTar

func ExtractTar(dir string, buf *bytes.Buffer) (int, error)

func ReadWorkspace

func ReadWorkspace(path string) (matches []string)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL