Documentation
¶
Overview ¶
Copyright (c) 2022 Skyflow, Inc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.