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, dir string, streamVersions StreamVersions) map[string]map[version.Binary]string
- func UploadToStorage(c *gc.C, stor storage.Storage, stream string, versions ...version.Binary) map[version.Binary]string
- type StreamVersions
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 GetMockBundleTools(c *gc.C, expectedForceVersion *version.Number) tools.BundleToolsFunc
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.
func UploadToDirectory ¶
func UploadToDirectory(c *gc.C, dir string, streamVersions StreamVersions) map[string]map[version.Binary]string
UploadToDirectory uploads tools and metadata for the specified versions to dir.
Types ¶
type StreamVersions ¶
type StreamVersions map[string][]version.Binary
StreamVersions is a map of stream name to binaries in that stream.
Click to show internal directories.
Click to hide internal directories.