Documentation ¶
Overview ¶
Package context provides gorelease context which is passed through the pipeline.
The context extends the standard library context and add a few more fields and other things, so pipes can gather data provided by previous pipes without really knowing each other.
Index ¶
Constants ¶
View Source
const ( // TokenTypeGitHub defines github as type of the token TokenTypeGitHub tokenType = "github" // TokenTypeGitLab defines gitlab as type of the token TokenTypeGitLab tokenType = "gitlab" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { ctx.Context Config config.Project Env Env Token string TokenType tokenType Git GitInfo Artifacts artifact.Artifacts ReleaseNotes string Version string Snapshot bool SkipPublish bool SkipSign bool SkipValidate bool RmDist bool PreRelease bool Parallelism int Semver Semver }
Context carries along some data through the pipes
func NewWithTimeout ¶
NewWithTimeout new context with the given timeout
Click to show internal directories.
Click to hide internal directories.