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.Organization) (err error)
- func (repo ConfigurationDiskRepository) SetSpace(space cf.Space) (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 { Target string ApiVersion string AuthorizationEndpoint string AccessToken string RefreshToken string Organization cf.Organization Space cf.Space 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.Organization) (err error)
type ConfigurationRepository ¶
Click to show internal directories.
Click to hide internal directories.