util

package
v1.29.6 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountFileRows

func CountFileRows(filePath string) (int64, error)

func GetClientIp

func GetClientIp(filter string) (string, error)

func GetClusterVersion

func GetClusterVersion(endpoint string, auth *model.BasicAuth) (*elastic.ClusterInformation, error)

func GetLocalNodeInfo

func GetLocalNodeInfo(endpoint string, auth *model.BasicAuth) (string, *elastic.NodesInfo, error)
func ResolveSymlink(link string) (string, error)

ResolveSymlink Parse the target file path of the soft link

func UnpackGzipFile added in v1.29.0

func UnpackGzipFile(gzFile, outputFile string) error

UnpackGzipFile extracts a .gz file and writes the output to a regular file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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