Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultRemote = "origin" DefaultBranch = "main" )
Variables ¶
This section is empty.
Functions ¶
func ValidateRequest ¶
ValidateRequest validates webhook request, the webhook request should be POST.
Types ¶
type Cmd ¶
func (*Cmd) AddCommand ¶
type Repo ¶
type Repo struct {
URL string
Path string
Branch string
Depth int
Secret string
Submodule git.SubmoduleRescursivity
// contains filtered or unexported fields
}
Repo tells information about the git repository.
type WebHook ¶
type WebHook struct {
Repository string `json:"repo,omitempty"`
Path string `json:"path,omitempty"`
Branch string `json:"branch,omitempty"`
Type string `json:"type,omitempty"`
Secret string `json:"secret,omitempty"`
Depth string `json:"depth,omitempty"`
Submodule bool `json:"submodule,omitempty"`
Command []string `json:"command,omitempty"`
// contains filtered or unexported fields
}
WebHook is the module configuration.
func (*WebHook) CaddyModule ¶
func (*WebHook) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*WebHook) UnmarshlCaddyfile ¶
UnmarshCaddyfile configures the handler directive from Caddyfile. Syntax:
webhook [<url> <path>] {
repo <text>
path <text>
branch <text>
depth <int>
type <text>
secret <text>
command <test>...
submodule
}
Click to show internal directories.
Click to hide internal directories.