embed

package
v1.57.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package embed extracts embedded files

Description: This file has the package embed.

Index

Constants

This section is empty.

Variables

View Source
var Config goembed.FS

Config contains configuration of the devenv that is static

View Source
var Manifests goembed.FS

Manifests contains the devenv of the manifests

View Source
var Patches goembed.FS

Patches contains files that patch the control plane for KIND

View Source
var Shell goembed.FS

Shell contains all of the shell scripts used

Functions

func ExtractAllToTempDir

func ExtractAllToTempDir(ctx context.Context) (string, error)

ExtractAllToTempDir extracts all embedded files into a temporary directory allowing usage of them with shell scripts / external commands. The extracted files match the embedded setup

func ExtractToDir

func ExtractToDir(efs *goembed.FS, dir string) error

ExtractToDir extracts an embed.FS to a given directory

func MustRead

func MustRead(b []byte, err error) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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