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 ELFLoader
- func (elfloader *ELFLoader) Architecture() arch.Architecture
- func (elfloader *ELFLoader) Columns() []tableprinter.Column
- func (elfloader *ELFLoader) Command() []string
- func (elfloader *ELFLoader) ConfigFilename() string
- func (elfloader *ELFLoader) Delete(ctx context.Context) error
- func (elfloader *ELFLoader) Format() pack.PackageFormat
- func (elfloader *ELFLoader) Initrd() initrd.Initrd
- func (elfloader *ELFLoader) Kernel() string
- func (elfloader *ELFLoader) KernelDbg() string
- func (elfloader *ELFLoader) Metadata() interface{}
- func (elfloader *ELFLoader) Name() string
- func (elfloader *ELFLoader) Platform() plat.Platform
- func (elfloader *ELFLoader) Pull(ctx context.Context, opts ...pack.PullOption) error
- func (elfloader *ELFLoader) Push(ctx context.Context, opts ...pack.PushOption) error
- func (elfloader *ELFLoader) Source() string
- func (ocipack *ELFLoader) String() string
- func (elfloader *ELFLoader) Type() unikraft.ComponentType
- func (elfloader *ELFLoader) Version() string
- type ELFLoaderPrebuiltOption
Constants ¶
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 ¶
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) ConfigFilename ¶
ConfigFilename implements kraftkit.sh/unikraft.target.Target
func (*ELFLoader) Format ¶
func (elfloader *ELFLoader) Format() pack.PackageFormat
Format implements kraftkit.sh/unikraft.component.Component
func (*ELFLoader) Metadata ¶
func (elfloader *ELFLoader) Metadata() interface{}
Metadata implements kraftkit.sh/pack.Package
func (*ELFLoader) Type ¶
func (elfloader *ELFLoader) Type() unikraft.ComponentType
Type implements kraftkit.sh/unikraft.Nameable
type ELFLoaderPrebuiltOption ¶
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.