packer

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(filepath string, url string) ([]byte, error)

func ExtractTarGz

func ExtractTarGz(gzipStream io.Reader) error

Types

type Packer

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

func New

func New(log logr.Logger) *Packer

func (*Packer) EnsureImage

func (m *Packer) EnsureImage(ctx context.Context, log logr.Logger, hc api.HcloudClient, parameters *api.PackerParameters) (*infrav1.HcloudImageID, error)

EnsureImage checks if the API has an image already build and if not, it will run packer build to create one

func (*Packer) Initialize

func (m *Packer) Initialize(machine *infrav1.HcloudMachine) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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