config

package
v0.0.0-...-6432134 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: MIT Imports: 5 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 {
	// Release channels to mirror. If nil, mirror all of Stable, Beta
	// and Alpha.
	Channels []channels.Channel `json:"channels"`

	// Filters choose what files are mirrored. By default, every file
	// is mirrored. Filters are strings like "- GLOB" and "+ GLOB"
	// that exclude and include files matching the globs,
	// respectively. First matching filter applies.
	Filters filters.Filters `json:"filters"`
}

Config describes what is to be mirrored.

func Load

func Load(path string) (*Config, error)

Load a config from the given path.

Jump to

Keyboard shortcuts

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