cf

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedOrigin

func AllowedOrigin(origin string) bool

AllowedOrigin checks the given origin is whitelisted as an acceptable address.

func BasicEnabled

func BasicEnabled() bool

BasicEnabled returns a boolean indicating whether the system allows basic authentication.

func DatabaseURI

func DatabaseURI(label string) string

DatabaseURI is the URI used to establish the database connection

func FlushStorage

func FlushStorage() bool

FlushStorage returns whether the data should be flushed per use.

func IsTest

func IsTest() bool

IsTest returns if the environment is in a test environment

func PublicAddress

func PublicAddress() string

PublicAddress is a bindable address to host the server

func PublicURI

func PublicURI() string

PublicURI is the public URI accessible to the front end

func SamlEnabled

func SamlEnabled() bool

SamlEnabled returns a boolean indicating whether the system allows SAML authentication.

func TargetAudiences

func TargetAudiences() []string

TargetAudiences which are accepted based on the configured environment.

func TwofactorDisabled

func TwofactorDisabled() bool

TwofactorDisabled returns a boolean indicating whether the system allows for multiple factor authentication.

func TwofactorResettable

func TwofactorResettable() bool

TwofactorResettable returns a boolean indicating whether the system allows for an account to reset the multiple factor authentication assigned to it.

func UserService

func UserService(name, credential string) string

UserService will attempt to pull credential information for a service by service name and credential name.

If there is a VCAP_SERVICES environment variable it will attempt to parse its JSON value.

Otherwise it will look for an environment variable in a normalized name and use its value:

  • app-smtp => APP_SMTP
  • app-postgres => APP_POSTGRES

Types

This section is empty.

Jump to

Keyboard shortcuts

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