Help us shape the future of Go! Take the 2026 Go Developer Survey

flatcar

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DisableAutoUpdate   bool `json:"disableAutoUpdate"`
	DisableLocksmithD   bool `json:"disableLocksmithD"`
	DisableUpdateEngine bool `json:"disableUpdateEngine"`

	// ProvisioningUtility specifies the type of provisioning utility, allowed values are cloud-init and ignition.
	// Defaults to ignition.
	ProvisioningUtility `json:"provisioningUtility,omitempty"`
}

Config contains specific configuration for Flatcar.

func LoadConfig

func LoadConfig(r runtime.RawExtension) (*Config, error)

LoadConfig retrieves the Flatcar configuration from raw data.

func (*Config) Spec

func (cfg *Config) Spec() (*runtime.RawExtension, error)

Spec return the configuration as raw data.

type Provider

type Provider struct{}

Provider is a pkg/userdata/plugin.Provider implementation.

func (Provider) UserData

func (p Provider) UserData(req plugin.UserDataRequest) (string, error)

UserData renders user-data template to string.

type ProvisioningUtility added in v1.20.0

type ProvisioningUtility string

ProvisioningUtility specifies the type of provisioning utility.

const (
	Ignition  ProvisioningUtility = "ignition"
	CloudInit ProvisioningUtility = "cloud-init"
)

Jump to

Keyboard shortcuts

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