Skip to main content

Sink

The

Sink module facilitates creation of Streams from external systems (such as an ftp server), or local files.

Example

 // get a predefined blob stream
const file = Stream("File", BlobType);
// get a predefined uri stream
const uri = Stream("uri", StringType)
// put the contents of the file at the uri
const sink = new SinkBuilder("Ftp")
.from(file)
.input({ name: "uri", stream: uri })
.assert({
predicate: uri => NotEqual(uri, ''),
message: "Uri is empty"
})
.ftp({
uri: (inputs) => inputs.uri,
})
.toTemplate();

Classes

  • BlobSinkBuilder
  • FtpSinkBuilder
  • S3SinkBuilder
  • SinkBuilder

On this page