plat

package
v0.5.1-21-g382aa1e Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: BSD-3-Clause Imports: 7 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.

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 TransformFromSchema added in v0.4.0

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

TransformFromSchema parses an input schema and returns an instantiated PlatformConfig

Types

type Platform

type Platform interface {
	component.Component
}

func NewPlatformFromOptions added in v0.5.1

func NewPlatformFromOptions(opts ...PlatformOption) (Platform, error)

NewPlatformFromOptions is a constructor that configures a platform configuration.

type PlatformConfig

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

func (PlatformConfig) IsUnpacked added in v0.4.0

func (pc PlatformConfig) IsUnpacked() bool

func (PlatformConfig) KConfig added in v0.4.0

func (pc PlatformConfig) KConfig() kconfig.KeyValueMap

func (PlatformConfig) KConfigTree added in v0.4.0

func (pc PlatformConfig) KConfigTree(env ...*kconfig.KeyValue) (*kconfig.KConfigFile, error)

func (PlatformConfig) Name

func (pc PlatformConfig) Name() string

func (PlatformConfig) Path added in v0.4.0

func (pc PlatformConfig) Path() string

func (PlatformConfig) PrintInfo

func (pc PlatformConfig) PrintInfo(ctx context.Context) string

func (PlatformConfig) Source

func (pc PlatformConfig) Source() string

func (PlatformConfig) Type

func (PlatformConfig) Version

func (pc PlatformConfig) Version() string

type PlatformOption added in v0.5.1

type PlatformOption func(*PlatformConfig) error

PlatformOption is a function that modifies a PlatformConfig.

func WithInternal added in v0.5.1

func WithInternal(internal bool) PlatformOption

WithInternal sets the internal flag of the platform.

func WithKConfig added in v0.5.1

func WithKConfig(kconfig kconfig.KeyValueMap) PlatformOption

WithKConfig sets the kconfig of the platform.

func WithName added in v0.5.1

func WithName(name string) PlatformOption

WithName sets the name of the platform.

func WithPath added in v0.5.1

func WithPath(path string) PlatformOption

WithPath sets the path of the platform.

func WithSource added in v0.5.1

func WithSource(source string) PlatformOption

WithSource sets the source of the platform.

func WithVersion added in v0.5.1

func WithVersion(version string) PlatformOption

WithVersion sets the version of the platform.

Jump to

Keyboard shortcuts

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