env

package
v0.0.0-...-c2ab6e5 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentFromEnvironment

func DeploymentFromEnvironment() datastore.Deployment

DeploymentFromEnvironment loads the deployment details from environment variables. The expected variable is DEP_DEPLOYMENTID.

func RegistrationFromEnvironment

func RegistrationFromEnvironment() datastore.Registration

RegistrationFromEnvironment loads the registration details from environment variables. The expected variables include REG_ISSUER, REG_CLIENTID, REG_KEYSETURI, REG_AUTHTOKENURI, REG_AUTHLOGINURI, REG_TARGETLINKURI.

Types

type Key

type Key struct {
	Private string
}

Key holds the private key read from an environment variable.

func KeyFromEnvironment

func KeyFromEnvironment() Key

KeyFromEnvironment loads the key details from environment variables. The expected variable is KEY_PRIVATE.

Jump to

Keyboard shortcuts

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