gitlabtoken

package
v0.1.18-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunMetadataKey       = "ploy.gitlab_token_hash"
	MissingTokenMessage  = "run requires an ephemeral GitLab token, but the token is no longer available on this server"
	ProvidedTokenContext = "provided GitLab token"
)

Variables

View Source
var ErrMissingToken = errors.New(MissingTokenMessage)

Functions

func Hash

func Hash(token string) string

func HashFromRunStats

func HashFromRunStats(raw []byte) string

func RunStatsWithMarker

func RunStatsWithMarker(hash string) ([]byte, error)

func ValidateRequest

func ValidateRequest(token string) (string, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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