utils

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package utils holds shared helpers (validation, retry, parsing).

Package utils provides shared helpers.

Index

Constants

View Source
const MaxParseTTL = 10 * 365 * 24 * time.Hour

MaxParseTTL caps parsed durations (≈10y) to avoid overflow / absurd cert or token lifetimes.

Variables

This section is empty.

Functions

func ParseTTL

func ParseTTL(raw string) (time.Duration, error)

ParseTTL parses duration strings like "8760h", "365d", "30m". Rejects non-positive and over-MaxParseTTL values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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