Documentation ¶
Index ¶
- func GetMockBuildTools(c *gc.C) sync.BuildAgentTarballFunc
- func GetMockBundleTools(c *gc.C, expectedForceVersion *version.Number) tools.BundleToolsFunc
- func MakeTools(c *gc.C, metadataDir, stream string, versionStrings []string) coretools.List
- func MakeToolsWithCheckSum(c *gc.C, metadataDir, stream string, versionStrings []string) coretools.List
- func ParseMetadataFromDir(c *gc.C, metadataDir, stream string, expectMirrors bool) []*tools.ToolsMetadata
- func ParseMetadataFromStorage(c *gc.C, stor storage.StorageReader, stream string, expectMirrors bool) []*tools.ToolsMetadata
- func SHA256sum(c *gc.C, path string) (int64, string)
- func UploadToDirectory(c *gc.C, stream, dir string, versions ...version.Binary) map[version.Binary]string
- func UploadToStorage(c *gc.C, stor storage.Storage, stream string, 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.BuildAgentTarballFunc
GetMockBuildTools returns a sync.BuildAgentTarballFunc implementation which generates a fake tools tarball.
func GetMockBundleTools ¶
func MakeToolsWithCheckSum ¶
func MakeToolsWithCheckSum(c *gc.C, metadataDir, stream 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, stream string, expectMirrors bool) []*tools.ToolsMetadata
ParseMetadataFromDir loads ToolsMetadata from the specified directory.
func ParseMetadataFromStorage ¶
func ParseMetadataFromStorage(c *gc.C, stor storage.StorageReader, stream string, expectMirrors bool) []*tools.ToolsMetadata
ParseMetadataFromStorage loads ToolsMetadata from the specified storage reader.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.