runtime

package
v0.8.7-48-g9e0e41d4 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 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.

Index

Constants

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

Variables

This section is empty.

Functions

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 NewRuntime added in v0.8.4

func NewRuntime(ctx context.Context, name string, pbopts ...RuntimeOption) (*Runtime, error)

NewRuntime prepares a pre-built unikernel application for use.

func (*Runtime) AddRootfs added in v0.8.4

func (runtime *Runtime) AddRootfs(path string) error

func (*Runtime) Architecture

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

Architecture implements kraftkit.sh/unikraft.target.Target

func (*Runtime) Columns

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

Columns implements kraftkit.sh/pack.Package

func (*Runtime) Command

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

Command implements kraftkit.sh/unikraft.target.Target

func (*Runtime) ConfigFilename

func (runtime *Runtime) ConfigFilename() string

ConfigFilename implements kraftkit.sh/unikraft.target.Target

func (*Runtime) Delete

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

func (*Runtime) Format

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

Format implements kraftkit.sh/unikraft.component.Component

func (*Runtime) ID added in v0.8.2

func (runtime *Runtime) ID() string

ID implements kraftkit.sh/pack.Package

func (*Runtime) Initrd

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

Initrd implements kraftkit.sh/unikraft.target.Target

func (*Runtime) Kernel

func (runtime *Runtime) Kernel() string

Kernel implements kraftkit.sh/unikraft.target.Target

func (*Runtime) KernelDbg

func (runtime *Runtime) KernelDbg() string

KernelDbg implements kraftkit.sh/unikraft.target.Target

func (*Runtime) MarshalYAML added in v0.7.2

func (elfloader *Runtime) MarshalYAML() (interface{}, error)

func (*Runtime) Metadata

func (runtime *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 (runtime *Runtime) Platform() plat.Platform

Platform implements kraftkit.sh/unikraft.target.Target

func (*Runtime) Pull

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

Pull implements kraftkit.sh/pack.Package

func (*Runtime) PulledAt added in v0.7.6

func (runtime *Runtime) PulledAt(ctx context.Context) (bool, time.Time, error)

Pull implements kraftkit.sh/pack.Package

func (*Runtime) Push

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

Push implements kraftkit.sh/pack.Package

func (*Runtime) Save added in v0.7.6

func (runtime *Runtime) Save(ctx context.Context) error

Save implements kraftkit.sh/pack.Package

func (*Runtime) SetName added in v0.7.1

func (elfloader *Runtime) SetName(name string)

SetName overwrites the name of the runtime.

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) Unpack added in v0.7.6

func (runtime *Runtime) Unpack(ctx context.Context, dir string) error

Unpack implements kraftkit.sh/pack.Package

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