Documentation ¶
Index ¶
- func ConfigFile() (file string, err error)
- func DecodeTokenInfo(accessToken string) (clearTokenInfo []byte, err error)
- type Configuration
- type ConfigurationDiskRepository
- func (repo ConfigurationDiskRepository) ClearSession() (err error)
- func (repo ConfigurationDiskRepository) ClearTokens() (err error)
- func (repo ConfigurationDiskRepository) Delete()
- func (repo ConfigurationDiskRepository) Get() (c *Configuration, err error)
- func (repo ConfigurationDiskRepository) Save() (err error)
- func (repo ConfigurationDiskRepository) SetOrganization(org cf.OrganizationFields) (err error)
- func (repo ConfigurationDiskRepository) SetSpace(space cf.SpaceFields) (err error)
- type ConfigurationRepository
- type TokenInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFile ¶
Keep this one public for configtest/configuration.go
func DecodeTokenInfo ¶
Types ¶
type Configuration ¶
type Configuration struct { ConfigVersion int Target string ApiVersion string AuthorizationEndpoint string LoggregatorEndPoint string AccessToken string RefreshToken string OrganizationFields cf.OrganizationFields SpaceFields cf.SpaceFields ApplicationStartTimeout time.Duration // will be used as seconds }
func (Configuration) HasOrganization ¶
func (c Configuration) HasOrganization() bool
func (Configuration) HasSpace ¶
func (c Configuration) HasSpace() bool
func (Configuration) IsLoggedIn ¶
func (c Configuration) IsLoggedIn() bool
func (Configuration) UserEmail ¶
func (c Configuration) UserEmail() (email string)
func (Configuration) UserGuid ¶
func (c Configuration) UserGuid() (guid string)
func (Configuration) Username ¶
func (c Configuration) Username() (guid string)
type ConfigurationDiskRepository ¶
type ConfigurationDiskRepository struct{}
func NewConfigurationDiskRepository ¶
func NewConfigurationDiskRepository() (repo ConfigurationDiskRepository)
func (ConfigurationDiskRepository) ClearSession ¶
func (repo ConfigurationDiskRepository) ClearSession() (err error)
func (ConfigurationDiskRepository) ClearTokens ¶
func (repo ConfigurationDiskRepository) ClearTokens() (err error)
func (ConfigurationDiskRepository) Delete ¶
func (repo ConfigurationDiskRepository) Delete()
func (ConfigurationDiskRepository) Get ¶
func (repo ConfigurationDiskRepository) Get() (c *Configuration, err error)
func (ConfigurationDiskRepository) Save ¶
func (repo ConfigurationDiskRepository) Save() (err error)
func (ConfigurationDiskRepository) SetOrganization ¶
func (repo ConfigurationDiskRepository) SetOrganization(org cf.OrganizationFields) (err error)
func (ConfigurationDiskRepository) SetSpace ¶
func (repo ConfigurationDiskRepository) SetSpace(space cf.SpaceFields) (err error)
type ConfigurationRepository ¶
type ConfigurationRepository interface { Get() (config *Configuration, err error) Delete() Save() (err error) ClearTokens() (err error) ClearSession() (err error) SetOrganization(org cf.OrganizationFields) (err error) SetSpace(space cf.SpaceFields) (err error) }
Click to show internal directories.
Click to hide internal directories.