UNPKG

@decaf-ts/fabric-weaver

Version:
27 lines (26 loc) 870 B
import { Logger } from "@decaf-ts/logging"; import { PeerChannelCommands } from "../constants/fabric-peer"; export declare class FabricPeerChannelCommandBuilder { private log; private binName; private baseCommand; private command; private blockReference?; private destination?; private args; constructor(logger?: Logger); setCommand(command?: PeerChannelCommands): this; setBlockPath(blockPath?: string): this; setBlockReference(blockRef?: string): this; setDestination(destination?: string): this; setChannelID(channelID?: string): this; setOrderer(orderer?: string): this; enableTLS(enable?: boolean): this; setTLSCAFile(caFile?: string): this; build(): string; getBaseCommand(): string; getCommand(): string; getBinary(): string; getArgs(): string[]; execute(): Promise<void>; }