package
0.3.0
Repository: https://github.com/tinyci/ci-agents.git
Documentation: pkg.go.dev

# Functions

CreateTracer creates an opentracing-compatible jaegertracing client.
IsOwnerRepo is a predicate to determine whether or not a github repo name is valid.
IsSHA detects if the string looks like a real SHA1 digest or not.
JSONContext provides an easy method to extract json from gin parameters.
JSONIO is a copy function that uses JSON as an intermediary.
OwnerRepo returns the owner and repository parts of a github full repository name.
QualifyBranch corrects branch data to reflect our internal ref-type/ref-name strategy for tracking branches.
ScopePagination applies constraints to pagination; it sets a maximum and a default if not supplied to perPage.
ScopePaginationInt applies constraints to pagination; it sets a maximum and a default if not supplied to perPage.
SetUpGRPCTracing configures grpc dial functions for tracing.
WrapError wraps an error with fmt.Error.

# Constants

MaxPerPage is the maximum size of a single page that tinyCI will generate when rendering responses.

# Variables

ErrInvalidAuth is for authentication events that do not succeed.
ErrInvalidCharacters occurs when one of "%><$." is found in either Owner or repo.
ErrNotFound is a generic error for things that don't exist.
ErrRunCanceled is thrown to github when the run is canceled.