-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.go
55 lines (44 loc) · 971 Bytes
/
structs.go
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package main
type CmdDependency string
type Imports map[string]*Import
type Protocol string
type Memory struct {
generatedImports Imports
lockedImports Imports
internalImports Imports
externalImports Imports
loadedImports map[string]bool
installedImports Imports
update bool
}
type Import struct {
Branch string `json:"branch,omitempty" yaml:"branch,omitempty"`
Packages []string `json:"package,omitempty" yaml:"package,omitempty"`
Revision string `json:"revision,omitempty" yaml:"revision,omitempty"`
Version string `json:"version,omitempty" yaml:"version,omitempty"`
internal Internal
}
type Internal struct {
original string
repo Repo
}
type Repo struct {
host string
user string
project string
packag string
https string
ssh string
path string
vendor string
save string
}
type Cache struct {
imports Imports
path string
config string
}
type PackageAction struct {
old string
new string
}