@testcontainers/gcloud
Version:
GCloud module for Testcontainers
16 lines (15 loc) • 669 B
TypeScript
import { GenericContainer } from "testcontainers";
export declare class AbstractGcloudEmulator extends GenericContainer {
private readonly cmd;
private readonly flagsManager;
constructor(image: string, port: number, cmd: string);
/**
* Adds flag as argument to emulator start command.
* Adding same flag name twice replaces existing flag value.
* @param name flag name. Must be set to non-empty string. May optionally contain -- prefix.
* @param value flag value. May be empty string.
* @returns this instance for chaining.
*/
withFlag(name: string, value: string): this;
beforeContainerCreated(): Promise<void>;
}