Documentation
¶
Index ¶
- Constants
- Variables
- func GetFileContents(proj *brigade.Project, ref, path string) ([]byte, error)
- func GetLastCommit(proj *brigade.Project, ref string) (string, error)
- func GetRepoStatus(proj *brigade.Project, ref string) (*github.RepoStatus, error)
- func NewDockerPushHook(s storage.Store) gin.HandlerFunc
- func NewGithubHook(s storage.Store, authors []string) gin.HandlerFunc
- func SHA1HMAC(salt, message []byte) string
Constants ¶
View Source
const StatusContext = "brigade"
StatusContext names the context for a particular status message.
Variables ¶
View Source
var ( StatePending = "pending" StateFailure = "failure" StateError = "error" StateSuccess = "success" )
State names for GitHub status
Functions ¶
func GetFileContents ¶
GetFileContents returns the contents for a particular file in the project.
func GetLastCommit ¶
GetLastCommit gets the last commit on the give reference (branch name or tag).
func GetRepoStatus ¶
GetRepoStatus gets the Brigade repository status. The ref can be a SHA or a branch or tag.
func NewDockerPushHook ¶
NewDockerPushHook creates a new Docker Push handler for webhooks.
func NewGithubHook ¶
NewGithubHook creates a GitHub webhook handler.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.