Documentation
¶
Overview ¶
Package config provides a centralized entrypoint for the application parameters.
Index ¶
Constants ¶
View Source
const ( // ModeService is the service runtime mode. ModeService = "service" // ModeLambdaHTTP is the lambda-http runtime mode. ModeLambdaHTTP = "lambda-http" // ModeLambdaEvent is the lambda-event runtime mode. ModeLambdaEvent = "lambda-event" )
Variables ¶
View Source
var ( // Global is a struct that contains the global configuration. Global global // GitHub is a struct that contains the configuration for GitHub. GitHub github // Promotion is a struct that contains the configuration for promotion. Promotion promotion // Service is a struct that contains the configuration for the service mode. Service service // Lambda is a struct that contains the configuration for the lambda mode. Lambda lambda )
Functions ¶
func LoadFromFile ¶
LoadFromFile loads the configuration from a file.
func SetDefaults ¶
func SetDefaults() error
SetDefaults sets the default values for the configuration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.