Documentation
¶
Index ¶
- func Bool(key string, def bool) bool
- func Duration(key string, def time.Duration) time.Duration
- func FirstStringOrSecretFile(keys []string, def string) (string, error)
- func Float(key string, def float64) float64
- func Int(key string, def int) int
- func List(key string) []string
- func ListWithFallback(key, fallback string) []string
- func LoadDotenv(opts DotenvOptions) error
- func LoadDotenvFile(path string, required bool, strict bool) error
- func Map(key string) map[string]string
- func ServiceDotenvPath(serviceName string) string
- func String(key, def string) string
- func StringAny(keys ...string) string
- func StringOrFile(key, def string) string
- func StringOrSecretFile(key, def string) (string, error)
- func StringRaw(key, def string) string
- type DotenvOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstStringOrSecretFile ¶
func ListWithFallback ¶
func LoadDotenv ¶
func LoadDotenv(opts DotenvOptions) error
LoadDotenv는 service env file과 local dotenv 후보를 옵션에 맞춰 로드한다.
func LoadDotenvFile ¶
LoadDotenvFile는 dotenv 파일을 로드하며 strict 모드에서 symlink와 world-accessible 파일을 거부한다.
func ServiceDotenvPath ¶
ServiceDotenvPath는 OpenBao Agent dotenv 렌더링 기본 경로를 반환한다.
func StringOrFile ¶
func StringOrSecretFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.