Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeHash ¶ added in v0.6.6
ComputeHash returns the SHA256 hash of the user data byte array.
func NewBastion ¶
func NewBastion(input *BastionInput) (string, error)
NewBastion returns the user data string to be used on a bastion instance.
Types ¶
type BastionInput ¶
type BastionInput struct {
// contains filtered or unexported fields
}
BastionInput defines the context to generate a bastion instance user data.
type Files ¶
type Files struct { // Path specifies the full path on disk where to store the file. Path string `json:"path"` // Owner specifies the ownership of the file, e.g. "root:root". Owner string `json:"owner"` // Permissions specifies the permissions to assign to the file, e.g. "0640". Permissions string `json:"permissions"` // Content is the actual content of the file. Content string `json:"content"` }
Files defines the input for generating write_files in cloud-init.
Click to show internal directories.
Click to hide internal directories.