demo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadRootfs

func DownloadRootfs(machine, arch, version string) (io.ReadCloser, int64, error)

DownloadRootfs downloads a FreeBSD root filesystem

func FreeBSDArch

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

FreeBSDArch returns the current architecture as reported by uname(1)

func FreeBSDMachine

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

FreeBSDMachine returns the current hardware platform as reported by uname(1)

func FreeBSDVersion

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

FreeBSDVersion returns the current version as reported by freebsd-version(1)

func MakeImage

func MakeImage(rootfsFilename string, outputFilename string, arch string) error

MakeImage constructs a single-layer FreeBSD OCI image from a given input tar

Types

This section is empty.

Jump to

Keyboard shortcuts

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