util

package
v0.0.0-...-3810402 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const MinimumLegacyTokenLength = 2

Minimum token length for Legacy tokens imported from Automate 1. Technically, there may not be a minimum, but anything less than 2 does not seems reasonable.

View Source
const PRNCount = 20

use as a basis for tokens. Tokens will be base64-encoded.

Variables

This section is empty.

Functions

func GenerateNewToken

func GenerateNewToken() (string, error)

func IsValidLegacyToken

func IsValidLegacyToken(token string) error

func IsValidToken

func IsValidToken(token string) error

func MinimumTokenLength

func MinimumTokenLength() int

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL