package
0.0.0-20231229192951-61ad96431bc0
Repository: https://github.com/gbolo/aws-power-toggle.git
Documentation: pkg.go.dev
# Functions
ComputeID returns the first 12 characters from a SHA1 hash of the combined input string(s).
ConfigInit instantiates and validates the configuration options optionally it can print out a configuration summary.
PrintVersion prints the current version information to stdout.
StartBackendDeamon Blocking function that starts the backend process.
StartPoller is an infinite loop which periodically polls AWS to refresh the cache.
# Constants
APIVersion defines the compatability version of the API and is appended to each API route.
ASGLabel is used to identify an ASG instance.
EnvStateChanging means that AT LEAST ONE instance for an env is NOT in a "running" state or "stopped" state.
EnvStateMixed means that instances for an env are in EITHER "stopped" or "running" state.
EnvStateRunning means that ALL instances for an env are in "running" state.
EnvStateStopped means that ALL instances for an env are in "stopped" state.
# Type aliases
Routes holds a list of Routes.