internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

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 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 ExeShCmdStdout

func ExeShCmdStdout(command string, args ...string) (string, error)

ExeShCmdStdout executes a shell command capturing the standard output.

func ExtractCmdAndArgs

func ExtractCmdAndArgs(cmdLine string, sudo bool) (string, []string)

ExtractCmdAndArgs extracts the command and its arguments from the output string.

func MakeMetrics

func MakeMetrics(namespace, subsystem string) (*kitprometheus.Counter, *kitprometheus.Summary)

MakeMetrics returns an instance of metrics.

func RunCmdOutput

func RunCmdOutput(command string, args ...string) (string, error)

RunCmdOutput runs the specified command and returns its standard output as a string.

func RunCmdStart

func RunCmdStart(command string, args ...string) (*exec.Cmd, error)

RunCmdStart starts the specified command and returns the *exec.Cmd for the running process.

Types

This section is empty.

Directories

Path Synopsis
Package env contains utility tools for handling environment-based service configuration.
Package env contains utility tools for handling environment-based service configuration.
Package server contains the HTTP, gRPC and CoAP server implementation.
Package server contains the HTTP, gRPC and CoAP 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