providerinit

package
v0.0.0-...-f7dd865 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0 Imports: 7 Imported by: 63

Documentation

Overview

Package providerinit offers userdata in a gzipped format to be used by different cloud providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposeUserData

func ComposeUserData(icfg *instancecfg.InstanceConfig, cloudcfg cloudinit.CloudConfig, renderer renderers.ProviderRenderer) ([]byte, error)

ComposeUserData fills out the provided cloudinit configuration structure so it is suitable for initialising a machine with the given configuration, and then renders it and encodes it using the supplied renderer. When calling ComposeUserData a encoding implementation must be chosen from the providerinit/encoders package according to the need of the provider.

If the provided cloudcfg is nil, a new one will be created internally.

Types

This section is empty.

Directories

Path Synopsis
Package renderers implements a way to encode the userdata depending on the OS and the provider.
Package renderers implements a way to encode the userdata depending on the OS and the provider.

Jump to

Keyboard shortcuts

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