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
- func TransformFromSchema(ctx context.Context, props interface{}) (interface{}, error)
- type Runtime
- func (runtime *Runtime) AddRootfs(path string) error
- func (runtime *Runtime) Architecture() arch.Architecture
- func (runtime *Runtime) Columns() []tableprinter.Column
- func (runtime *Runtime) Command() []string
- func (runtime *Runtime) ConfigFilename() string
- func (runtime *Runtime) Delete(ctx context.Context) error
- func (runtime *Runtime) Format() pack.PackageFormat
- func (runtime *Runtime) ID() string
- func (runtime *Runtime) Initrd() initrd.Initrd
- func (runtime *Runtime) Kernel() string
- func (runtime *Runtime) KernelDbg() string
- func (elfloader *Runtime) MarshalYAML() (interface{}, error)
- func (runtime *Runtime) Metadata() interface{}
- func (elfloader *Runtime) Name() string
- func (runtime *Runtime) Platform() plat.Platform
- func (runtime *Runtime) Pull(ctx context.Context, opts ...pack.PullOption) error
- func (runtime *Runtime) PulledAt(ctx context.Context) (bool, time.Time, error)
- func (runtime *Runtime) Push(ctx context.Context, opts ...pack.PushOption) error
- func (runtime *Runtime) Save(ctx context.Context) error
- func (elfloader *Runtime) SetName(name string)
- func (runtime *Runtime) Size() int64
- func (elfloader *Runtime) Source() string
- func (ocipack *Runtime) String() string
- func (elfloader *Runtime) Type() unikraft.ComponentType
- func (runtime *Runtime) Unpack(ctx context.Context, dir string) error
- func (elfloader *Runtime) Version() string
- type RuntimeOption
Constants ¶
const ( PrebuiltRegistry = "unikraft.org" DefaultRuntime = "unikraft.org/base:latest" DefaultKraftCloudRuntime = "index.unikraft.io/official/base:latest" )
Variables ¶
This section is empty.
Functions ¶
func TransformFromSchema ¶
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
NewRuntime prepares a pre-built unikernel application for use.
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) ConfigFilename ¶
ConfigFilename implements kraftkit.sh/unikraft.target.Target
func (*Runtime) Format ¶
func (runtime *Runtime) Format() pack.PackageFormat
Format implements kraftkit.sh/unikraft.component.Component
func (*Runtime) MarshalYAML ¶ added in v0.7.2
func (*Runtime) Metadata ¶
func (runtime *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 WithArchitecture ¶
func WithArchitecture(architecture string) RuntimeOption
WithArchitecture sets the architecture of the runtime.
func WithKernel ¶
func WithKernel(kernel string) RuntimeOption
WithKernel sets the specific path to the runtime.
func WithPlatform ¶
func WithPlatform(platform string) RuntimeOption
WithPlatform sets the platform 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