env

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IASConfig

type IASConfig struct {
	ClientID     string
	ClientSecret string
	Domain       string
	URL          string
}

IASConfig represents the parsed credentials from the ias binding

func GetIASConfig

func GetIASConfig() (*IASConfig, error)

GetIASConfig parses the IAS config from the applications environment

func GetIASConfigInUserProvidedService

func GetIASConfigInUserProvidedService(serviceInstanceName string) (*IASConfig, error)

GetIASConfigInUserProvidedService parses the user-provided IAS config from the applications environment

func (IASConfig) GetClientID

func (c IASConfig) GetClientID() string

GetClientID implements the auth.OAuthConfig interface.

func (IASConfig) GetClientSecret

func (c IASConfig) GetClientSecret() string

GetClientSecret implements the auth.OAuthConfig interface.

func (IASConfig) GetDomain

func (c IASConfig) GetDomain() string

GetDomain implements the auth.OAuthConfig interface.

func (IASConfig) GetURL

func (c IASConfig) GetURL() string

GetURL implements the auth.OAuthConfig interface.

type Platform

type Platform string

Platform holds the type string of the platform the application runs on

Jump to

Keyboard shortcuts

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