Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cryptography ¶
type Cryptography struct {
// contains filtered or unexported fields
}
Cryptography describe the utils to import the private key from file
type Signer ¶
type Signer struct { Cryptography interface { // contains filtered or unexported methods } // contains filtered or unexported fields }
Signer describe the imported private key and token from svc-auth
func GetSigner ¶
func GetSigner(privateKeyLoc string, serviceID string, authenticator string, tokenLifeTimeClockSkew int64) *Signer
GetSigner return a new Signer instance
func (*Signer) GetAuthToken ¶
GetAuthToken returns access token
func (*Signer) InitSigner ¶
func (r *Signer) InitSigner()
InitSigner initial Signer with private key
Click to show internal directories.
Click to hide internal directories.