Documentation ¶
Index ¶
- Constants
- func CreateRefreshToken(userID, jwtKey string, currentTime time.Time) (string, error)
- func CreateToken(jwtKey, userID, email, gcToken, providerToken string, currentTime time.Time) (string, error)
- func GenerateRandomString(n int) (string, error)
- func GetExpiredToken() string
- func GetTempFileName(dir string, prefix string, suffix string) (string, error)
- func GetTestRefreshToken() string
- func GetTestToken() string
- func SendInterrupt(c *expect.Console)
- func ValidateListOutput(t *testing.T, expected string, actual string, skipFields []int) (isValid bool)
- type Claims
- type MockCommander
Constants ¶
View Source
const ( MockToken = "this_is_cc_token" MockRefreshToken = "this_is_refresh_token" )
View Source
const (
TestUserID = "3106056c-bdc6-4f06-be33-5056ba745023"
)
Variables ¶
This section is empty.
Functions ¶
func CreateRefreshToken ¶
func CreateToken ¶
func GenerateRandomString ¶
func GetExpiredToken ¶
func GetExpiredToken() string
func GetTempFileName ¶
func GetTestRefreshToken ¶
func GetTestRefreshToken() string
func GetTestToken ¶
func GetTestToken() string
func SendInterrupt ¶
func SendInterrupt(c *expect.Console)
Types ¶
type MockCommander ¶
type MockCommander struct {
// contains filtered or unexported fields
}
func (*MockCommander) GetURL ¶
func (c *MockCommander) GetURL(url string)
func (*MockCommander) Start ¶
func (c *MockCommander) Start() error
Click to show internal directories.
Click to hide internal directories.