paths

package
v1.37.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoPath

func GoPath() (string, error)

func NewNitricLogFile

func NewNitricLogFile(stackPath string) (string, error)

NewNitricLogFile returns a path to a unique log file that does not exist.

func NitricConfigDir

func NitricConfigDir() string

NitricConfigDir returns the directory to find configuration.

func NitricHistoryFile

func NitricHistoryFile(stackPath string, historyType string) (string, error)

NitricHistoryFile returns a path to a request history file, making one if it doesn't exist

func NitricHomeDir

func NitricHomeDir() string

NitricHomeDir gets the nitric home directory

func NitricLocalPassphrasePath

func NitricLocalPassphrasePath() string

func NitricLogDir

func NitricLogDir(stackPath string) string

NitricLogDir returns the directory to find log files.

func NitricProviderDir

func NitricProviderDir() string

NitricProviderDir returns the directory to place provider deployment binaries.

func NitricStacksDir

func NitricStacksDir() (string, error)

func NitricTemplatesDir

func NitricTemplatesDir() string

NitricTemplatesDir returns the directory to place template related data.

func SplitPath

func SplitPath(p string) []string

SplitPath - splits a path into its component parts, ignoring leading or trailing slashes. e.g - SplitPath("/one/two/three/") == SplitPath("/one/two/three") == SplitPath("one/two/three") == ["one" "two" "three"]

Types

This section is empty.

Jump to

Keyboard shortcuts

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