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 expect in compliance with the License.
Index ¶
- func KernelDbgName(target TargetConfig) (string, error)
- func KernelName(target TargetConfig) (string, error)
- type Command
- type TargetConfig
- func (tc *TargetConfig) ArchPlatString() string
- func (tc TargetConfig) Component() component.ComponentConfig
- func (tc TargetConfig) KConfigMenu() (*kconfig.KConfigFile, error)
- func (tc TargetConfig) KConfigValues() (kconfig.KConfigValues, error)
- func (tc TargetConfig) Name() string
- func (tc TargetConfig) PrintInfo() string
- func (tc TargetConfig) Source() string
- func (tc TargetConfig) Type() unikraft.ComponentType
- func (tc TargetConfig) Version() string
- type Targets
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.
Types ¶
type TargetConfig ¶
type TargetConfig struct { component.ComponentConfig Architecture arch.ArchitectureConfig `yaml:",omitempty" json:"architecture,omitempty"` Platform plat.PlatformConfig `yaml:",omitempty" json:"platform,omitempty"` Format string `yaml:",omitempty" json:"format,omitempty"` Kernel string `yaml:",omitempty" json:"kernel,omitempty"` KernelDbg string `yaml:",omitempty" json:"kerneldbg,omitempty"` Initrd *initrd.InitrdConfig `yaml:",omitempty" json:"initrd,omitempty"` Command []string `yaml:",omitempty" json:"commands"` Extensions map[string]interface{} `yaml:",inline" json:"-"` }
func (*TargetConfig) ArchPlatString ¶
func (tc *TargetConfig) ArchPlatString() string
ArchPlatString returns the canonical name for platform architecture string combination
func (TargetConfig) Component ¶
func (tc TargetConfig) Component() component.ComponentConfig
func (TargetConfig) KConfigMenu ¶
func (tc TargetConfig) KConfigMenu() (*kconfig.KConfigFile, error)
func (TargetConfig) KConfigValues ¶
func (tc TargetConfig) KConfigValues() (kconfig.KConfigValues, error)
func (TargetConfig) Name ¶
func (tc TargetConfig) Name() string
func (TargetConfig) PrintInfo ¶
func (tc TargetConfig) PrintInfo() string
func (TargetConfig) Source ¶
func (tc TargetConfig) Source() string
func (TargetConfig) Type ¶
func (tc TargetConfig) Type() unikraft.ComponentType
func (TargetConfig) Version ¶
func (tc TargetConfig) Version() string
type Targets ¶
type Targets []TargetConfig
Click to show internal directories.
Click to hide internal directories.