internal

package
v0.0.0-...-7f5109c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PathParamTenantId    = "tenant-id"
	PathParamWebhookId   = "webhook-id"
	PathParamChangelogId = "changelog-id"
)

Variables

This section is empty.

Functions

func SetupRouter

func SetupRouter(dsc ds.Client, store gcs.Client, sc slack.Client) *gin.Engine

Types

type CreateTenantRequest

type CreateTenantRequest struct {
	Tenant       string `json:"tenant"`
	Email        string `json:"email"`
	Callback     string `json:"callback"`
	SlackChannel string `json:"slack_channel"`
}

type CreateWebhookRequest

type CreateWebhookRequest struct {
	WebhookName string `json:"webhook_name"`
	Owner       string `json:"owner"`
	Repo        string `json:"repo"`
	Branch      string `json:"branch"`
	Path        string `json:"path"`
	Spec        string `json:"spec"`
}

type Handle

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

func NewHandle

func NewHandle(dsc ds.Client, store gcs.Client, sc slack.Client) *Handle

func (*Handle) CreateTenant

func (h *Handle) CreateTenant(c *gin.Context)

func (*Handle) CreateWebhook

func (h *Handle) CreateWebhook(c *gin.Context)

func (*Handle) GetChangelog

func (h *Handle) GetChangelog(c *gin.Context)

func (*Handle) GetWebhooks

func (h *Handle) GetWebhooks(c *gin.Context)

Jump to

Keyboard shortcuts

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