Skip to content
 
 

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

skyflow-go is the Skyflow SDK for the Go programming language.

Usage

Service Account Token Generation

This go module is used to generate service account tokens from service account credentials file which is downloaded upon creation of service account. The token generated from this module is valid for 60 minutes and can be used to make API calls to vault services as well as management API(s) based on the permissions of the service account.

Example:

package main
    
import (
    "fmt"
    saUtil "github.com/skyflowapi/skyflow-go/service-account/util"
)
    
func main() {
    token, err := saUtil.GenerateToken("<path_to_sa_credentials_file>")
    if err != nil {
        panic(err)
    }
    
    fmt.Printf("token %v", *token)
}

About

Skyflow SDK for the Go programming language.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages