1 | export type GoPackageManagerType = 'golangdep' | 'govendor' | 'gomodules';
|
2 | export interface LockedDep {
|
3 | name: string;
|
4 | version: string;
|
5 | }
|
6 | export interface LockedDeps {
|
7 | [dep: string]: LockedDep;
|
8 | }
|
9 | export interface GoPackageConfig {
|
10 | ignoredPkgs?: string[];
|
11 | lockedVersions: LockedDeps;
|
12 | packageName?: string;
|
13 | }
|
14 | export interface GoModuleConfig {
|
15 | moduleName: string;
|
16 | golangVersion?: string;
|
17 | requires: Require[];
|
18 | replaces: Replace[];
|
19 | excludes: ModuleAndVersion[];
|
20 | }
|
21 | export interface ModuleExactVersion {
|
22 | exactVersion: string;
|
23 | incompatible: boolean;
|
24 | }
|
25 | export interface ModulePseudoVersion {
|
26 | baseVersion: string;
|
27 | suffix: string;
|
28 | hash: string;
|
29 | timestamp: string;
|
30 | }
|
31 | export interface ModuleAndVersion {
|
32 | moduleName: string;
|
33 | version: ModuleVersion;
|
34 | }
|
35 | export type ModuleVersion = ModuleExactVersion | ModulePseudoVersion;
|
36 | export interface Require extends ModuleAndVersion {
|
37 | indirect: boolean;
|
38 | }
|
39 | export interface ModuleAndMaybeVersion {
|
40 | moduleName: string;
|
41 | version?: ModuleVersion;
|
42 | }
|
43 | export interface Replace {
|
44 | oldMod: ModuleAndMaybeVersion;
|
45 | newMod: ModuleAndMaybeVersion;
|
46 | }
|
47 | export interface DepTree {
|
48 | name: string;
|
49 | version: string;
|
50 | dependencies?: {
|
51 | [dep: string]: DepTree;
|
52 | };
|
53 | }
|
54 | export declare const DEFAULT_INITIAL_VERSION = "0.0.0";
|
55 | export declare const DEFAULT_ROOT_NODE_NAME = "root-node";
|