runtime

package
v0.6.7-428-g77f2680 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 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 = "unikraft.org"
	DefaultPrebuilt  = "unikraft.org/base:latest"
)

Variables

This section is empty.

Functions

func RegisterFlags

func RegisterFlags()

func TransformFromSchema

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

TransformFromSchema parses an input schema and returns an instantiated runtime.

Types

type Runtime

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

func NewELFLoaderRuntime

func NewELFLoaderRuntime(ctx context.Context, pbopts ...RuntimeOption) (*Runtime, error)

NewELFLoaderRuntime prepares a "ELF loader" application that has been pre-built and is accessible from a remote registry.

func (*Runtime) Architecture

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

Architecture implements kraftkit.sh/unikraft.target.Target

func (*Runtime) Columns

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

Columns implements kraftkit.sh/pack.Package

func (*Runtime) Command

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

Command implements kraftkit.sh/unikraft.target.Target

func (*Runtime) ConfigFilename

func (elfloader *Runtime) ConfigFilename() string

ConfigFilename implements kraftkit.sh/unikraft.target.Target

func (*Runtime) Delete

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

func (*Runtime) Format

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

Format implements kraftkit.sh/unikraft.component.Component

func (*Runtime) Initrd

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

Initrd implements kraftkit.sh/unikraft.target.Target

func (*Runtime) Kernel

func (elfloader *Runtime) Kernel() string

Kernel implements kraftkit.sh/unikraft.target.Target

func (*Runtime) KernelDbg

func (elfloader *Runtime) KernelDbg() string

KernelDbg implements kraftkit.sh/unikraft.target.Target

func (*Runtime) Metadata

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

Metadata implements kraftkit.sh/pack.Package

func (*Runtime) Name

func (elfloader *Runtime) Name() string

Name implements kraftkit.sh/unikraft.Nameable

func (*Runtime) Platform

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

Platform implements kraftkit.sh/unikraft.target.Target

func (*Runtime) Pull

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

Pull implements kraftkit.sh/pack.Package

func (*Runtime) Push

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

Push implements kraftkit.sh/pack.Package

func (*Runtime) Source

func (elfloader *Runtime) Source() string

Source of the ELF Loader runtime.

func (*Runtime) String

func (ocipack *Runtime) String() string

String implements fmt.Stringer

func (*Runtime) Type

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

Type implements kraftkit.sh/unikraft.Nameable

func (*Runtime) Version

func (elfloader *Runtime) Version() string

Version implements kraftkit.sh/unikraft.Nameable

type RuntimeOption

type RuntimeOption func(*Runtime) error

RuntimeOption are method-driven options that are used to configure the instantiation of a pre-built unikernel application "runtime".

func WithKernel

func WithKernel(kernel string) RuntimeOption

WithKernel sets the specific path to the runtime.

func WithName

func WithName(name string) RuntimeOption

WithName sets the name of the runtime.

func WithRootfs

func WithRootfs(rootfs string) RuntimeOption

WithRootfs sets the rootfs to be mounted to the runtime

func WithSource

func WithSource(source string) RuntimeOption

WithSource sets the source location of the runtime

Jump to

Keyboard shortcuts

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