mirror of
https://github.com/hanzoai/metrics.git
synced 2026-10-30 20:03:39 +00:00
Add build tag `disable_grpc_modules` for vmbackup, vmrestore and vmbackupmanager. Binary size increases only for 3MB with it. It's acceptable trade-off for security and feature updates. Related issue: https://github.com/VictoriaMetrics/VictoriaMetrics/issues/8008
16 lines
780 B
Go
16 lines
780 B
Go
package spiffeid
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
errBadTrustDomainChar = errors.New("trust domain characters are limited to lowercase letters, numbers, dots, dashes, and underscores")
|
|
errBadPathSegmentChar = errors.New("path segment characters are limited to letters, numbers, dots, dashes, and underscores")
|
|
errDotSegment = errors.New("path cannot contain dot segments")
|
|
errNoLeadingSlash = errors.New("path must have a leading slash")
|
|
errEmpty = errors.New("cannot be empty")
|
|
errEmptySegment = errors.New("path cannot contain empty segments")
|
|
errMissingTrustDomain = errors.New("trust domain is missing")
|
|
errTrailingSlash = errors.New("path cannot have a trailing slash")
|
|
errWrongScheme = errors.New("scheme is missing or invalid")
|
|
)
|