target

package
v0.4.1-119-ge95ea0d Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: BSD-3-Clause Imports: 9 Imported by: 1

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KernelDbgName added in v0.3.0

func KernelDbgName(target TargetConfig) (string, error)

KernelDbgName is identical to KernelName but is used to access the symbolic kernel image which has not been stripped.

func KernelName added in v0.3.0

func KernelName(target TargetConfig) (string, error)

TargetName returns the name of the kernel image based on standard pattern which is baked within Unikraft's build system, see for example `KVM_IMAGE`. If we do not have a target name, return an error.

func TransformFromSchema added in v0.4.0

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

Types

type Command

type Command []string

type Target added in v0.4.0

type Target interface {
	component.Component

	// ArchPlatString returns the canonical name for platform architecture string
	// combination
	ArchPlatString() string

	// Architecture is the component architecture for this target.
	Architecture() arch.Architecture

	// Platform is the component platform for this target.
	Platform() plat.Platform

	// Format is the desired package implementation for this target.
	Format() string

	// Kernel is the path to the kernel for this target.
	Kernel() string

	// KernelDbg is the path to the symbolic (unstripped) kernel for this target.
	KernelDbg() string

	// Initrd contains the initramfs configuration for this target.
	Initrd() *initrd.InitrdConfig

	// Command is the command-line arguments set for this target.
	Command() []string
}

type TargetConfig

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

func (TargetConfig) ArchPlatString

func (tc TargetConfig) ArchPlatString() string

func (TargetConfig) Architecture

func (tc TargetConfig) Architecture() arch.Architecture

func (TargetConfig) Command

func (tc TargetConfig) Command() []string

func (TargetConfig) Format

func (tc TargetConfig) Format() string

func (TargetConfig) Initrd

func (tc TargetConfig) Initrd() *initrd.InitrdConfig

func (TargetConfig) IsUnpacked added in v0.4.0

func (tc TargetConfig) IsUnpacked() bool

func (TargetConfig) KConfig added in v0.4.0

func (tc TargetConfig) KConfig() kconfig.KeyValueMap

func (TargetConfig) KConfigTree added in v0.4.0

func (tc TargetConfig) KConfigTree(env ...*kconfig.KeyValue) (*kconfig.KConfigFile, error)

func (TargetConfig) Kernel

func (tc TargetConfig) Kernel() string

func (TargetConfig) KernelDbg

func (tc TargetConfig) KernelDbg() string

func (TargetConfig) Name

func (tc TargetConfig) Name() string

func (TargetConfig) Path added in v0.4.0

func (tc TargetConfig) Path() string

func (TargetConfig) Platform

func (tc TargetConfig) Platform() plat.Platform

func (TargetConfig) PrintInfo

func (tc TargetConfig) PrintInfo(ctx context.Context) string

func (TargetConfig) Source

func (tc TargetConfig) Source() string

func (TargetConfig) Type

func (TargetConfig) Version

func (tc TargetConfig) Version() string

type Targets

type Targets []TargetConfig

Jump to

Keyboard shortcuts

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