utils

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(dstName, srcName string, bar *mpb.Bar) (written int64, err error)

func FileExists

func FileExists(filename string) bool

func FindCompose

func FindCompose() (images, paths []string)

func FindImagesInCompose

func FindImagesInCompose(path string) []string

func FormatPath

func FormatPath(paths []string) []string

func HashSha256

func HashSha256(msg []byte) string

func IsFile

func IsFile(path string) bool

func IterDirectory

func IterDirectory(dirPath, subpath string, tw *tar.Writer) error

func PathExists

func PathExists(path string) (bool, error)

func StitchingString

func StitchingString(args ...string) string

StitchingString 多个字符串进行拼接

func TarGz

func TarGz(outFilePath string, inPath string) error

func TarGzWrite

func TarGzWrite(_dpath, _spath string, tw *tar.Writer, fi os.FileInfo) error

func UnGzip

func UnGzip(src, dest string) error

Types

type DockerCompose

type DockerCompose struct {
	Services map[string]Service `yaml:"services"`
}

type Service

type Service struct {
	Image string `yaml:"image"`
}

Jump to

Keyboard shortcuts

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