Documentation
¶
Index ¶
- func About(c *gin.Context)
- func CreatePipelineReport(c *gin.Context)
- func DeletePipelineReport(c *gin.Context)
- func FindAllPipelineReports(c *gin.Context)
- func FindPipelineReportByID(c *gin.Context)
- func FindSCM(c *gin.Context)
- func FindSCMSummary(c *gin.Context, scmRows []DatabaseSCMRow)
- func Landing(c *gin.Context)
- func Ping(c *gin.Context)
- func UpdatePipelineReport(c *gin.Context)
- type AuthOptions
- type CustomClaims
- type DatabaseSCMRow
- type Options
- type PipelineReportRow
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePipelineReport ¶
CreatePipelineReport insert a new report into the database
func DeletePipelineReport ¶
DeletePipelineReport removes a pipeline report from the database
func FindAllPipelineReports ¶
FindAllPipelineReports returns all pipeline reports from the database
func FindPipelineReportByID ¶
FindPipelineReportByID returns the latest pipeline report for a specific ID
func FindSCMSummary ¶ added in v0.6.0
func FindSCMSummary(c *gin.Context, scmRows []DatabaseSCMRow)
FindSCMSummary returns a summary of all git repositories detected.
func UpdatePipelineReport ¶
Types ¶
type AuthOptions ¶
type AuthOptions struct {
// The issuer of our token.
Issuer string
// The audience of our token.
Audience []string
// Mode enable auth0 authentication
Mode string
}
func (*AuthOptions) Init ¶
func (a *AuthOptions) Init()
type CustomClaims ¶
type CustomClaims struct {
Name string `json:"name"`
Username string `json:"username"`
ShouldReject bool `json:"shouldReject,omitempty"`
}
CustomClaims contains custom data we want from the jwt token.
type DatabaseSCMRow ¶ added in v0.5.0
type DatabaseSCMRow struct {
ID uuid.UUID
Branch string
URL string
Created_at time.Time
Updated_at time.Time
}
DatabaseSCMRow represents a specific scm configuration from the database.
type Options ¶
type Options struct {
Auth AuthOptions
DryRun bool
}
Options holds the server options
Click to show internal directories.
Click to hide internal directories.