Documentation
¶
Index ¶
- Variables
- func ClearApiToken() error
- func ClearCustomerToken() error
- func DisableAutoLogin() error
- func EnableAutoLogin() error
- func GetAuthenticationCacheDirectory() string
- func IsApiTokenSet() bool
- func IsAutoLoginEnabled() bool
- func IsCustomerTokenSet() bool
- func SaveApiToken(bearerToken *ApiTokenResponse)
- func SaveCustomerToken(response CustomerTokenResponse)
- type ApiTokenResponse
- type CustomerTokenEpccCliAdditionalInfo
- type CustomerTokenResponse
- type CustomerTokenStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var HttpClient = &http.Client{ Timeout: time.Second * 10, }
Functions ¶
func ClearApiToken ¶ added in v0.8.1
func ClearApiToken() error
func ClearCustomerToken ¶ added in v0.8.1
func ClearCustomerToken() error
func DisableAutoLogin ¶ added in v0.8.1
func DisableAutoLogin() error
func EnableAutoLogin ¶ added in v0.8.1
func EnableAutoLogin() error
func GetAuthenticationCacheDirectory ¶ added in v0.8.1
func GetAuthenticationCacheDirectory() string
func IsApiTokenSet ¶ added in v0.8.1
func IsApiTokenSet() bool
func IsAutoLoginEnabled ¶ added in v0.8.1
func IsAutoLoginEnabled() bool
func IsCustomerTokenSet ¶ added in v0.8.1
func IsCustomerTokenSet() bool
func SaveApiToken ¶ added in v0.8.1
func SaveApiToken(bearerToken *ApiTokenResponse)
func SaveCustomerToken ¶ added in v0.8.1
func SaveCustomerToken(response CustomerTokenResponse)
Types ¶
type ApiTokenResponse ¶ added in v0.8.1
type ApiTokenResponse struct { Expires int64 `json:"expires"` ExpiresIn int `json:"expires_in"` Identifier string `json:"identifier"` TokenType string `json:"token_type"` AccessToken string `json:"access_token"` }
func GetApiToken ¶ added in v0.8.1
func GetApiToken() *ApiTokenResponse
func GetAuthenticationToken ¶
func GetAuthenticationToken(useTokenFromProfileDir bool, valuesOverride *url.Values) (*ApiTokenResponse, error)
type CustomerTokenEpccCliAdditionalInfo ¶ added in v0.8.1
type CustomerTokenResponse ¶ added in v0.8.1
type CustomerTokenResponse struct { Data CustomerTokenStruct `json:"data"` AdditionalInfo CustomerTokenEpccCliAdditionalInfo `json:"additional_data"` }
func GetCustomerToken ¶ added in v0.8.1
func GetCustomerToken() *CustomerTokenResponse
Click to show internal directories.
Click to hide internal directories.