config

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed EdgeXConfig
	EdgeXFS embed.FS

	ManifestPath = filepath.Join(folder, "manifest.yaml")
)

Functions

func ExtractRequiredComponentsName

func ExtractRequiredComponentsName(manifest *Manifest, versionName string) sets.String

func ExtractVersionsName

func ExtractVersionsName(manifest *Manifest) sets.String

Types

type Component

type Component struct {
	Name       string                 `yaml:"name" json:"name"`
	Service    *corev1.ServiceSpec    `yaml:"service,omitempty" json:"service,omitempty"`
	Deployment *appsv1.DeploymentSpec `yaml:"deployment,omitempty" json:"deployment,omitempty"`
}

type EdgeXConfig

type EdgeXConfig struct {
	Versions []*Version `yaml:"versions,omitempty" json:"versions,omitempty"`
}

type Manifest

type Manifest struct {
	Updated       string            `yaml:"updated"`
	Count         int               `yaml:"count"`
	LatestVersion string            `yaml:"latestVersion"`
	Versions      []ManifestVersion `yaml:"versions"`
}

type ManifestVersion

type ManifestVersion struct {
	Name               string   `yaml:"name"`
	RequiredComponents []string `yaml:"requiredComponents"`
}

type PlatformAdminControllerConfiguration

type PlatformAdminControllerConfiguration struct {
	Manifest           Manifest
	SecurityComponents map[string][]*Component
	NoSectyComponents  map[string][]*Component
	SecurityConfigMaps map[string][]corev1.ConfigMap
	NoSectyConfigMaps  map[string][]corev1.ConfigMap
}

PlatformAdminControllerConfiguration contains elements describing PlatformAdminController.

func NewPlatformAdminControllerConfiguration

func NewPlatformAdminControllerConfiguration() *PlatformAdminControllerConfiguration

type Version

type Version struct {
	Name       string             `yaml:"versionName" json:"versionName"`
	ConfigMaps []corev1.ConfigMap `yaml:"configMaps,omitempty" json:"configMaps,omitempty"`
	Components []*Component       `yaml:"components,omitempty" json:"components,omitempty"`
}

Jump to

Keyboard shortcuts

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