Documentation
¶
Overview ¶
Package auth implements authentication for gortcd.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrStaleNonce means that the nonce value should be refresh. ErrStaleNonce = errors.New("stale nonce") )
Functions ¶
This section is empty.
Types ¶
type NonceAuth ¶ added in v0.15.0
type NonceAuth struct {
// contains filtered or unexported fields
}
NonceAuth is nonce check and rotate implementation.
func NewNonceAuth ¶ added in v0.15.0
NewNonceAuth initializes new nonce manager.
TODO: Run timer that removes old nonces
type Static ¶
type Static struct {
// contains filtered or unexported fields
}
Static implements authentication with pre-defined static list of long-term credentials.
func NewStatic ¶
func NewStatic(credentials []StaticCredential) *Static
NewStatic initializes new static authenticator with list of long-term credentials.
Click to show internal directories.
Click to hide internal directories.