config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

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

func LoadFromFile(path string) error

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.

Jump to

Keyboard shortcuts

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