TransferSpec typedef

TransferSpec = (Transferable, String, int)

A specification describing a single copy-into-container operation.

The three positional fields are:

  1. The Transferable data source.
  2. The destination entry name within the tar archive. When the archive is extracted at / inside the container, this becomes the absolute path of the copied file (e.g. 'app/config.yaml'/app/config.yaml).
  3. The Unix file permission bits (e.g. 0x1A4 = 0o644). Defaults to 0x1A4 when omitted from a TransferSpec record literal.

Implementation

typedef TransferSpec = (Transferable data, String destination, int mode);