tools

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeSHA256sum

func ComputeSHA256sum(file fs.Path) (string, error)

ComputeSHA256sum ...

func ComputeSHA256sumForBytes added in v0.0.2

func ComputeSHA256sumForBytes(b []byte) string

ComputeSHA256sumForBytes ...

func InjectEnvToProperties added in v0.0.3

func InjectEnvToProperties(dst collection.Properties, src collection.Environment)

InjectEnvToProperties 把所有的环境变量注入到目标属性表中(以“env.”为前缀)

func ResolveConfig added in v0.0.2

func ResolveConfig(props collection.Properties) error

ResolveConfig 解析配置中的变量

func Unzip

func Unzip(from, to fs.Path) error

Unzip 解压zip文件,@from=zip-file, @to=dest-dir

func Zip

func Zip(from, to fs.Path, override bool) error

Zip 生成zip文件,@to=zip-file, @from=src-dir

Types

This section is empty.

Jump to

Keyboard shortcuts

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