1
// Copyright 2013 Canonical Ltd.
2
// Licensed under the AGPLv3, see LICENCE file for details.
9
"launchpad.net/juju-core/version"
17
// ToolsManager keeps track of a pool of tools
18
type ToolsManager interface {
20
// ReadTools looks in the current storage to see what tools are
21
// available that match the given Binary version.
22
ReadTools(version version.Binary) (*Tools, error)
24
// UnpackTools reads the compressed tarball from the io.Reader and
25
// extracts the tools to be used. tools is used to indicate what exact
26
// version are in the contents of the tarball
27
UnpackTools(tools *Tools, r io.Reader) error