config

package
v0.0.0-...-425e185 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 32

Documentation

Index

Constants

View Source
const (
	DefaultExpirationBufferInSec = 30
	DefaultRequestTimeout        = 0 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UaaEndpoint                   string `yaml:"uaa_endpoint"`
	ClientName                    string `yaml:"client_name"`
	ClientSecret                  string `yaml:"client_secret"`
	CACerts                       string `yaml:"ca_certs"`
	MaxNumberOfRetries            uint32
	RetryInterval                 time.Duration
	ExpirationBufferInSec         int64
	SkipVerification              bool
	InsecureAllowAnySigningMethod bool
	RequestTimeout                time.Duration
}

func (*Config) CheckCredentials

func (c *Config) CheckCredentials() error

func (*Config) CheckEndpoint

func (c *Config) CheckEndpoint() (*url.URL, error)

Jump to

Keyboard shortcuts

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