Apache Mesos
|
Enumerations | |
enum | Compression { Compression::GZIP, Compression::BZIP2, Compression::XZ } |
Functions | |
process::Future< Nothing > | tar (const Path &input, const Path &output, const Option< Path > &directory=None(), const Option< Compression > &compression=None()) |
Tar(archive) the file/directory to produce output file. More... | |
process::Future< Nothing > | untar (const Path &input, const Option< Path > &directory=None()) |
Untar(unarchive) the given file. More... | |
process::Future< std::string > | sha512 (const Path &input) |
Computes SHA 512 checksum of a file. More... | |
process::Future< Nothing > | gzip (const Path &input) |
Compresses the given input file in GZIP format. More... | |
process::Future< Nothing > | decompress (const Path &input) |
Decompresses given input file based on its compression format. More... | |
|
strong |
process::Future<Nothing> mesos::internal::command::decompress | ( | const Path & | input | ) |
Decompresses given input file based on its compression format.
TODO(jojy): Add support for other compression algorithms.
input | path of the compressed file. |
process::Future<Nothing> mesos::internal::command::gzip | ( | const Path & | input | ) |
Compresses the given input file in GZIP format.
input | path of the file to be compressed. |
process::Future<std::string> mesos::internal::command::sha512 | ( | const Path & | input | ) |
Computes SHA 512 checksum of a file.
input | path of the file whose SHA 512 checksum has to be computed. |
process::Future<Nothing> mesos::internal::command::tar | ( | const Path & | input, |
const Path & | output, | ||
const Option< Path > & | directory = None() , |
||
const Option< Compression > & | compression = None() |
||
) |
Tar(archive) the file/directory to produce output file.
input | file or directory that will be archived. |
output | output archive name. |
directory | change to this directory before archiving. |
compression | compression type if the archive has to be compressed. |