testing

package
v0.0.0-...-732aecd Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2014 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMockBuildTools

func GetMockBuildTools(c *gc.C) sync.BuildToolsTarballFunc

GetMockBuildTools returns a sync.BuildToolsTarballFunc implementation which generates a fake tools tarball.

func GetMockBundleTools

func GetMockBundleTools(c *gc.C) tools.BundleToolsFunc

func MakeTools

func MakeTools(c *gc.C, metadataDir, subdir string, versionStrings []string) coretools.List

MakeTools creates some fake tools with the given version strings.

func MakeToolsWithCheckSum

func MakeToolsWithCheckSum(c *gc.C, metadataDir, subdir string, versionStrings []string) coretools.List

MakeToolsWithCheckSum creates some fake tools (including checksums) with the given version strings.

func ParseMetadataFromDir

func ParseMetadataFromDir(c *gc.C, metadataDir string, expectMirrors bool) []*tools.ToolsMetadata

ParseMetadataFromDir loads ToolsMetadata from the specified directory.

func ParseMetadataFromStorage

func ParseMetadataFromStorage(c *gc.C, stor storage.StorageReader, expectMirrors bool) []*tools.ToolsMetadata

ParseMetadataFromStorage loads ToolsMetadata from the specified storage reader.

func SHA256sum

func SHA256sum(c *gc.C, path string) (int64, string)

SHA256sum creates the sha256 checksum for the specified file.

func UploadToDirectory

func UploadToDirectory(c *gc.C, dir string, versions ...version.Binary) map[version.Binary]string

UploadToDirectory uploads tools and metadata for the specified versions to dir.

func UploadToStorage

func UploadToStorage(c *gc.C, stor storage.Storage, versions ...version.Binary) map[version.Binary]string

UploadToStorage uploads tools and metadata for the specified versions to storage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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