config

package
v0.0.0-...-7f005ae Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package config manages configurations within the Device Lease service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvVar

func GetEnvVar(ctx context.Context, k string) (string, error)

GetEnvVar tries to get the corresponding environment variable for a string.

func GetSecret

func GetSecret(ctx context.Context, secret string) (string, error)

GetSecret gets the active secret using the LUCI Secrets package.

The secret can be a Google Secret Manager managed secret with proper scheme prefix, or a plain text. If the secret is prefixed with `devsecret`, it must be a base64 encoded string. It should not have padding and be in raw encoded form.

Types

This section is empty.

Jump to

Keyboard shortcuts

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