platform

package
v1.2.27 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UnmarshalFailedMsg - message raised when platforms configuration unmarshal fails
	UnmarshalFailedMsg = `could not unmarshal the platforms`
)

Variables

View Source
var PlatformConfig = []byte{} /* 2876 elements not displayed */

PlatformConfig - do not edit

Functions

func ConvertTypes

func ConvertTypes(iCfg mta.MTA, eCfg Platforms, targetPlatform string)

ConvertTypes - convert schema type

Types

type Modules

type Modules struct {
	Name    string       `yaml:"name"`
	Modules []Properties `yaml:"modules"`
}

Modules - modules list

type Platforms

type Platforms struct {
	Platforms []Modules `yaml:"platform"`
}

Platforms - data structure for platforms module types configuration

func Unmarshal

func Unmarshal(data []byte) (Platforms, error)

Unmarshal - unmarshal platform config

type Properties

type Properties struct {
	NativeType   string            `yaml:"native-type"`
	PlatformType string            `yaml:"platform-type"`
	Properties   map[string]string `yaml:"properties,omitempty"`
	Parameters   map[string]string `yaml:"parameters,omitempty"`
}

Properties - properties list noinspection GoUnnecessarilyExportedIdentifiers

Jump to

Keyboard shortcuts

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