Documentation
¶
Index ¶
- Variables
- func BuildAgentToken(credentialID, secret string) string
- func GenerateCredential() (credentialID, secret, token string, err error)
- func GeneratePairingToken() (string, error)
- func GenerateSecret() (string, error)
- func GenerateUUID() (string, error)
- func HashSecret(secret string) string
- func LooksLikeUUID(value string) bool
- func ParseAgentToken(token string) (credentialID, secret string, err error)
- type RateLimiter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidAgentToken = errors.New("invalid agent token")
Functions ¶
func BuildAgentToken ¶
func GenerateCredential ¶
func GeneratePairingToken ¶
GeneratePairingToken returns a UUID v4 suitable for a short-lived, single-use enrollment URL.
func GenerateSecret ¶
func GenerateUUID ¶
func HashSecret ¶
func LooksLikeUUID ¶
func ParseAgentToken ¶
Types ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewRateLimiter ¶
func NewRateLimiter(limit int, window time.Duration) *RateLimiter
Click to show internal directories.
Click to hide internal directories.