flyctl

package
v0.2.52 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigAPIToken        = "access_token"
	ConfigAPIBaseURL      = "api_base_url"
	ConfigFlapsBaseUrl    = "flaps_base_url"
	ConfigAppName         = "app"
	ConfigVerboseOutput   = "verbose"
	ConfigBuiltinsfile    = "builtins_file"
	ConfigGQLErrorLogging = "gqlerrorlogging"
	ConfigInstaller       = "installer"
	BuildKitNodeID        = "buildkit_node_id"

	ConfigWireGuardState      = "wire_guard_state"
	ConfigWireGuardWebsockets = "wire_guard_websockets"

	ConfigRegistryHost = "registry_host"
)
View Source
const NSRoot = "flyctl"

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() string

ConfigDir - Returns Directory holding the Config file

func ConfigFilePath added in v0.0.233

func ConfigFilePath() string

ConfigFilePath - returns the path to the config file

func InitConfig

func InitConfig()

InitConfig - Initialises config file for Viper

Types

type Config

type Config interface {
	GetString(key string) string
	GetBool(key string) bool
	GetStringSlice(key string) []string
	GetInt(key string) int
	IsSet(key string) bool
	Set(key string, value interface{})
}
var FlyConfig Config = ConfigNS(NSRoot)

func ConfigNS

func ConfigNS(ns string) Config

Jump to

Keyboard shortcuts

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