common

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLogToPodAnnotation

func AddLogToPodAnnotation(ctx context.Context, client client.Client, fn func() error) error

func Archive added in v0.0.5

func Archive(ctx context.Context, inputFiles map[string]string, outputFile string) error

func CalcFileMD5 added in v0.0.5

func CalcFileMD5(filename string) (string, error)

func UnArchive added in v0.0.5

func UnArchive(ctx context.Context, sourceFile string, targetPath string) error

Types

type CompressOptions added in v0.0.5

type CompressOptions struct {
	Enable bool
	CType  string
	Output string
}

func NewCompressOptions added in v0.0.5

func NewCompressOptions(enable bool, compressType string, output string) *CompressOptions

type DecompressOptions added in v0.0.5

type DecompressOptions struct {
	Enable bool
	Md5    string
	Input  string
}

func NewDecompressOptions added in v0.0.5

func NewDecompressOptions(enable bool, md5 string, input string) *DecompressOptions

Jump to

Keyboard shortcuts

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