elfloader

package
v0.6.7-346-g0f0b2ab Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

Index

Constants

View Source
const (
	PrebuiltRegistry = "loaders.unikraft.org"
	DefaultPrebuilt  = "loaders.unikraft.org/default:latest"
)

Variables

This section is empty.

Functions

func RegisterFlags added in v0.6.7

func RegisterFlags()

func TransformFromSchema

func TransformFromSchema(ctx context.Context, props interface{}) (interface{}, error)

TransformFromSchema parses an input schema and returns an instantiated ELFLoader.

Types

type ELFLoader

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

func NewELFLoaderFromPrebuilt

func NewELFLoaderFromPrebuilt(ctx context.Context, pbopts ...ELFLoaderPrebuiltOption) (*ELFLoader, error)

NewELFLoaderFromPrebuilt prepares a ELF Loader application that has been pre-built and is accessible from a remote registry.

func (*ELFLoader) Architecture

func (elfloader *ELFLoader) Architecture() arch.Architecture

Architecture implements kraftkit.sh/unikraft.target.Target

func (*ELFLoader) Columns

func (elfloader *ELFLoader) Columns() []tableprinter.Column

Columns implements kraftkit.sh/pack.Package

func (*ELFLoader) Command

func (elfloader *ELFLoader) Command() []string

Command implements kraftkit.sh/unikraft.target.Target

func (*ELFLoader) ConfigFilename

func (elfloader *ELFLoader) ConfigFilename() string

ConfigFilename implements kraftkit.sh/unikraft.target.Target

func (*ELFLoader) Delete

func (elfloader *ELFLoader) Delete(ctx context.Context) error

func (*ELFLoader) Format

func (elfloader *ELFLoader) Format() pack.PackageFormat

Format implements kraftkit.sh/unikraft.component.Component

func (*ELFLoader) Initrd

func (elfloader *ELFLoader) Initrd() initrd.Initrd

Initrd implements kraftkit.sh/unikraft.target.Target

func (*ELFLoader) Kernel

func (elfloader *ELFLoader) Kernel() string

Kernel implements kraftkit.sh/unikraft.target.Target

func (*ELFLoader) KernelDbg

func (elfloader *ELFLoader) KernelDbg() string

KernelDbg implements kraftkit.sh/unikraft.target.Target

func (*ELFLoader) Metadata

func (elfloader *ELFLoader) Metadata() interface{}

Metadata implements kraftkit.sh/pack.Package

func (*ELFLoader) Name

func (elfloader *ELFLoader) Name() string

Name implements kraftkit.sh/unikraft.Nameable

func (*ELFLoader) Platform

func (elfloader *ELFLoader) Platform() plat.Platform

Platform implements kraftkit.sh/unikraft.target.Target

func (*ELFLoader) Pull

func (elfloader *ELFLoader) Pull(ctx context.Context, opts ...pack.PullOption) error

Pull implements kraftkit.sh/pack.Package

func (*ELFLoader) Push

func (elfloader *ELFLoader) Push(ctx context.Context, opts ...pack.PushOption) error

Push implements kraftkit.sh/pack.Package

func (*ELFLoader) Source

func (elfloader *ELFLoader) Source() string

Source of the ELF Loader runtime.

func (*ELFLoader) String

func (ocipack *ELFLoader) String() string

String implements fmt.Stringer

func (*ELFLoader) Type

func (elfloader *ELFLoader) Type() unikraft.ComponentType

Type implements kraftkit.sh/unikraft.Nameable

func (*ELFLoader) Version

func (elfloader *ELFLoader) Version() string

Version implements kraftkit.sh/unikraft.Nameable

type ELFLoaderPrebuiltOption

type ELFLoaderPrebuiltOption func(*ELFLoader) error

ELFLoaderPrebuiltOption is method-driven options that are used to configure the instantiation of ELFLoader application.

func WithKernel

func WithKernel(kernel string) ELFLoaderPrebuiltOption

WithKernel sets the specific path to the ELFLoader unikernel.

func WithName

func WithName(name string) ELFLoaderPrebuiltOption

WithName sets the name of the ELFLoader application.

func WithRootfs

func WithRootfs(rootfs string) ELFLoaderPrebuiltOption

WithRootfs sets the rootfs to be mounted to the ELFLoader application.

func WithSource

func WithSource(source string) ELFLoaderPrebuiltOption

WithSource sets the source location of the ELFLoader application.

Jump to

Keyboard shortcuts

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