Documentation ¶
Index ¶
- func GetMockBuildTools(c *gc.C) sync.BuildToolsTarballFunc
- func GetMockBundleTools(c *gc.C) tools.BundleToolsFunc
- func MakeTools(c *gc.C, metadataDir, subdir string, versionStrings []string) coretools.List
- func MakeToolsWithCheckSum(c *gc.C, metadataDir, subdir string, versionStrings []string) coretools.List
- func ParseMetadataFromDir(c *gc.C, metadataDir string, expectMirrors bool) []*tools.ToolsMetadata
- func ParseMetadataFromStorage(c *gc.C, stor storage.StorageReader, expectMirrors bool) []*tools.ToolsMetadata
- func SHA256sum(c *gc.C, path string) (int64, string)
- func UploadToDirectory(c *gc.C, dir string, versions ...version.Binary) map[version.Binary]string
- func UploadToStorage(c *gc.C, stor storage.Storage, versions ...version.Binary) map[version.Binary]string
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 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 ¶
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 UploadToDirectory ¶
UploadToDirectory uploads tools and metadata for the specified versions to dir.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.