# Packages
SPDX-License-Identifier: Apache-2.0
nolint:dupl // similar code to deploy.go.
# Functions
BuildFromContext retrieves the Build type from the context.
BuildWithContext inserts the Build type to the context.
LogFromContext retrieves the Log type from the context.
LogWithContext inserts the Log type to the context.
NewEventsFromMask is an instatiation function for the Events type that takes in an event mask integer value and populates the nested Events struct.
NewEventsFromSlice is an instantiation function for the Events type that takes in a slice of event strings and populates the nested Events struct.
RepoFromContext retrieves the Repo type from the context.
RepoWithContext inserts the library Repo type to the context.
SecretFromContext retrieves the Secret type from the context.
SecretWithContext inserts the Secret type to the context.
ServiceFromBuildContainer creates a new Service based on a Build and pipeline Container.
ServiceFromContainerEnvironment converts the pipeline Container to a library Service using the container's Environment.
StepFromBuildContainer creates a new Step based on a Build and pipeline Container.
StepFromContainerEnvironment converts the pipeline Container to a library Step using the container's Environment.
StepFromContext retrieves the Step type from the context.
StepWithContext inserts the Step type to the context.
ToString is a helper function to convert the provided interface value to a string.
UserFromContext retrieves the User type from the context.
UserWithContext inserts the User type to the context.
# Structs
Build is the library representation of a build for a pipeline.
BuildExecutable is the library representation of a BuildExecutable.
BuildQueue is the library representation of the builds in the queue.
Deployment is the library representation of a deployment.
Events is the library representation of the various events that generate a webhook from the SCM.
Executor is the library representation of an executor for a worker.
Hook is the library representation of a webhook for a repo.
Log is the library representation of a log for a step in a build.
Pipeline is the library representation of a Pipeline.
QueueInfo is the library representation of a QueueInfo.
Repo is the library representation of a repo.
Schedule is the API representation of a schedule for a repo.
Secret is the library representation of a secret.
Service is the library representation of a service in a build.
Step is the library representation of a step in a build.
Template is the library representation of a template for a pipeline.
Token is the library representation of a token response from server.
User is the library representation of a user.
Worker is the library representation of a worker.