global

package
v0.11.8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package global provides the infrastructure need to load global configuration files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigurationPath

func ConfigurationPath() (string, error)

ConfigurationPath returns the path of the YAML-based global configuration file. It does not verify that the file exists.

Types

type Configuration

type Configuration struct {
	// Forwarding is the global forwarding configuration.
	Forwarding struct {
		// Defaults are the global forwarding configuration defaults.
		Defaults forwarding.Configuration `yaml:"defaults"`
	} `yaml:"forward"`
	// Synchronization is the global synchronization configuration.
	Synchronization struct {
		// Defaults are the global synchronization configuration defaults.
		Defaults synchronization.Configuration `yaml:"defaults"`
	} `yaml:"sync"`
}

Configuration is the global YAML configuration object type.

func LoadConfiguration

func LoadConfiguration(path string) (*Configuration, error)

LoadConfiguration attempts to load a YAML-based Mutagen global configuration file from the specified path.

Jump to

Keyboard shortcuts

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