config

package
v0.0.0-...-2045cfa Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Port, Scheme for app-controld API
	AppControlDPort    int    `yaml:"appControlDPort"`
	AppControlDScheme  string `yaml:"appControlDScheme"`
	AppControlDPSKPath string `yaml:"appControlDPSKPath"`

	// Arryved env short name
	Env string `yaml:"env"`

	// individual GCE instance deploy timeout in seconds
	GCEDeployTimeoutS int `yaml:"gceDeployTimeout"`

	// kubeconfig yaml path
	KubeConfigPath string `yaml:"kubeConfigPath"`

	// Min log level
	LogLevel string `yaml:"logLevel"`

	// Max number of concurrent job threads
	MaxJobThreads int `yaml:"maxJobThreads"`

	// Config for work queue client
	Queue apiconfig.QueueConfig `yaml:"queue"`

	// Google Service Account Key Path
	ServiceAccountKeyPath string `yaml:"serviceAccountKeyPath"`

	// Name of template is key, root path containing templates is value
	AppTemplates map[string]string `yaml:"appTemplates"`

	// Whether or not to keep temp directory of generated files/config; useful for debugging
	KeepTempDir bool `yaml:"keepTempDir"`
}

func Load

func Load(configPath string) *Config

Load the config from provided path

Jump to

Keyboard shortcuts

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