ignition

package
v0.3.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultFileMode = 0644
	DefaultDirMode  = 0755
)
View Source
const (
	IngitionSchemaVersion         = "2.2.0"
	ContainerLinuxBaseIgnitionUri = "ignition-config/containerlinux-base.ign"
)

Variables

This section is empty.

Functions

func GetS3Url

func GetS3Url(bucket, uri string) string

func StringToPtr

func StringToPtr(s string) *string

Types

type Factory

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

func NewFactory

func NewFactory(backend TemplateBackend) *Factory

func (*Factory) BuildIgnitionConfig

func (factory *Factory) BuildIgnitionConfig(out *ignTypes.Config, node *Node) (*ignTypes.Config, error)

func (*Factory) GenerateUserData

func (factory *Factory) GenerateUserData(node *Node) ([]byte, error)

type Node

type Node struct {
	Files    []v1alpha3.File
	Services []types.ServiceUnit
	Version  string
}

type S3TemplateBackend

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

func NewS3TemplateBackend

func NewS3TemplateBackend(userdataDir, templateDir string, userDataBucket string) (*S3TemplateBackend, error)

type TemplateBackend

type TemplateBackend interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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