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 ¶
- func TransformFromSchema(ctx context.Context, data interface{}) (interface{}, error)
- type Platform
- type PlatformConfig
- func (pc PlatformConfig) IsUnpacked() bool
- func (pc PlatformConfig) KConfig() kconfig.KeyValueMap
- func (pc PlatformConfig) KConfigTree(env ...*kconfig.KeyValue) (*kconfig.KConfigFile, error)
- func (pc PlatformConfig) Name() string
- func (pc PlatformConfig) Path() string
- func (pc PlatformConfig) PrintInfo(ctx context.Context) string
- func (pc PlatformConfig) Source() string
- func (pc PlatformConfig) Type() unikraft.ComponentType
- func (pc PlatformConfig) Version() string
- type PlatformOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransformFromSchema ¶ added in v0.4.0
TransformFromSchema parses an input schema and returns an instantiated PlatformConfig
Types ¶
type Platform ¶
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) Source ¶
func (pc PlatformConfig) Source() string
func (PlatformConfig) Type ¶
func (pc PlatformConfig) Type() unikraft.ComponentType
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.