config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG                = "DEBUG"
	TZ                   = "TZ"
	GOOGLE_CLOUD_PROJECT = "GOOGLE_CLOUD_PROJECT"
	GCP_BILLING_TABLE    = "GCP_BILLING_TABLE"
	GCP_BILLING_PROJECT  = "GCP_BILLING_PROJECT"
	DAYS                 = "DAYS"
	IMAGE_FORMAT         = "IMAGE_FORMAT"
	MESSAGE              = "MESSAGE"
	SLACK_TOKEN          = "SLACK_TOKEN"
	SLACK_CHANNEL        = "SLACK_CHANNEL"
	IMAGE_DIR            = "IMAGE_DIR"
)

nolint: revive,stylecheck

Variables

View Source
var ErrFlagOrEnvIsNotEnough = errors.New("config: flag or environment variable is not enough")

Functions

func Branch

func Branch() string

func Check

func Check() error

nolint: cyclop

func Days

func Days() int

func Debug

func Debug() bool

func GCPBillingProject

func GCPBillingProject() string

func GCPBillingTable

func GCPBillingTable() string

func GoogleCloudProject

func GoogleCloudProject() string

func ImageDir

func ImageDir() string

func ImageFormat

func ImageFormat() string

func Load

func Load()

func Message

func Message() string

func Revision

func Revision() string

func SlackChannel

func SlackChannel() string

func SlackToken

func SlackToken() string

func SubcommandVersion

func SubcommandVersion() bool

func TimeZone

func TimeZone() *time.Location

func Timestamp

func Timestamp() string

func Version

func Version() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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