settings

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveSettingFile

func SaveSettingFile(configDir string, settings Settings) error

SaveSettingFile save the setting to a generic path

func SaveSettingFileHome

func SaveSettingFileHome(settings Settings) error

SaveSettingFileHome save the setting to the home

Types

type Settings

type Settings struct {
	// Repo is --plugin-repo
	Repo string `yaml:"repo"`
	// UseKubectl use kubectl instead of k3s
	UseKubectl bool `yaml:"use-kubectl"`
}

Settings default user setting

func GetDefaultSettings

func GetDefaultSettings() *Settings

GetDefaultSettings get default settings

func LoadSettingFormHomeFile

func LoadSettingFormHomeFile() (*Settings, error)

LoadSettingFormHomeFile global function to get the settings from home directory

Jump to

Keyboard shortcuts

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