userdata

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package userdata renders cloud-init user-data scripts for the Podmin CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(script []byte) ([]byte, error)

Compress returns comment-free, gzip-compressed rendered user-data.

Types

type Dependency

type Dependency struct {
	Name         string
	ObjectKey    string
	Digest       string
	Architecture string
}

Dependency is one architecture-specific object staged during first boot.

type UserData

type UserData struct {
	Bucket       string
	Region       string
	Cluster      string
	NodeGroup    string
	Architecture string
	PauseImage   string
	Dependencies []Dependency
}

UserData contains values rendered into AWS cloud-init user-data.

func (UserData) Render

func (u UserData) Render() ([]byte, error)

Render returns AWS cloud-init user-data containing only validated values.

Jump to

Keyboard shortcuts

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