Documentation ¶
Index ¶
- Constants
- func AbsPathify(inPath string) string
- func CreateTempFileFromString(content string, filemode os.FileMode) (*os.File, fail.Error)
- func ExtractRetCode(err error) (_ string, _ int, ferr fail.Error)
- func GeneratePassword(length uint8) (string, error)
- func IsEmpty(v interface{}) bool
- func LazyRemove(path string) fail.Error
- func UserConfirmed(msg string) bool
- type Valid
Constants ¶
View Source
const ( BaseFolder = "/opt/safescale" // is the path of the base folder containing safescale data on cloud provider instances EtcFolder = BaseFolder + "/etc" // is the path of the folder containing safescale configurations BinFolder = BaseFolder + "/bin" // is the path of the folder containing safescale binaries on cloud provider instances VarFolder = BaseFolder + "/var" // is the path of the folder containing safescale equivalent of /var LogFolder = VarFolder + "/log" // is the path of the folder containing safescale logs TempFolder = VarFolder + "/tmp" // is the path of the folder containing safescale temporary files StateFolder = VarFolder + "/state" // is the path of the folder containing safescale states )
Variables ¶
This section is empty.
Functions ¶
func CreateTempFileFromString ¶
CreateTempFileFromString creates a temporary file containing 'content'
func ExtractRetCode ¶
ExtractRetCode extracts info from the error
func GeneratePassword ¶
GeneratePassword generates a password with length at least 12
func LazyRemove ¶
LazyRemove is identical to os.Remove, but doesn't raise an error, and log.Warn every error except "file not found" which is ignored
Types ¶
Click to show internal directories.
Click to hide internal directories.