utils

package
v1.3.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FailLogLevel = log.WarnLevel // allows to suppress error logging in some situations

Functions

func ChartAndVersion

func ChartAndVersion(x string) (string, string, error)

func RunCommand

func RunCommand(cmd []string, env map[string]string) (string, error)

func TempFile

func TempFile(txt string) (string, func(), error)

Types

type CmdError

type CmdError struct {
	Command   []string
	OrigError error
	StdErr    string
}

func (CmdError) Error

func (e CmdError) Error() string

type ControlChan

type ControlChan = chan struct{}

type QueryProps

type QueryProps struct {
	Namespace string
	Name      string
}

func GetQueryProps

func GetQueryProps(c *gin.Context) (*QueryProps, error)

Jump to

Keyboard shortcuts

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