Documentation ¶
Index ¶
- func FindFilesInDir(dir string, name string) ([]string, error)
- func GlobInDir(dir, pattern string) ([]string, error)
- func GoModule(searchPath string) (string, error)
- func NewNitricLogFile(stackPath string) (string, error)
- func NewNotSupportedErr(message string) error
- func NewStringFileInfo(fileName, content string) fs.FileInfo
- func NitricConfigDir() string
- func NitricLogDir(stackPath string) string
- func NitricRunDir() string
- func NitricTemplatesDir() string
- func SplitPath(p string) []string
- type ErrorList
- type GetterClient
- type NotSupportedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNitricLogFile ¶
NewNitricLogFile returns a path to a unique log file that does not exist.
func NewNotSupportedErr ¶
func NewStringFileInfo ¶
func NitricConfigDir ¶
func NitricConfigDir() string
NitricConfigDir returns the directory to find configuration.
func NitricLogDir ¶
NitricLogDir returns the directory to find log files.
func NitricRunDir ¶
func NitricRunDir() string
NitricRunDir returns the directory to place runtime data.
func NitricTemplatesDir ¶
func NitricTemplatesDir() string
NitricTemplatesDir returns the directory to place template related data.
Types ¶
type ErrorList ¶
type ErrorList struct {
// contains filtered or unexported fields
}
ErrorList is for when one error is not the cause of others.
func NewErrorList ¶
func NewErrorList() *ErrorList
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
type NotSupportedError ¶
type NotSupportedError struct {
// contains filtered or unexported fields
}
NotSupportedError indicates that a request operation cannot be performed, because it is unsupported. Functions and methods should not return this error but should instead return an error including appropriate context that satisfies
errors.Is(err, errors.NotSupportedError)
either by directly wrapping NotSupportedError or by implementing an Is method.
func (*NotSupportedError) Is ¶
func (*NotSupportedError) Is(err error) bool