function

package
Version: v0.0.0-...-f1c27b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Source              = "gitlab-event"
	EventSource         = "System Hook"
	PushEvent           = "push"
	ProjectUpdateEvent  = "project_update"
	ProjectDestroyEvent = "project_destroy"
)

Source name for this function when auditing

Variables

This section is empty.

Functions

func Handle

func Handle(req []byte) string

Handle is the function which accepts events from GitLab and filters them also checks if the repository is installed on the cloud

Types

type GarbageRequest

type GarbageRequest struct {
	Functions []string `json:"functions"`
	Repo      string   `json:"repo"`
	Owner     string   `json:"owner"`
}

type GitLabProjectEvent

type GitLabProjectEvent struct {
	Name              string `json:"Name"`
	PathWithNamespace string `json:"path_with_namespace"`
	ProjectID         int    `json:"project_id"`
}

type GitLabProjectTags

type GitLabProjectTags struct {
	TagList []string `json:"tag_list"`
}

type PureEvent

type PureEvent struct {
	Event string `json:"event_name"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL