core_config

package
v0.0.0-...-9d86056 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BluemixConfigData

type BluemixConfigData struct {
	CLIInfoEndpoint          string
	CLIDownloadPage          string
	CLILatestVersion         string
	MinCLIVersion            string
	MinRecommendedCLIVersion string
	PluginRepos              []models.PluginRepo
	Locale                   string
	Trace                    string
	ColorEnabled             string
	HTTPTimeout              int
	CheckCLIVersionDisabled  bool
	UsageStatsDisabled       bool
	Region                   string
}

type ReadWriter

type ReadWriter interface {
	Reader

	ReloadCFConfig()
	SetAPIVersion(string)
	SetAPIEndpoint(string)
	SetMinRecommendedCLIVersion(string)
	SetAuthenticationEndpoint(string)
	SetLoggregatorEndpoint(string)
	SetDopplerEndpoint(string)
	SetUaaEndpoint(string)
	SetRoutingAPIEndpoint(string)
	SetSSHOauthClient(string)
	SetAccessToken(string)
	SetRefreshToken(string)
	SetOrganizationFields(models.OrganizationFields)
	SetSpaceFields(models.SpaceFields)
	SetSSLDisabled(bool)

	SetCLIInfoEndpoint(string)
	SetCLIDownloadPage(string)
	SetCLILatestVersion(string)
	SetMinCLIVersion(string)
	SetPluginRepo(models.PluginRepo)
	UnSetPluginRepo(string)
	SetLocale(string)
	SetTrace(string)
	SetColorEnabled(string)
	SetHTTPTimeout(int)
	SetCheckCLIVersionDisabled(bool)
	SetUsageStatsDisabled(bool)
	SetRegion(string)
}

func NewCoreConfig

func NewCoreConfig(errHandler func(error)) ReadWriter

func NewCoreConfigFromPath

func NewCoreConfigFromPath(cfConfigPath string, bxConfigPath string, errHandler func(error)) ReadWriter

func NewCoreConfigFromPersistor

func NewCoreConfigFromPersistor(cfPersistor cfconfiguration.Persistor, bxPersistor configuration.Persistor, errHandler func(error)) ReadWriter

type Reader

type Reader interface {
	// cf
	APIVersion() string
	APIEndpoint() string
	HasAPIEndpoint() bool
	Domain() string

	AuthenticationEndpoint() string
	LoggregatorEndpoint() string
	DopplerEndpoint() string
	UaaEndpoint() string
	RoutingAPIEndpoint() string
	AccessToken() string
	SSHOAuthClient() string
	RefreshToken() string

	OrganizationFields() models.OrganizationFields
	HasOrganization() bool

	SpaceFields() models.SpaceFields
	HasSpace() bool

	Username() string
	UserGUID() string
	UserEmail() string
	IsLoggedIn() bool

	IsSSLDisabled() bool

	// bx
	IsMinCLIVersion(string) bool
	MinCLIVersion() string
	MinRecommendedCLIVersion() string

	CLIInfoEndpoint() string
	CLIDownloadPage() string
	CLILatestVersion() string

	PluginRepos() []models.PluginRepo
	PluginRepo(string) (models.PluginRepo, bool)

	HTTPTimeout() int
	Trace() string

	ColorEnabled() string

	Locale() string

	CheckCLIVersionDisabled() bool

	UsageStatsDisabled() bool

	Region() string
}

Jump to

Keyboard shortcuts

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