token

package
v1.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Context      map[string]interface{} `json:"context"`
	ErrorCode    string                 `json:"errorCode"`
	ErrorMessage string                 `json:"errorMessage"`
}

Error type to help parse errors of IAM calls

func (*Error) Error

func (ie *Error) Error() string

Error function

type Token

type Token struct {

	// Sets the access token
	AccessToken string `json:"access_token"`

	// Sets the refresh token
	RefreshToken string `json:"refresh_token"`

	// Sets the token type
	TokenType string `json:"token_type"`

	// Sets the expiry timestamp
	ExpiresIn int64 `json:"expires_in"`

	// Sets the expiration timestamp
	Expiration int64 `json:"expiration"`
}

IBMIAMToken holder for the IBM IAM token details

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL