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
- func RegisterFlags()
- func TransformFromSchema(ctx context.Context, props interface{}) (interface{}, error)
- type Runtime
- func (elfloader *Runtime) Architecture() arch.Architecture
- func (elfloader *Runtime) Columns() []tableprinter.Column
- func (elfloader *Runtime) Command() []string
- func (elfloader *Runtime) ConfigFilename() string
- func (elfloader *Runtime) Delete(ctx context.Context) error
- func (elfloader *Runtime) Format() pack.PackageFormat
- func (elfloader *Runtime) Initrd() initrd.Initrd
- func (elfloader *Runtime) Kernel() string
- func (elfloader *Runtime) KernelDbg() string
- func (elfloader *Runtime) MarshalYAML() (interface{}, error)
- func (elfloader *Runtime) Metadata() interface{}
- func (elfloader *Runtime) Name() string
- func (elfloader *Runtime) Platform() plat.Platform
- func (elfloader *Runtime) Pull(ctx context.Context, opts ...pack.PullOption) error
- func (elfloader *Runtime) PulledAt(ctx context.Context) (bool, time.Time, error)
- func (elfloader *Runtime) Push(ctx context.Context, opts ...pack.PushOption) error
- func (elfloader *Runtime) Save(ctx context.Context) error
- func (elfloader *Runtime) SetName(name string)
- func (elfloader *Runtime) Source() string
- func (ocipack *Runtime) String() string
- func (elfloader *Runtime) Type() unikraft.ComponentType
- func (elfloader *Runtime) Unpack(ctx context.Context, dir string) error
- func (elfloader *Runtime) Version() string
- type RuntimeOption
Constants ¶
const ( PrebuiltRegistry = "unikraft.org" DefaultPrebuilt = "unikraft.org/base:latest" )
Variables ¶
This section is empty.
Functions ¶
func RegisterFlags ¶
func RegisterFlags()
func TransformFromSchema ¶
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) ConfigFilename ¶
ConfigFilename implements kraftkit.sh/unikraft.target.Target
func (*Runtime) Format ¶
func (elfloader *Runtime) Format() pack.PackageFormat
Format implements kraftkit.sh/unikraft.component.Component
func (*Runtime) MarshalYAML ¶ added in v0.7.2
func (*Runtime) Metadata ¶
func (elfloader *Runtime) Metadata() interface{}
Metadata implements kraftkit.sh/pack.Package
func (*Runtime) Type ¶
func (elfloader *Runtime) Type() unikraft.ComponentType
Type implements kraftkit.sh/unikraft.Nameable
type RuntimeOption ¶
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 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