settings

package
v5.0.0-alpha.3+incompa... Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultLocation = gh.Location{
		Ref: "master",
	}
)

Functions

This section is empty.

Types

type Defaults

type Defaults struct {
	Location       gh.Location      `yaml:",inline"`
	TemplateValues templates.Values `yaml:"template-values"`
}

type Service

type Service struct {
	Name           string           `yaml:"name,omitempty"`
	Location       gh.Location      `yaml:",inline"`
	TemplateValues templates.Values `yaml:"template-values"`
}

type Services

type Services []Service

type Settings

type Settings struct {
	Default  Defaults `yaml:"default"`
	Services Services `yaml:"services"`
}

func FromBytes

func FromBytes(data []byte) (*Settings, error)

func Read

func Read(location string, client gh.Client) (*Settings, error)

func ReadFromFile

func ReadFromFile(filename string) (*Settings, error)

func ReadFromGitHub

func ReadFromGitHub(filename string, client gh.Client) (*Settings, error)

func (*Settings) Clean

func (s *Settings) Clean()

func (*Settings) Service

func (s *Settings) Service(name string) *Service

Jump to

Keyboard shortcuts

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