Documentation
¶
Index ¶
- Variables
- func CreateJsonMetadata() string
- func GenerateBearerTokenHelper(credKeys map[string]interface{}, options BearerTokenOptions) (*internalAuthApi.V1GetAuthTokenResponse, *skyflowError.SkyflowError)
- func GenerateSignedDataTokensHelper(clientID, keyID string, pvtKey *rsa.PrivateKey, ...) ([]SignedDataTokensResponse, *skyflowError.SkyflowError)
- func GetBaseURL(urlStr string) (string, *skyflowError.SkyflowError)
- func GetCredentialParams(credKeys map[string]interface{}) (string, string, string, *skyflowError.SkyflowError)
- func GetPrivateKey(credKeys map[string]interface{}) (*rsa.PrivateKey, *skyflowError.SkyflowError)
- func GetPrivateKeyFromPem(pemKey string) (*rsa.PrivateKey, *skyflowError.SkyflowError)
- func GetScopeUsingRoles(roles []string) string
- func GetSignedBearerUserToken(clientID, keyID, tokenURI string, pvtKey *rsa.PrivateKey, ...) (string, *skyflowError.SkyflowError)
- func GetSignedDataTokens(credKeys map[string]interface{}, options SignedDataTokensOptions) ([]SignedDataTokensResponse, *skyflowError.SkyflowError)
- func ParseCredentialsFile(credentialsFilePath string) (map[string]interface{}, *skyflowError.SkyflowError)
- func ParsePrivateKey(pemKey string) (*rsa.PrivateKey, *skyflowError.SkyflowError)
Constants ¶
This section is empty.
Variables ¶
View Source
var GetBaseURLHelper = GetBaseURL
Functions ¶
func CreateJsonMetadata ¶
func CreateJsonMetadata() string
func GenerateBearerTokenHelper ¶
func GenerateBearerTokenHelper(credKeys map[string]interface{}, options BearerTokenOptions) (*internalAuthApi.V1GetAuthTokenResponse, *skyflowError.SkyflowError)
GenerateBearerTokenHelper helper functions
func GenerateSignedDataTokensHelper ¶
func GenerateSignedDataTokensHelper(clientID, keyID string, pvtKey *rsa.PrivateKey, options SignedDataTokensOptions, tokenURI string) ([]SignedDataTokensResponse, *skyflowError.SkyflowError)
Generate signed tokens
func GetBaseURL ¶
func GetBaseURL(urlStr string) (string, *skyflowError.SkyflowError)
func GetCredentialParams ¶
func GetCredentialParams(credKeys map[string]interface{}) (string, string, string, *skyflowError.SkyflowError)
Helper for extracting credentials
func GetPrivateKey ¶
func GetPrivateKey(credKeys map[string]interface{}) (*rsa.PrivateKey, *skyflowError.SkyflowError)
func GetPrivateKeyFromPem ¶
func GetPrivateKeyFromPem(pemKey string) (*rsa.PrivateKey, *skyflowError.SkyflowError)
func GetScopeUsingRoles ¶
func GetSignedBearerUserToken ¶
func GetSignedBearerUserToken(clientID, keyID, tokenURI string, pvtKey *rsa.PrivateKey, options BearerTokenOptions) (string, *skyflowError.SkyflowError)
func GetSignedDataTokens ¶
func GetSignedDataTokens(credKeys map[string]interface{}, options SignedDataTokensOptions) ([]SignedDataTokensResponse, *skyflowError.SkyflowError)
Generate and Sign Tokens
func ParseCredentialsFile ¶
func ParseCredentialsFile(credentialsFilePath string) (map[string]interface{}, *skyflowError.SkyflowError)
Helper function to read and parse credentials from file
func ParsePrivateKey ¶
func ParsePrivateKey(pemKey string) (*rsa.PrivateKey, *skyflowError.SkyflowError)
ParsePrivateKey Parse RSA Private Key from PEM
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.