utils

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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

func CompressDirectory(srcPath string) (string, error)

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

func DecompressToDirectory(data string, destPath string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL