settings

package
v0.0.0-...-1c4df2c Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Dirname  = "kep"
	Filename = "settings.yaml"
)
View Source
const (
	ContentRootEnv = "KEP_CONTENT_ROOT"
)
View Source
const (
	PrincipalEnv = "KEP_PRINCIPAL_GITHUB_HANDLE"
)

Variables

This section is empty.

Functions

func FindContentRoot

func FindContentRoot() (string, error)

FindContentRoot looks for a location with the following structure <some-containing-dir>/content/<all-known-sigs> returning `content`

func FindPrincipal

func FindPrincipal() (string, error)

func SaveContentRoot

func SaveContentRoot(p string) error

Types

type Runtime

type Runtime interface {
	Principal() string
	TargetDir() string
	ContentRoot() string
}

func NewRuntime

func NewRuntime(contentRoot string, targetDir string, principal string) Runtime

type User

type User struct {
	ContentRoot  string `yaml:"content_root"`
	GitHubHandle string `yaml:"github_handle"`
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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