Documentation
¶
Index ¶
- func BuildProcessTags(process hySchema.Process, nodeAddr string, tags []goarSchema.Tag) (hySchema.Process, error)
- func CheckModuleFormat(moduleFormat string, tags []goarSchema.Tag) error
- func CompressDirectory(srcPath string) (string, error)
- func DecompressToDirectory(data string, destPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildProcessTags ¶
func BuildProcessTags(process hySchema.Process, nodeAddr string, tags []goarSchema.Tag) (hySchema.Process, error)
todo: this function for test env, should remove when real data is ok
func CheckModuleFormat ¶
func CheckModuleFormat(moduleFormat string, tags []goarSchema.Tag) error
CheckModuleFormat validates that the module format: - starts with "web.vmdocker-" prefix - contains Image-Name and Image-ID tags
func CompressDirectory ¶
CompressDirectory compresses the specified directory into a tar.gz format string. It preserves the directory structure and file permissions. srcPath: the absolute path of the directory to be compressed Returns the compressed data as a string and any error encountered
func DecompressToDirectory ¶
DecompressToDirectory extracts a tar.gz format string to the specified directory. It recreates the original directory structure and preserves file permissions. data: the compressed data string destPath: the absolute path where the data should be extracted to Returns any error encountered during the extraction process
Types ¶
This section is empty.