config

package
v0.0.0-...-c11c497 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateRemote

func ValidateRemote(ctx context.Context, remote string, interactive bool) (string, error)

Types

type GlobalConfig

type GlobalConfig struct {
	Machines []*Machine `json:"machines"`
}

GlobalConfig represents the top-level configuration

var Global *GlobalConfig

type Machine

type Machine struct {
	Hostname string   `json:"hostname"`
	Paths    []string `json:"paths"`
	Output   bool     `json:"output"`
	Pre      []string `json:"pre"`
	Post     []string `json:"post"`
}

Machine represents a single machine configuration

func GetCurrentMachine

func GetCurrentMachine() (*Machine, error)

Jump to

Keyboard shortcuts

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