edgex

package
v0.0.0-...-5801123 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVersionNotAdapted  = errors.New("version cannot be adapted")
	ErrConfigFileNotFound = errors.New("configuration file is not found")
)
View Source
var (
	UnifiedPort uint
)

Functions

func CollectImages

func CollectImages(edgexConfig, edgeXConfigArm *EdgeXConfig) error

func CollectVersionsInfo

func CollectVersionsInfo() ([]string, error)

func ModifyImagesName

func ModifyImagesName(edgexConfig *EdgeXConfig, repo string)

func SetLog

func SetLog(logger *logrus.Entry)

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"`
	// contains filtered or unexported fields
}

type EdgeXConfig

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

func CollectEdgeXConfig

func CollectEdgeXConfig(versionsInfo []string, isSecurity bool, arch string) (*EdgeXConfig, error)

type Manifest

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

func CollectVersionToManifest

func CollectVersionToManifest(versionList []*Version, oldManifest *Manifest) *Manifest

func NewManifest

func NewManifest() *Manifest

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"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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