endpoints

package
v0.0.0-...-eb352f6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointHandler

type EndpointHandler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(conn db.DBConnector) EndpointHandler

func (*EndpointHandler) GetCommitByRef

func (eh *EndpointHandler) GetCommitByRef(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetCommitsAll

func (eh *EndpointHandler) GetCommitsAll(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetCommitsByProject

func (eh *EndpointHandler) GetCommitsByProject(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetCommitsByService

func (eh *EndpointHandler) GetCommitsByService(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetDeployByRef

func (eh *EndpointHandler) GetDeployByRef(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetDeploysAll

func (eh *EndpointHandler) GetDeploysAll(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetDeploysByProject

func (eh *EndpointHandler) GetDeploysByProject(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetDeploysByService

func (eh *EndpointHandler) GetDeploysByService(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetProjectByID

func (eh *EndpointHandler) GetProjectByID(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetProjectsAll

func (eh *EndpointHandler) GetProjectsAll(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetProjectsByService

func (eh *EndpointHandler) GetProjectsByService(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetServiceByID

func (eh *EndpointHandler) GetServiceByID(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetServicesAll

func (eh *EndpointHandler) GetServicesAll(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetTimelineByRef

func (eh *EndpointHandler) GetTimelineByRef(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetTimelinesAll

func (eh *EndpointHandler) GetTimelinesAll(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetTimelinesByProject

func (eh *EndpointHandler) GetTimelinesByProject(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GetTimelinesByService

func (eh *EndpointHandler) GetTimelinesByService(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) Github

func (eh *EndpointHandler) Github(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) GithubWebhook

func (eh *EndpointHandler) GithubWebhook(w http.ResponseWriter, r *http.Request)

GithubWebhook gets data from the webhook and enters it into the DB

func (*EndpointHandler) GitlabWebhook

func (eh *EndpointHandler) GitlabWebhook(w http.ResponseWriter, r *http.Request)

GitlabWebhook gets data from the webhook and enters it into the DB

func (*EndpointHandler) LubdubHandler

func (eh *EndpointHandler) LubdubHandler(w http.ResponseWriter, r *http.Request)

func (*EndpointHandler) OpenAPIHandler

func (eh *EndpointHandler) OpenAPIHandler(cfg *config.Config) http.HandlerFunc

func (*EndpointHandler) TektonTaskRun

func (eh *EndpointHandler) TektonTaskRun(w http.ResponseWriter, r *http.Request)

type GithubPayload

type GithubPayload *struct {
	App     string `json:"app"`
	Project string `json:"project"`
	Tenant  string `json:"tenant"`
	Repo    string `json:"repo,omitempty"`
	Branch  string `json:"branch"`
	Ref     string `json:"ref"`
}

type PingEvent

type PingEvent struct {
	// Random string of GitHub zen.
	Zen *string `json:"zen,omitempty"`
	// The ID of the webhook that triggered the ping.
	HookID *int64 `json:"hook_id,omitempty"`
	// The webhook configuration.
	Hook *gitlab.Hook `json:"hook,omitempty"`
}

type RepInfo

type RepInfo *struct {
	ID        string     `json:"id"`
	Message   string     `json:"message"`
	Title     string     `json:"title"`
	Timestamp *time.Time `json:"timestamp"`
	URL       string     `json:"url"`
	Author    struct {
		Name  string `json:"name"`
		Email string `json:"email"`
	} `json:"author"`
	Added    []string `json:"added"`
	Modified []string `json:"modified"`
	Removed  []string `json:"removed"`
}

type TektonPayload

type TektonPayload *struct {
	Status      string     `json:"status"`
	Timestamp   *time.Time `json:"timestamp"`
	App         string     `json:"app"`
	Env         string     `json:"env"`
	TriggeredBy string     `json:"triggered_by"`
	Ref         string     `json:"ref,omitempty"`
}

Jump to

Keyboard shortcuts

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