2016-07-12 11:36:34 +00:00
|
|
|
/// <reference types="q" />
|
2016-06-15 22:40:32 +00:00
|
|
|
import "typings-global";
|
2016-07-12 11:36:34 +00:00
|
|
|
import * as plugins from "./dockersock.plugins";
|
|
|
|
import { Observable } from "rxjs";
|
2016-06-15 23:56:53 +00:00
|
|
|
export declare class Dockersock {
|
2016-06-15 22:40:32 +00:00
|
|
|
sockPath: string;
|
2016-06-15 23:34:23 +00:00
|
|
|
constructor(pathArg?: string);
|
2016-07-12 11:36:34 +00:00
|
|
|
auth(userArg: string, passArg: string): plugins.q.Promise<{}>;
|
|
|
|
listContainers(): plugins.q.Promise<{}>;
|
|
|
|
listContainersDetailed(): plugins.q.Promise<{}>;
|
|
|
|
listContainersRunning(): plugins.q.Promise<{}>;
|
|
|
|
listContainersStopped(): plugins.q.Promise<{}>;
|
|
|
|
listImages(): plugins.q.Promise<{}>;
|
|
|
|
listImagesDangling(): plugins.q.Promise<{}>;
|
|
|
|
pullImage(imageLabel: string): plugins.q.Promise<{}>;
|
|
|
|
createContainer(optionsArg: any, pullFirstArg?: boolean): plugins.q.Promise<{}>;
|
2016-06-16 02:45:22 +00:00
|
|
|
getContainerId(): void;
|
2016-07-12 11:36:34 +00:00
|
|
|
startContainer(containerNameArg: any): plugins.q.Promise<{}>;
|
|
|
|
stopContainer(containerNameArg: any): plugins.q.Promise<{}>;
|
|
|
|
removeContainer(containerNameArg: any): plugins.q.Promise<{}>;
|
|
|
|
clean(): plugins.q.Promise<{}>;
|
2016-06-17 00:38:00 +00:00
|
|
|
callOnChange(cb: Function): void;
|
2016-07-12 11:36:34 +00:00
|
|
|
getChangeObservable(): Observable<{}>;
|
|
|
|
request(methodArg: string, routeArg: string, queryArg?: string, dataArg?: {}): plugins.q.Promise<{}>;
|
|
|
|
requestStream(methodArg: any, routeArg: any, endArg?: boolean): plugins.q.Promise<{}>;
|
2016-06-15 22:40:32 +00:00
|
|
|
}
|