config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigPath = "appman.yaml"
)

Variables

This section is empty.

Functions

func Config

func Config() (*[]ApplicationConfig, error)

func LoadConfig

func LoadConfig(path string) (*[]ApplicationConfig, error)

func ParseConfig

func ParseConfig(contents []byte) (*[]ApplicationConfig, error)

Types

type ApplicationConfig

type ApplicationConfig struct {
	Name         string   `yaml:"name"`
	Path         string   `yaml:"path"`
	StartCommand []string `yaml:"startCommand"`
	StopCommand  []string `yaml:"stopCommand"`
	Env          []string `yaml:"env"`
	Port         int      `yaml:"port"`
	URL          string   `yaml:"url"`
}

Jump to

Keyboard shortcuts

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