ssl

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

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

func DecodeBase64(encoded string) (string, error)

DecodeBase64 Decodes a base64-encoded string and returns the string representation of it

func GetHomeDir

func GetHomeDir(configValue string) string

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 Provision

func Provision(
	ctx context.Context,
	interCtx interpolate.Context,
	ui packersdk.Ui,
	communicator packersdk.Communicator,
	homeDir string,
	sslCertBase64 string,
	sslCertKeyBase64 string,
	nginxConfig string,
) error

func WriteToFile

func WriteToFile(content string) (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL