cloudinit

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureCloudInitDir

func EnsureCloudInitDir() (string, error)

func GetCloudInitDir

func GetCloudInitDir() (string, error)

func Load

func Load(nameOrPath string) (string, error)

Load loads the content of a cloud-init script. The nameOrPath argument can be either: - A name of a saved script in ~/.config/lambda/cloud-init.d/ - A file system path to a script

Types

type Script

type Script struct {
	Name string
	Path string
}

func Get

func Get(name string) (*Script, error)

Get returns a saved cloud-init script by name

func List

func List() ([]*Script, error)

List returns all saved cloud-init scripts from ~/.config/lambda/cloud-init.d/

func (*Script) Load

func (s *Script) Load() (string, error)

LoadScript loads the content of a Script

Jump to

Keyboard shortcuts

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