File: errors.go

package info (click to toggle)
golang-github-spiffe-go-spiffe 2.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,116 kB
  • sloc: makefile: 157
file content (15 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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")
)