path

package
v0.8.2-beta.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectory

func CreateDirectory(path string) (string, error)

CreateDirectory creates directories corresponding to the provided path.

func Expand

func Expand(path string) (string, error)

Expand expands the provided path, evaluating all symlinks (including "~").

func ExpandHome

func ExpandHome(s string) string

func Kubeconfig

func Kubeconfig(artifactDirectory, ns, clusterName string) string

func UserHomeDirectory

func UserHomeDirectory() (string, error)

UserHomeDirectory returns the user directory.

func WKSHome

func WKSHome(artifactDirectory string) string

WKSHome sanitises the provided (optional) artifact directory or defaults it.

func WKSResourcePath

func WKSResourcePath(artifactDirectory string, paths ...string) string

WKSResourcePath joins the provided (optional) artifact directory and the provided path components into a well-formed path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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