userdata

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Jump to

Keyboard shortcuts

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