Documentation ¶
Index ¶
- func CheckErr(err error)
- func DirWritable(path string) bool
- func FilesExisting(files ...string) []string
- func FindFilesInDir(dir string, name string) ([]string, error)
- func FormatProjectName(projectName string) string
- func GetInterfaceIpv4Addr(interfaceName string) (string, error)
- func GetNextListener(opts ...getNextListenerOption) (net.Listener, error)
- func GlobInDir(dir, pattern string) ([]string, error)
- func GoPath() (string, error)
- func IsTerminal() bool
- func JoinCamelCase(ss []string) string
- func MaxPort(maxPort int) getNextListenerOption
- func MinPort(minPort int) getNextListenerOption
- func NewIncompatibleWorkerError() error
- func NewNitricLogFile(stackPath string) (string, error)
- func NitricConfigDir() string
- func NitricHistoryFile(stackPath string, historyType string) (string, error)
- func NitricHomeDir() string
- func NitricLocalPassphrasePath() string
- func NitricLogDir(stackPath string) string
- func NitricPreferencesPath() string
- func NitricProviderDir() string
- func NitricRunDir() string
- func NitricStacksDir() (string, error)
- func NitricTemplatesDir() string
- func SplitPath(p string) []string
- func StringTrunc(s string, max int) string
- func Take(n int) ([]int, error)
- type GetterClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirWritable ¶ added in v1.14.0
func FilesExisting ¶ added in v1.3.0
func FormatProjectName ¶ added in v1.19.0
func GetInterfaceIpv4Addr ¶ added in v1.4.0
func GetNextListener ¶ added in v1.14.1
GetNextListener - Gets the next available free port starting from a predefined minimum port Up to a pre-defined maximum port
func IsTerminal ¶ added in v1.33.2
func IsTerminal() bool
func JoinCamelCase ¶ added in v1.1.0
func NewIncompatibleWorkerError ¶ added in v1.19.0
func NewIncompatibleWorkerError() error
func NewNitricLogFile ¶
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 ¶ added in v1.19.0
NitricHistoryFile returns a path to a request history file, making one if it doesn't exist
func NitricHomeDir ¶ added in v1.6.0
func NitricHomeDir() string
NitricHomeDir gets the nitric home directory
func NitricLocalPassphrasePath ¶ added in v1.7.0
func NitricLocalPassphrasePath() string
func NitricLogDir ¶
NitricLogDir returns the directory to find log files.
func NitricPreferencesPath ¶ added in v1.5.0
func NitricPreferencesPath() string
func NitricProviderDir ¶ added in v1.16.0
func NitricProviderDir() string
NitricProviderDir returns the directory to place provider deployment binaries.
func NitricRunDir ¶
func NitricRunDir() string
NitricRunDir returns the directory to place runtime data.
func NitricStacksDir ¶ added in v1.6.0
func NitricTemplatesDir ¶
func NitricTemplatesDir() string
NitricTemplatesDir returns the directory to place template related data.
func SplitPath ¶
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"]
func StringTrunc ¶ added in v1.1.0
Types ¶
type GetterClient ¶
type GetterClient interface {
Get() error
}
GetterClient exists because go-getter does not have an interface to mock.
func NewGetter ¶
func NewGetter(c *getter.Client) GetterClient