1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright 2013 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package tools
import (
"github.com/juju/loggo"
"launchpad.net/juju-core/version"
)
var logger = loggo.GetLogger("juju.tools")
// Tools represents the location and version of a tools tarball.
type Tools struct {
Version version.Binary `json:"version"`
URL string `json:"url"`
SHA256 string `json:"sha256,omitempty"`
Size int64 `json:"size"`
}
// HasTools instances can be asked for a tools list.
type HasTools interface {
Tools(series string) List
}
|