Documentation ¶
Index ¶
- Variables
- func ConfigureService()
- func ConnectPersistence()
- func OverrideBoolVariable(key string, DefaultValue bool) bool
- func OverrideFloatVariable(key string, DefaultValue float64) float64
- func OverrideIntegerVariable(key string, DefaultValue int) int
- func OverrideStringVariable(key string, DefaultValue string) string
- type GitEventHookResponse
- type GitHookConfig
- type GitHookEntry
- type GitRepoEntry
- type GoGetGitAPI
- func (api GoGetGitAPI) CreateRegistryEntry(ctx *gin.Context)
- func (api GoGetGitAPI) GetHookEntries(ctx *gin.Context)
- func (api GoGetGitAPI) GetHookEntriesById(ctx *gin.Context)
- func (api GoGetGitAPI) GetHookEntry(ctx *gin.Context)
- func (api GoGetGitAPI) GetRegistryEntries(ctx *gin.Context)
- func (api GoGetGitAPI) GetRegistryEntry(ctx *gin.Context)
- func (api GoGetGitAPI) HandleGitWebHook(ctx *gin.Context)
- func (api GoGetGitAPI) HealthCheck(ctx *gin.Context)
- func (api GoGetGitAPI) RemoveRegistryEntry(ctx *gin.Context)
- func (api GoGetGitAPI) Run()
- type NewGitHookRequest
- type NewRegistryEntry
- type Persistence
- type StandardHTTPResponse
- type StandardJSONResponse
- func (response StandardJSONResponse) FeatureNotSupported(ctx *gin.Context)
- func (response StandardJSONResponse) Forbidden(ctx *gin.Context)
- func (response StandardJSONResponse) InternalServerError(ctx *gin.Context)
- func (response StandardJSONResponse) InvalidJSON(ctx *gin.Context)
- func (response StandardJSONResponse) InvalidRequest(ctx *gin.Context)
- func (response StandardJSONResponse) InvalidRequestBody(ctx *gin.Context)
- func (response StandardJSONResponse) NotFound(ctx *gin.Context)
- func (response StandardJSONResponse) Success(ctx *gin.Context)
- func (response StandardJSONResponse) Unauthorized(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
var ( LogLevels = map[string]log.Level{"DEBUG": log.DebugLevel, "INFO": log.InfoLevel, "WARN": log.WarnLevel} ListenAddress string ListenPort int TokenExpiryMinutes int GitHookSecret string GitHookUrl string RabbitQueueUrl string ApplicationId string BaseApplicationDirectory string PostgresConnection string )
var (
StandardHTTP = StandardJSONResponse{}
)
Functions ¶
func OverrideBoolVariable ¶
Function used to override configuration variables with some value by defaulting from environment variables
func OverrideFloatVariable ¶
Function used to override configuration variables with some value by defaulting from environment variables
func OverrideIntegerVariable ¶
Function used to override configuration variables with some value by defaulting from environment variables
func OverrideStringVariable ¶
Function used to override configuration variables with some value by defaulting from environment variables
Types ¶
type GitEventHookResponse ¶
type GitEventHookResponse struct {
Ref string `json:"ref" binding:"required"`
}
type GitHookConfig ¶
type GitHookEntry ¶
type GitRepoEntry ¶
type GoGetGitAPI ¶
type GoGetGitAPI struct {
// contains filtered or unexported fields
}
func (GoGetGitAPI) CreateRegistryEntry ¶
func (api GoGetGitAPI) CreateRegistryEntry(ctx *gin.Context)
API Handler used to create new registry entries
func (GoGetGitAPI) GetHookEntries ¶
func (api GoGetGitAPI) GetHookEntries(ctx *gin.Context)
API Route used to retrieve all hook entries currently stored in database
func (GoGetGitAPI) GetHookEntriesById ¶
func (api GoGetGitAPI) GetHookEntriesById(ctx *gin.Context)
API route used to retrieve all git hook entries that belong to a particular parent ID
func (GoGetGitAPI) GetHookEntry ¶
func (api GoGetGitAPI) GetHookEntry(ctx *gin.Context)
API Route used to retrieve a particular hook entry by Hook ID
func (GoGetGitAPI) GetRegistryEntries ¶
func (api GoGetGitAPI) GetRegistryEntries(ctx *gin.Context)
API Hander used to get user registry entries
func (GoGetGitAPI) GetRegistryEntry ¶
func (api GoGetGitAPI) GetRegistryEntry(ctx *gin.Context)
API Handler used to get specific registry entry
func (GoGetGitAPI) HandleGitWebHook ¶
func (api GoGetGitAPI) HandleGitWebHook(ctx *gin.Context)
API route used to handle git hooks. Note that only Git Hooks that contain pushes to the master repositrory are handled and sent over the message bus
func (GoGetGitAPI) HealthCheck ¶
func (api GoGetGitAPI) HealthCheck(ctx *gin.Context)
function used as basic health check
func (GoGetGitAPI) RemoveRegistryEntry ¶
func (api GoGetGitAPI) RemoveRegistryEntry(ctx *gin.Context)
API Handler used to remove registry entry
func (GoGetGitAPI) Run ¶
func (api GoGetGitAPI) Run()
type NewGitHookRequest ¶
type NewGitHookRequest struct { Name string `json:"name"` Active bool `json:"active"` Events []string `json:"events"` Config GitHookConfig `json:"config"` }
type NewRegistryEntry ¶
type Persistence ¶
type Persistence struct {
// contains filtered or unexported fields
}
type StandardHTTPResponse ¶
type StandardHTTPResponse interface { Success(ctx *gin.Context) InvalidRequestBody(ctx *gin.Context) InvalidJSON(ctx *gin.Context) InvalidRequest(ctx *gin.Context) NotFound(ctx *gin.Context) Forbidden(ctx *gin.Context) InternalServerError(ctx *gin.Context) }
define interface used to store a collection of standard HTTP responses
type StandardJSONResponse ¶
type StandardJSONResponse struct{}
define set of standard HTTP Responses in JSON format
func (StandardJSONResponse) FeatureNotSupported ¶
func (response StandardJSONResponse) FeatureNotSupported(ctx *gin.Context)
func (StandardJSONResponse) Forbidden ¶
func (response StandardJSONResponse) Forbidden(ctx *gin.Context)
func (StandardJSONResponse) InternalServerError ¶
func (response StandardJSONResponse) InternalServerError(ctx *gin.Context)
func (StandardJSONResponse) InvalidJSON ¶
func (response StandardJSONResponse) InvalidJSON(ctx *gin.Context)
func (StandardJSONResponse) InvalidRequest ¶
func (response StandardJSONResponse) InvalidRequest(ctx *gin.Context)
func (StandardJSONResponse) InvalidRequestBody ¶
func (response StandardJSONResponse) InvalidRequestBody(ctx *gin.Context)
func (StandardJSONResponse) NotFound ¶
func (response StandardJSONResponse) NotFound(ctx *gin.Context)
func (StandardJSONResponse) Success ¶
func (response StandardJSONResponse) Success(ctx *gin.Context)
func (StandardJSONResponse) Unauthorized ¶
func (response StandardJSONResponse) Unauthorized(ctx *gin.Context)