2018-10-15 11:31:10 +00:00
|
|
|
import * as Bluebird from 'bluebird';
|
2018-04-25 14:20:07 +00:00
|
|
|
import * as Stream from 'stream';
|
2018-10-15 11:31:10 +00:00
|
|
|
import { Composition } from 'resin-compose-parse';
|
|
|
|
import Logger = require('./logger');
|
|
|
|
|
|
|
|
interface Image {
|
|
|
|
context: string;
|
|
|
|
tag: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Descriptor {
|
|
|
|
image: Image | string;
|
|
|
|
serviceName: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function resolveProject(projectRoot: string): Bluebird<string>;
|
|
|
|
|
|
|
|
export interface ComposeProject {
|
|
|
|
path: string;
|
|
|
|
name: string;
|
|
|
|
composition: Composition;
|
|
|
|
descriptors: Descriptor[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export function loadProject(
|
|
|
|
logger: Logger,
|
|
|
|
projectPath: string,
|
|
|
|
projectName: string,
|
|
|
|
image?: string,
|
|
|
|
): Bluebird<ComposeProject>;
|
2018-04-25 14:20:07 +00:00
|
|
|
|
|
|
|
export function tarDirectory(source: string): Promise<Stream.Readable>;
|