Documentation ¶
Index ¶
- func DecodeAccessToken(accessToken string) (tokenJson []byte, err error)
- type APIConfigRefresher
- type AuthPrompt
- type AuthPromptType
- type CCInfo
- type ConfigRepository
- func (c *ConfigRepository) AccessToken() (accessToken string)
- func (c *ConfigRepository) ApiEndpoint() (apiEndpoint string)
- func (c *ConfigRepository) ApiVersion() (apiVersion string)
- func (c *ConfigRepository) AsyncTimeout() (timeout uint)
- func (c *ConfigRepository) AuthenticationEndpoint() (authEndpoint string)
- func (c *ConfigRepository) ClearSession()
- func (c *ConfigRepository) Close()
- func (c *ConfigRepository) ColorEnabled() (enabled string)
- func (c *ConfigRepository) DopplerEndpoint() (logEndpoint string)
- func (c *ConfigRepository) HasAPIEndpoint() (hasEndpoint bool)
- func (c *ConfigRepository) HasOrganization() (hasOrg bool)
- func (c *ConfigRepository) HasSpace() (hasSpace bool)
- func (c *ConfigRepository) IsLoggedIn() (loggedIn bool)
- func (c *ConfigRepository) IsMinApiVersion(requiredVersion semver.Version) bool
- func (c *ConfigRepository) IsMinCliVersion(version string) bool
- func (c *ConfigRepository) IsSSLDisabled() (isSSLDisabled bool)
- func (c *ConfigRepository) Locale() (locale string)
- func (c *ConfigRepository) LoggregatorEndpoint() (logEndpoint string)
- func (c *ConfigRepository) MinCliVersion() (minCliVersion string)
- func (c *ConfigRepository) MinRecommendedCliVersion() (minRecommendedCliVersion string)
- func (c *ConfigRepository) OrganizationFields() (org models.OrganizationFields)
- func (c *ConfigRepository) PluginRepos() (repos []models.PluginRepo)
- func (c *ConfigRepository) RefreshToken() (refreshToken string)
- func (c *ConfigRepository) RoutingApiEndpoint() (routingApiEndpoint string)
- func (c *ConfigRepository) SSHOAuthClient() (clientID string)
- func (c *ConfigRepository) SetAccessToken(token string)
- func (c *ConfigRepository) SetApiEndpoint(endpoint string)
- func (c *ConfigRepository) SetApiVersion(version string)
- func (c *ConfigRepository) SetAsyncTimeout(timeout uint)
- func (c *ConfigRepository) SetAuthenticationEndpoint(endpoint string)
- func (c *ConfigRepository) SetColorEnabled(enabled string)
- func (c *ConfigRepository) SetDopplerEndpoint(endpoint string)
- func (c *ConfigRepository) SetLocale(locale string)
- func (c *ConfigRepository) SetLoggregatorEndpoint(endpoint string)
- func (c *ConfigRepository) SetMinCliVersion(version string)
- func (c *ConfigRepository) SetMinRecommendedCliVersion(version string)
- func (c *ConfigRepository) SetOrganizationFields(org models.OrganizationFields)
- func (c *ConfigRepository) SetPluginRepo(repo models.PluginRepo)
- func (c *ConfigRepository) SetRefreshToken(token string)
- func (c *ConfigRepository) SetRoutingApiEndpoint(routingApiEndpoint string)
- func (c *ConfigRepository) SetSSHOAuthClient(clientID string)
- func (c *ConfigRepository) SetSSLDisabled(disabled bool)
- func (c *ConfigRepository) SetSpaceFields(space models.SpaceFields)
- func (c *ConfigRepository) SetTrace(value string)
- func (c *ConfigRepository) SetUaaEndpoint(uaaEndpoint string)
- func (c *ConfigRepository) SpaceFields() (space models.SpaceFields)
- func (c *ConfigRepository) Trace() (trace string)
- func (c *ConfigRepository) UaaEndpoint() (uaaEndpoint string)
- func (c *ConfigRepository) UnSetPluginRepo(index int)
- func (c *ConfigRepository) UserEmail() (email string)
- func (c *ConfigRepository) UserGuid() (guid string)
- func (c *ConfigRepository) Username() (name string)
- type Data
- type EndpointRepository
- type ReadWriter
- type Reader
- type Repository
- type TokenInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAccessToken ¶
Types ¶
type APIConfigRefresher ¶
type APIConfigRefresher struct { EndpointRepo EndpointRepository Config ReadWriter Endpoint string }
func (APIConfigRefresher) LoggregatorEndpoint ¶
func (a APIConfigRefresher) LoggregatorEndpoint(ccInfo *CCInfo, endpoint string) string
func (APIConfigRefresher) Refresh ¶
func (a APIConfigRefresher) Refresh() error
type AuthPrompt ¶
type AuthPrompt struct { Type AuthPromptType DisplayName string }
type AuthPromptType ¶
type AuthPromptType string
const ( AuthPromptTypeText AuthPromptType = "TEXT" AuthPromptTypePassword AuthPromptType = "PASSWORD" )
type CCInfo ¶
type CCInfo struct { ApiVersion string `json:"api_version"` AuthorizationEndpoint string `json:"authorization_endpoint"` LoggregatorEndpoint string `json:"logging_endpoint"` MinCliVersion string `json:"min_cli_version"` MinRecommendedCliVersion string `json:"min_recommended_cli_version"` SSHOAuthClient string `json:"app_ssh_oauth_client"` RoutingApiEndpoint string `json:"routing_endpoint"` }
type ConfigRepository ¶
type ConfigRepository struct {
// contains filtered or unexported fields
}
func (*ConfigRepository) AccessToken ¶
func (c *ConfigRepository) AccessToken() (accessToken string)
func (*ConfigRepository) ApiEndpoint ¶
func (c *ConfigRepository) ApiEndpoint() (apiEndpoint string)
func (*ConfigRepository) ApiVersion ¶
func (c *ConfigRepository) ApiVersion() (apiVersion string)
func (*ConfigRepository) AsyncTimeout ¶
func (c *ConfigRepository) AsyncTimeout() (timeout uint)
func (*ConfigRepository) AuthenticationEndpoint ¶
func (c *ConfigRepository) AuthenticationEndpoint() (authEndpoint string)
func (*ConfigRepository) ClearSession ¶
func (c *ConfigRepository) ClearSession()
func (*ConfigRepository) Close ¶
func (c *ConfigRepository) Close()
func (*ConfigRepository) ColorEnabled ¶
func (c *ConfigRepository) ColorEnabled() (enabled string)
func (*ConfigRepository) DopplerEndpoint ¶
func (c *ConfigRepository) DopplerEndpoint() (logEndpoint string)
func (*ConfigRepository) HasAPIEndpoint ¶
func (c *ConfigRepository) HasAPIEndpoint() (hasEndpoint bool)
func (*ConfigRepository) HasOrganization ¶
func (c *ConfigRepository) HasOrganization() (hasOrg bool)
func (*ConfigRepository) HasSpace ¶
func (c *ConfigRepository) HasSpace() (hasSpace bool)
func (*ConfigRepository) IsLoggedIn ¶
func (c *ConfigRepository) IsLoggedIn() (loggedIn bool)
func (*ConfigRepository) IsMinApiVersion ¶
func (c *ConfigRepository) IsMinApiVersion(requiredVersion semver.Version) bool
func (*ConfigRepository) IsMinCliVersion ¶
func (c *ConfigRepository) IsMinCliVersion(version string) bool
func (*ConfigRepository) IsSSLDisabled ¶
func (c *ConfigRepository) IsSSLDisabled() (isSSLDisabled bool)
func (*ConfigRepository) Locale ¶
func (c *ConfigRepository) Locale() (locale string)
func (*ConfigRepository) LoggregatorEndpoint ¶
func (c *ConfigRepository) LoggregatorEndpoint() (logEndpoint string)
func (*ConfigRepository) MinCliVersion ¶
func (c *ConfigRepository) MinCliVersion() (minCliVersion string)
func (*ConfigRepository) MinRecommendedCliVersion ¶
func (c *ConfigRepository) MinRecommendedCliVersion() (minRecommendedCliVersion string)
func (*ConfigRepository) OrganizationFields ¶
func (c *ConfigRepository) OrganizationFields() (org models.OrganizationFields)
func (*ConfigRepository) PluginRepos ¶
func (c *ConfigRepository) PluginRepos() (repos []models.PluginRepo)
func (*ConfigRepository) RefreshToken ¶
func (c *ConfigRepository) RefreshToken() (refreshToken string)
func (*ConfigRepository) RoutingApiEndpoint ¶
func (c *ConfigRepository) RoutingApiEndpoint() (routingApiEndpoint string)
func (*ConfigRepository) SSHOAuthClient ¶
func (c *ConfigRepository) SSHOAuthClient() (clientID string)
func (*ConfigRepository) SetAccessToken ¶
func (c *ConfigRepository) SetAccessToken(token string)
func (*ConfigRepository) SetApiEndpoint ¶
func (c *ConfigRepository) SetApiEndpoint(endpoint string)
func (*ConfigRepository) SetApiVersion ¶
func (c *ConfigRepository) SetApiVersion(version string)
func (*ConfigRepository) SetAsyncTimeout ¶
func (c *ConfigRepository) SetAsyncTimeout(timeout uint)
func (*ConfigRepository) SetAuthenticationEndpoint ¶
func (c *ConfigRepository) SetAuthenticationEndpoint(endpoint string)
func (*ConfigRepository) SetColorEnabled ¶
func (c *ConfigRepository) SetColorEnabled(enabled string)
func (*ConfigRepository) SetDopplerEndpoint ¶
func (c *ConfigRepository) SetDopplerEndpoint(endpoint string)
func (*ConfigRepository) SetLocale ¶
func (c *ConfigRepository) SetLocale(locale string)
func (*ConfigRepository) SetLoggregatorEndpoint ¶
func (c *ConfigRepository) SetLoggregatorEndpoint(endpoint string)
func (*ConfigRepository) SetMinCliVersion ¶
func (c *ConfigRepository) SetMinCliVersion(version string)
func (*ConfigRepository) SetMinRecommendedCliVersion ¶
func (c *ConfigRepository) SetMinRecommendedCliVersion(version string)
func (*ConfigRepository) SetOrganizationFields ¶
func (c *ConfigRepository) SetOrganizationFields(org models.OrganizationFields)
func (*ConfigRepository) SetPluginRepo ¶
func (c *ConfigRepository) SetPluginRepo(repo models.PluginRepo)
func (*ConfigRepository) SetRefreshToken ¶
func (c *ConfigRepository) SetRefreshToken(token string)
func (*ConfigRepository) SetRoutingApiEndpoint ¶
func (c *ConfigRepository) SetRoutingApiEndpoint(routingApiEndpoint string)
func (*ConfigRepository) SetSSHOAuthClient ¶
func (c *ConfigRepository) SetSSHOAuthClient(clientID string)
func (*ConfigRepository) SetSSLDisabled ¶
func (c *ConfigRepository) SetSSLDisabled(disabled bool)
func (*ConfigRepository) SetSpaceFields ¶
func (c *ConfigRepository) SetSpaceFields(space models.SpaceFields)
func (*ConfigRepository) SetTrace ¶
func (c *ConfigRepository) SetTrace(value string)
func (*ConfigRepository) SetUaaEndpoint ¶
func (c *ConfigRepository) SetUaaEndpoint(uaaEndpoint string)
func (*ConfigRepository) SpaceFields ¶
func (c *ConfigRepository) SpaceFields() (space models.SpaceFields)
func (*ConfigRepository) Trace ¶
func (c *ConfigRepository) Trace() (trace string)
func (*ConfigRepository) UaaEndpoint ¶
func (c *ConfigRepository) UaaEndpoint() (uaaEndpoint string)
func (*ConfigRepository) UnSetPluginRepo ¶
func (c *ConfigRepository) UnSetPluginRepo(index int)
func (*ConfigRepository) UserEmail ¶
func (c *ConfigRepository) UserEmail() (email string)
func (*ConfigRepository) UserGuid ¶
func (c *ConfigRepository) UserGuid() (guid string)
func (*ConfigRepository) Username ¶
func (c *ConfigRepository) Username() (name string)
type Data ¶
type Data struct { ConfigVersion int Target string ApiVersion string AuthorizationEndpoint string LoggregatorEndPoint string DopplerEndPoint string UaaEndpoint string RoutingApiEndpoint string AccessToken string SSHOAuthClient string RefreshToken string OrganizationFields models.OrganizationFields SpaceFields models.SpaceFields SSLDisabled bool AsyncTimeout uint Trace string ColorEnabled string Locale string PluginRepos []models.PluginRepo MinCliVersion string MinRecommendedCliVersion string }
func (*Data) JsonMarshalV3 ¶
func (*Data) JsonUnmarshalV3 ¶
type EndpointRepository ¶
type ReadWriter ¶
type ReadWriter interface { Reader ClearSession() SetApiEndpoint(string) SetApiVersion(string) SetMinCliVersion(string) SetMinRecommendedCliVersion(string) SetAuthenticationEndpoint(string) SetLoggregatorEndpoint(string) SetDopplerEndpoint(string) SetUaaEndpoint(string) SetRoutingApiEndpoint(string) SetAccessToken(string) SetSSHOAuthClient(string) SetRefreshToken(string) SetOrganizationFields(models.OrganizationFields) SetSpaceFields(models.SpaceFields) SetSSLDisabled(bool) SetAsyncTimeout(uint) SetTrace(string) SetColorEnabled(string) SetLocale(string) SetPluginRepo(models.PluginRepo) UnSetPluginRepo(int) }
type Reader ¶
type Reader interface { ApiEndpoint() string ApiVersion() string HasAPIEndpoint() bool 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 IsMinApiVersion(semver.Version) bool IsMinCliVersion(string) bool MinCliVersion() string MinRecommendedCliVersion() string AsyncTimeout() uint Trace() string ColorEnabled() string Locale() string PluginRepos() []models.PluginRepo }
type Repository ¶
type Repository interface { ReadWriter Close() }
func NewRepositoryFromFilepath ¶
func NewRepositoryFromFilepath(filepath string, errorHandler func(error)) Repository
func NewRepositoryFromPersistor ¶
func NewRepositoryFromPersistor(persistor configuration.Persistor, errorHandler func(error)) Repository
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.