Apache Mesos
Enumerations | Functions
mesos::internal::command Namespace Reference

Enumerations

enum  Compression { Compression::GZIP, Compression::BZIP2, Compression::XZ }
 

Functions

process::Future< Nothingtar (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< Nothinguntar (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< Nothinggzip (const Path &input)
 Compresses the given input file in GZIP format. More...
 
process::Future< Nothingdecompress (const Path &input)
 Decompresses given input file based on its compression format. More...
 

Enumeration Type Documentation

Enumerator
GZIP 
BZIP2 
XZ 

Function Documentation

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.

Parameters
inputpath of the compressed file.
process::Future<Nothing> mesos::internal::command::gzip ( const Path input)

Compresses the given input file in GZIP format.

Parameters
inputpath of the file to be compressed.
process::Future<std::string> mesos::internal::command::sha512 ( const Path input)

Computes SHA 512 checksum of a file.

Parameters
inputpath 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.

Parameters
inputfile or directory that will be archived.
outputoutput archive name.
directorychange to this directory before archiving.
compressioncompression type if the archive has to be compressed.
process::Future<Nothing> mesos::internal::command::untar ( const Path input,
const Option< Path > &  directory = None() 
)

Untar(unarchive) the given file.

Parameters
inputfile or directory that will be unarchived.
directorychange to this directory before unarchiving.