cmd

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OS       = InjectableOS{}
	IOReader = InjectableIOReader{}
)
View Source
var OidcConfigurationRoute = &url.URL{
	Path:    ".well-known/openid-configuration",
	RawPath: ".well-known/openid-configuration",
}

Functions

func RetrieveIssuer

func RetrieveIssuer(ctx context.Context, logger lager.Logger, client *http.Client, oidcProviderURL *url.URL) (string, error)

Types

type Config

type Config struct {
	Logger LagerConfig `yaml:",inline"`
	DryRun bool        `yaml:"dry_run"`

	UAA             uaaConfig  `yaml:"uaa"`
	CloudController ccConfig   `yaml:"cloud_controller"`
	Perm            permConfig `yaml:"perm"`
}

func NewConfig

func NewConfig(r io.Reader) (*Config, error)

type FileOrStringFlag

type FileOrStringFlag string

func (FileOrStringFlag) Bytes

func (f FileOrStringFlag) Bytes(statter Statter, reader FileReader) ([]byte, error)

type FileReader

type FileReader interface {
	ReadFile(string) ([]byte, error)
}

type InjectableIOReader

type InjectableIOReader struct{}

func (InjectableIOReader) ReadFile

func (InjectableIOReader) ReadFile(filename string) ([]byte, error)

type InjectableOS

type InjectableOS struct{}

func (InjectableOS) Stat

func (InjectableOS) Stat(name string) (os.FileInfo, error)

type LagerConfig

type LagerConfig struct {
	LogLevel LogLevel `yaml:"log_level"`
}

func (LagerConfig) Logger

func (f LagerConfig) Logger(component string) (lager.Logger, *lager.ReconfigurableSink)

type LogLevel

type LogLevel string
const (
	LogLevelDebug LogLevel = "debug"
	LogLevelInfo  LogLevel = "info"
	LogLevelError LogLevel = "error"
	LogLevelFatal LogLevel = "fatal"
)

type OIDCProviderConfiguration

type OIDCProviderConfiguration struct {
	Issuer string `json:"issuer"`
}

type Statter

type Statter interface {
	Stat(string) (os.FileInfo, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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