util

package
v0.0.0-...-0004090 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 14 Imported by: 1

Documentation

Overview

Copyright (c) 2022 Skyflow, Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExpired

func IsExpired(tokenString string) bool

func IsValid deprecated

func IsValid(tokenString string) bool

Deprecated: Instead use IsExpired

Types

type ResponseToken

type ResponseToken struct {
	AccessToken string `json:"accessToken"`
	TokenType   string `json:tokenType`
}

func GenerateBearerToken

func GenerateBearerToken(filePath string) (*ResponseToken, *errors.SkyflowError)

GenerateBearerToken - Generates a Service Account Token from the given Service Account Credential file with a default timeout of 60minutes.

func GenerateBearerTokenFromCreds

func GenerateBearerTokenFromCreds(credentials string) (*ResponseToken, *errors.SkyflowError)

func GenerateToken deprecated

func GenerateToken(filePath string) (*ResponseToken, *errors.SkyflowError)

Deprecated: Instead use GenerateBearerToken

Jump to

Keyboard shortcuts

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