mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-20 17:33:18 +00:00
compose: Add compose typings
Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
parent
221666f59a
commit
bf062124f7
29
lib/utils/compose.d.ts
vendored
29
lib/utils/compose.d.ts
vendored
@ -1,3 +1,32 @@
|
||||
import * as Bluebird from 'bluebird';
|
||||
import * as Stream from 'stream';
|
||||
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>;
|
||||
|
||||
export function tarDirectory(source: string): Promise<Stream.Readable>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user