canned

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Helper code for creating buckets with canned contents, for testing.

The details of this package are subject to change.

Index

Constants

View Source
const (
	TopLevelFile          = "foo"
	TopLevelFile_Contents = "taco"

	TopLevelDir          = "bar/"
	TopLevelDir_Contents = ""

	ExplicitDirFile          = "bar/f"
	ExplicitDirFile_Contents = "burrito"

	ImplicitDirFile          = "baz/qux"
	ImplicitDirFile_Contents = "enchilada"
)

See notes on FakeBucketName.

View Source
const FakeBucketName = "fake@bucket"

The name of a fake bucket supported by gcsfuse. This is intentionally an illegal name (cf. https://cloud.google.com/storage/docs/bucket-naming).

The initial contents of the bucket are objects with names given by the following constants:

TopLevelFile
TopLevelDir
ImplicitDirFile

Variables

This section is empty.

Functions

func MakeFakeBucket

func MakeFakeBucket(ctx context.Context) (b gcs.Bucket)

Create a fake bucket with canned contents as described in the comments for FakeBucketName.

Types

This section is empty.

Jump to

Keyboard shortcuts

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