cloudinitfile

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Useful for 1 allowing the user to update the cloud-init file without restarting the serer. Also validates a users cloud-init data and has helpers for managing milpa data

Index

Constants

This section is empty.

Variables

View Source
var (
	ItzoVersionPath = itzoDir + "/itzo_version"
	ItzoURLPath     = itzoDir + "/itzo_url"
)

Functions

This section is empty.

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func New

func New(path string) (*File, error)

func (*File) AddItzoURL

func (f *File) AddItzoURL(url string)

func (*File) AddItzoVersion

func (f *File) AddItzoVersion(version string)

Adds an itzo version number to cloud-init file. If the user didn't specify "latest" but they left off the leading 'v' then add it on (itzo files are named like: itzo-v1.2.3)

func (*File) AddKipFile

func (f *File) AddKipFile(content, path, permissions string)

func (*File) Contents

func (f *File) Contents() ([]byte, error)

func (*File) ResetInstanceData

func (f *File) ResetInstanceData()

Jump to

Keyboard shortcuts

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