@aws-cdk-testing/cli-integ
Version:
Integration tests for the AWS CDK CLI
24 lines (23 loc) • 773 B
TypeScript
/**
* Routines for corking stdout and stderr
*/
import * as stream from 'stream';
/**
* Register values to be replaced with a placeholder in all buffered output
*/
export declare function registerSecrets(...values: Array<string>): void;
/**
* Replace every registered secret in the given text with a placeholder
*/
export declare function redactSecrets(text: string): string;
export declare class MemoryStream extends stream.Writable {
private parts;
_write(chunk: Buffer, _encoding: string, callback: (error?: Error | null) => void): void;
/**
* The buffered output, with all registered secrets redacted
*/
buffer(): Buffer<ArrayBuffer>;
clear(): void;
flushTo(strm: NodeJS.WritableStream): Promise<void>;
toString(): string;
}