Documentation
¶
Index ¶
- func NormalizeSecret(raw string) string
- func ValidateAlgo(raw string) error
- func ValidateSecret(raw string) error
- type Service
- func (Service) CodeFor(entry model.VaultEntry, now time.Time) (string, error)
- func (Service) CodeWindow(entry model.VaultEntry, now time.Time) *int64
- func (Service) SecondsRemaining(entry model.VaultEntry, now time.Time) *int
- func (s Service) WindowCodes(entry model.VaultEntry, now time.Time) (prev, curr, next string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeSecret ¶
func ValidateAlgo ¶
func ValidateSecret ¶
Types ¶
type Service ¶
type Service struct{}
func (Service) CodeWindow ¶
func (Service) SecondsRemaining ¶
func (Service) WindowCodes ¶
Click to show internal directories.
Click to hide internal directories.