utils

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package utils contains miscellaneous utility code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandAndVerifyExists

func ExpandAndVerifyExists(filePath string, description string) (string, error)

ExpandAndVerifyExists Expand relative path to absolute, and make sure it exists. This is necessary for many arguments because Helmfile assumes paths are relative to helmfile.yaml and we want them to be relative to CWD.

func IsIPV4Address added in v0.0.24

func IsIPV4Address(addr string) bool

IsIPV4Address returns true if addr is a valid ipv4 address

func QuoteJoin added in v0.0.24

func QuoteJoin(strs []string) string

QuoteJoin quotes all strings in a slice and joins them with `, ` eg. QuoteJoin([]string{`a`, `b`, `c`}, `, `) -> `"a", "b", "c"`

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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