config

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReleaseManifest

type ReleaseManifest struct {
	APIVersion        float64  `yaml:"apiVersion"`
	ReleaseVersion    string   `yaml:"releaseVersion"`
	SupportedUpgrades []string `yaml:"supportedUpgrades"`
	Components        struct {
		OperatingSystem struct {
			Upgrade struct {
				Version string `yaml:"version"`
			} `yaml:"upgrade"`
		} `yaml:"operatingSystem"`
		Kubernetes struct {
			Rke2 struct {
				Version string `yaml:"version"`
			} `yaml:"rke2"`
			K3S struct {
				Version string `yaml:"version"`
			} `yaml:"k3s"`
		} `yaml:"kubernetes"`
		Helm []struct {
			Name      string `yaml:"name"`
			Version   string `yaml:"version"`
			Location  string `yaml:"location"`
			Namespace string `yaml:"namespace"`
		} `yaml:"helm"`
		Images []struct {
			Name     string `yaml:"name"`
			Version  string `yaml:"version"`
			Location string `yaml:"location"`
		} `yaml:"images"`
	} `yaml:"components"`
}

ReleaseManifest is the struct that represents the release manifest

func ReadReleaseManifest

func ReadReleaseManifest(input string) (*ReleaseManifest, error)

Func ReadReleaseManifest from a input file, and return a ReleaseManifest struct or an error if something goes wrong

Jump to

Keyboard shortcuts

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