Documentation ¶
Index ¶
- func MakeTools(c *gc.C, metadataDir, subdir string, versionStrings []string)
- func MakeToolsWithCheckSum(c *gc.C, metadataDir, subdir string, versionStrings []string)
- 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 MakeToolsWithCheckSum ¶
MakeTools 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 ¶
UploadToStorage 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.