Documentation ¶
Index ¶
Constants ¶
View Source
const SslCertDst string = "/etc/ssl/certs/server.crt"
View Source
const SslCertKeyDst string = "/etc/ssl/private/server.key"
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64 ¶
DecodeBase64 Decodes a base64-encoded string and returns the string representation of it
func GetHomeDir ¶
GetHomeDir Returns the home directory in Packer image builder. If a directory is specified, it is returned as it; otherwise the default Ubuntu home "/home/ubuntu" is returned
configValue: A directory that can be either empty or a valid directory to be used unchanged.
Returns: The actual home directory of the running Pakcer image builder
func WriteToFile ¶
WriteToFile Flushes a specified string into a temporary file and returns the path of that file.
content: The provided file content
Returns: A path to the generated temporary file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.