internal

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum added in v0.3.0

func Checksum(path string) ([]byte, error)

Checksum calculates the SHA3-256 checksum of the file or directory at path.

func ChecksumHex added in v0.3.0

func ChecksumHex(path string) (string, error)

ChecksumHex calculates the SHA3-256 checksum of the file or directory at path and returns it as a hex-encoded string.

func CopyFile

func CopyFile(srcPath, dstPath string) error

CopyFile copies a file from srcPath to dstPath.

func DeleteFilesInDir

func DeleteFilesInDir(dirPath string) error

DeleteFilesInDir deletes all files in the directory dirPath.

func UnzipFromMemory added in v0.3.0

func UnzipFromMemory(zipData []byte, targetDir string) error

func ZipDirectoryToMemory added in v0.3.0

func ZipDirectoryToMemory(sourceDir string) ([]byte, error)

func ZipDirectoryToTempFile added in v0.4.0

func ZipDirectoryToTempFile(sourceDir string) (*os.File, error)

Types

This section is empty.

Directories

Path Synopsis
Package server contains the gRPC server implementation.
Package server contains the gRPC server implementation.
grpc
Package grpc contains the gRPC server implementation.
Package grpc contains the gRPC server implementation.

Jump to

Keyboard shortcuts

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