Documentation
¶
Index ¶
Constants ¶
const OTLPHeadersFile = "otlp-headers"
OTLPHeadersFile is shared so serve, env and doctor agree on one name and format.
Variables ¶
var OTLPHeadersFormat = regexp.MustCompile(`^authorization=Bearer ([0-9a-f]{64})\n$`)
Functions ¶
func EnsureDir ¶
EnsureDir refuses wider modes rather than chmod, so a user's choice is never silently changed.
func ReadOTLPHeaders ¶ added in v0.2.1
ReadOTLPHeaders checks that <dir>/otlp-headers is 0600 or stricter and returns its bearer token.
Types ¶
This section is empty.