config

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	BindPFlag(key string, flag *pflag.Flag) error
	GetString(key string) string
	GetInt(key string) int
	GetBool(key string) bool
	GetStringMap(key string) map[string]interface{}
	GetStringMapString(key string) map[string]string
	GetStringSlice(key string) []string
	Get(key string) interface{}
	Set(key string, value interface{})
	IsSet(key string) bool
}

Provider provides the configuration settings for Kosher

type Settings

type Settings struct {
	Environments Provider
	Pages        Provider
	Selectors    Provider
	Settings     Provider
	FileSystem   *fs.Fs
}

Settings wraps references to all setting providers required by Kosher

func NewSettings

func NewSettings(fs *fs.Fs) *Settings

NewSettings attempts to build a Settings object based on the given Fs object

func (*Settings) GetEnvironmentBaseURL

func (s *Settings) GetEnvironmentBaseURL() string

GetEnvironmentBaseURL returns the base URL for the environment of the current run

Jump to

Keyboard shortcuts

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