core

package
v0.4.1-73-g22cdef1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

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

View Source
const (
	CONFIG_UK_PLAT = "plat"
	CONFIG_UK_LIB  = "lib"
	CONFIG         = "support/kconfig"
	CONFIGLIB      = "support/kconfiglib"
)

Variables

This section is empty.

Functions

func TransformFromSchema added in v0.4.0

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

TransformFromSchema parses an input schema and returns an instantiated UnikraftConfig

Types

type MakeArgs

type MakeArgs struct {
	OutputDir      string `export:"O,omitempty"`
	ApplicationDir string `export:"A"`
	PlatformDirs   string `export:"P,omitempty"`
	LibraryDirs    string `export:"L,omitempty"`
	Name           string `export:"N,omitempty"`
	// Verbosity      Verbosity `export:"V,omitempty" default:"0"`
	ConfigPath string `export:"C,omitempty"`
}

type Unikraft

type Unikraft interface {
	component.Component

	// Libraries returns the application libraries' configurations
	Libraries(ctx context.Context) (lib.Libraries, error)
}

type UnikraftConfig

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

func (UnikraftConfig) CONFIG added in v0.4.0

func (uk UnikraftConfig) CONFIG() (string, error)

func (UnikraftConfig) CONFIGLIB added in v0.4.0

func (uk UnikraftConfig) CONFIGLIB() (string, error)

func (UnikraftConfig) CONFIG_CONFIG_IN added in v0.4.0

func (uk UnikraftConfig) CONFIG_CONFIG_IN() (string, error)

func (UnikraftConfig) CONFIG_UK_LIB added in v0.4.0

func (uk UnikraftConfig) CONFIG_UK_LIB() (string, error)

func (UnikraftConfig) CONFIG_UK_PLAT added in v0.4.0

func (uk UnikraftConfig) CONFIG_UK_PLAT() (string, error)

func (UnikraftConfig) IsUnpacked added in v0.4.0

func (uc UnikraftConfig) IsUnpacked() bool

func (UnikraftConfig) KConfig added in v0.4.0

func (uc UnikraftConfig) KConfig() kconfig.KeyValueMap

func (UnikraftConfig) KConfigTree added in v0.4.0

func (uc UnikraftConfig) KConfigTree(extra ...*kconfig.KeyValue) (*kconfig.KConfigFile, error)

func (UnikraftConfig) Libraries added in v0.4.0

func (uk UnikraftConfig) Libraries(ctx context.Context) (lib.Libraries, error)

func (UnikraftConfig) Name

func (uc UnikraftConfig) Name() string

func (UnikraftConfig) Path added in v0.4.0

func (uc UnikraftConfig) Path() string

func (UnikraftConfig) PrintInfo

func (uc UnikraftConfig) PrintInfo(ctx context.Context) string

func (UnikraftConfig) Source

func (uc UnikraftConfig) Source() string

func (UnikraftConfig) Type

func (UnikraftConfig) Version

func (uc UnikraftConfig) Version() string

type Verbosity

type Verbosity string
const (
	VerboseQuiet Verbosity = "0"
	VerboseBuild Verbosity = "1"
	VerboseExtra Verbosity = "2"

	// The delimeter used within Unikraft's build system
	MakeDelimeter = ":"
)

Jump to

Keyboard shortcuts

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