Output class

Output wrapper of a Docker container.

Constructors

Output(DockerProcess dockerProcess, OutputStream _outputStream)

Properties

asBytes List<int>
Returns all the output as bytes.
no setter
asLines List<String>
Returns all the output as lines (List
no setter
asString String
Returns all the output as String.
no setter
bufferedContentSize int
Returns the size of the buffered content.
no setter
contentRemoved int
Size of removed content, due limit.
no setter
dockerProcess DockerProcess
final
entriesLength int
Current length of _data buffer.
no setter
entriesRemoved int
Number of removed entries, due limit.
no setter
exitCode int?
Calls dockerProcess.exitCode.
no setter
hashCode int
The hash code for this object.
no setterinherited
isReady bool
Returns true if output is ready, based in the associated OutputReadyFunction.
no setter
limit int
Limit of buffered entries.
no setter
onData → EventStream
On data event listener.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asStringFrom({int? entriesRealOffset, int? contentRealOffset}) String
Sames as asString, but with optional parameters entriesRealOffset and contentRealOffset.
dispose() → void
getEntries({int? offset, int? realOffset}) List
Returns a List of entries, from offset or realOffset.
getOutputStream() OutputStream
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
waitAnyOutputReady() Future<bool>
Waits STDOUT or STDERR to be ready.
waitData({Duration? timeout}) Future<bool>
Waits with a timeout for new data.
waitExit() Future<int?>
Calls dockerProcess.waitExit.
waitForDataMatch(Pattern dataMatcher, {Duration? timeout}) Future<bool>
Waits for dataMatcher with a timeout.
waitReady() Future<bool>
Waits the output to be ready.

Operators

operator ==(Object other) bool
The equality operator.
inherited