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