Documentation ¶
Index ¶
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 ExtractRetCode ¶
ExtractRetCode extracts info from the error
func GeneratePassword ¶
GeneratePassword generates a password with length at least 12
func IsEmpty ¶
func IsEmpty(v interface{}) bool
IsEmpty checks whether v is an empty struct Note:because IsEmpty uses reflect package, it may be slow. Use with parsimony
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.