Documentation
¶
Index ¶
- Variables
- func AddPostAuthErrorHook(f func(r *http.Request, e error))
- func AddPostAuthHook(f func(r *http.Request, s *http.Response))
- func ClearAccountManagementAuthenticationToken() error
- func ClearApiToken() error
- func ClearCustomerToken() error
- func DisableAutoLogin() error
- func EnableAutoLogin() error
- func GetAuthenticationCacheDirectory() string
- func Initialize()
- func InternalImplicitAuthentication(args []string) error
- func IsAccountManagementAuthenticationTokenSet() bool
- func IsApiTokenSet() bool
- func IsAutoLoginEnabled() bool
- func IsCustomerTokenSet() bool
- func SaveAccountManagementAuthenticationToken(response AccountManagementAuthenticationTokenStruct)
- func SaveApiToken(bearerToken *ApiTokenResponse)
- func SaveCustomerToken(response CustomerTokenResponse)
- type AccountManagementAuthenticationTokenResponse
- type AccountManagementAuthenticationTokenStruct
- type ApiTokenResponse
- type CustomerTokenEpccCliAdditionalInfo
- type CustomerTokenResponse
- type CustomerTokenStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var HttpClient = &http.Client{ Timeout: time.Second * 60, }
Functions ¶
func AddPostAuthErrorHook ¶ added in v0.10.1
func AddPostAuthHook ¶ added in v0.10.1
func ClearAccountManagementAuthenticationToken ¶ added in v0.9.0
func ClearAccountManagementAuthenticationToken() error
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 Initialize ¶ added in v0.13.2
func Initialize()
Initialize checks environment variables and configures the HTTP client
func InternalImplicitAuthentication ¶ added in v0.12.0
func IsAccountManagementAuthenticationTokenSet ¶ added in v0.9.0
func IsAccountManagementAuthenticationTokenSet() bool
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 SaveAccountManagementAuthenticationToken ¶ added in v0.9.0
func SaveAccountManagementAuthenticationToken(response AccountManagementAuthenticationTokenStruct)
func SaveApiToken ¶ added in v0.8.1
func SaveApiToken(bearerToken *ApiTokenResponse)
func SaveCustomerToken ¶ added in v0.8.1
func SaveCustomerToken(response CustomerTokenResponse)
Types ¶
type AccountManagementAuthenticationTokenResponse ¶ added in v0.9.0
type AccountManagementAuthenticationTokenResponse struct {
Data []AccountManagementAuthenticationTokenStruct `json:"data"`
}
type AccountManagementAuthenticationTokenStruct ¶ added in v0.9.0
type AccountManagementAuthenticationTokenStruct struct {
Type string `json:"type"`
AccountName string `json:"account_name"`
AccountId string `json:"account_id"`
Expires string `json:"expires"`
Token string `json:"token"`
}
func GetAccountManagementAuthenticationToken ¶ added in v0.9.0
func GetAccountManagementAuthenticationToken() *AccountManagementAuthenticationTokenStruct
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 ¶
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.