userdata

package
v0.0.0-...-94e4715 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ErrNotACloudConfigFile = errors.Error("userdata: not a cloud-config file")
	ErrNotAScript          = errors.Error("userdata: not a user-data script file")
)

Variables

This section is empty.

Functions

func IsCloudConfig

func IsCloudConfig(content string) error

IsCloudConfig checks whether the given content belongs to a cloud-config file

func IsScript

func IsScript(content string) error

IsScript checks whether the given content belongs to a script file

Types

type Map

type Map map[string]string

Map contains the user-data attributes given by the provider

func (Map) CloudConfigs

func (m Map) CloudConfigs() map[string]string

func (Map) Scripts

func (m Map) Scripts() map[string]string

Scripts return a new amp containing only the contents that are valid scripts

Jump to

Keyboard shortcuts

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