33 lines
1.2 KiB
Go
33 lines
1.2 KiB
Go
package config
|
|
|
|
// Default filesystem locations for pipeline configuration lookup when --config
|
|
// is omitted. Order is highest to lowest precedence.
|
|
const (
|
|
DefaultPipelineConfigPathUsrLocal = "/usr/local/etc/narratio/pipeline.yml"
|
|
DefaultPipelineConfigPathEtc = "/etc/narratio/pipeline.yml"
|
|
DefaultSessionConfigPathLocal = "./session.yml"
|
|
DefaultSessionConfigPathUsrLocal = "/usr/local/etc/narratio/session.yml"
|
|
DefaultSessionConfigPathEtc = "/etc/narratio/session.yml"
|
|
)
|
|
|
|
// DefaultPipelineConfigSearchPaths defines the default search order for
|
|
// pipeline.yml when callers do not provide an explicit path.
|
|
//
|
|
// Keep this in a variable so future defaults can be extended without changing
|
|
// call sites.
|
|
var DefaultPipelineConfigSearchPaths = []string{
|
|
DefaultPipelineConfigPathUsrLocal,
|
|
DefaultPipelineConfigPathEtc,
|
|
}
|
|
|
|
// DefaultSessionConfigSearchPaths defines the default search order for
|
|
// session.yml when callers do not provide an explicit path.
|
|
//
|
|
// Keep this in a variable so future defaults can be extended without changing
|
|
// call sites.
|
|
var DefaultSessionConfigSearchPaths = []string{
|
|
DefaultSessionConfigPathLocal,
|
|
DefaultSessionConfigPathUsrLocal,
|
|
DefaultSessionConfigPathEtc,
|
|
}
|