UNPKG

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