Documentation
¶
Index ¶
Constants ¶
View Source
const (
NerdTokenEnvVar = "NERD_TOKEN"
)
Variables ¶
This section is empty.
Functions ¶
func DecodeTokenWithKey ¶
func DecodeTokenWithPEM ¶
func DecodeTokenWithPEM(nerdToken, pem string) (*payload.NerdClaims, error)
Types ¶
type NerdAPI ¶
NerdAPI holds a reference to a nerdalize auth token. A credentials provider is needed to provide this value.
func (*NerdAPI) Get ¶
func (n *NerdAPI) Get() (*NerdAPIValue, error)
Get the nerd token. This function checks with the provider whether the token is expired and if so retrieves a new token from the provider.
type NerdAPIValue ¶
type NerdAPIValue struct {
NerdToken string
}
Click to show internal directories.
Click to hide internal directories.