assets

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Overview

Package assets handles Lokomotive assets. Operations such as storing files as binary data and extracting files from memory to disk belong in this package.

Index

Constants

View Source
const (
	// ControlPlaneSource is the asset source directory for control plane charts.
	ControlPlaneSource = "/charts/control-plane"
	// ComponentsSource is the asset source directory for components.
	ComponentsSource = "/charts/components"
	// TerraformModulesSource is the asset source directory for Terraform modules.
	TerraformModulesSource = "/terraform-modules"
)

Variables

This section is empty.

Functions

func Extract added in v0.4.0

func Extract(src, dst string) error

Extract recursively extracts the assets at src into the directory dst. If dst doesn't exist, the directory is created including any missing parents.

The assets are read either from data embedded in the binary or from the filesystem, depending on whether the LOKOCTL_USE_FS_ASSETS environment variable is set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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