config

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Platform string
)
View Source
var (
	PlatformConfigFile = path.Join(GetDataHome(), "platform.yaml")
)

Functions

func GetConfigHome

func GetConfigHome() string

func GetDataHome

func GetDataHome() string

func GetPlatform

func GetPlatform() types.Platform

func GetRuntimeDir

func GetRuntimeDir() string

Types

type PlatformInfo

type PlatformInfo struct {
	Current  types.Platform `yaml:"current"`
	Previous types.Platform `yaml:"previous"`
}

func (*PlatformInfo) Load

func (p *PlatformInfo) Load() error

func (*PlatformInfo) Update

func (p *PlatformInfo) Update(platform types.Platform) error

Jump to

Keyboard shortcuts

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