configuration

package
v0.0.0-...-0f20b9f Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(in []byte) error

Load loads the configuration and sets it globally if loading succeeded

Types

type Configuration

type Configuration struct {
	DefaultChannel string            `yaml:"default_channel"`
	Repositories   map[string]string `yaml:"repositories"`
}

Configuration holds the general configuration for the executable

func GetConfiguration

func GetConfiguration() Configuration

GetConfiguration returns the current configuration

func (Configuration) GetChannel

func (c Configuration) GetChannel(repoFullName string) string

GetChannel returns the specific channel for the repo, or the default one if there is no specific set.

Jump to

Keyboard shortcuts

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