handler

package
v0.0.0-...-b78584c Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpdateMaxRequestSize      = 64 * 1024
	GithubAccessManagementURL = "https://github.com/settings/apps/authorizations"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(db *api.API, conf *config.Config, auth auth.Authenticator) (*Handler, error)

func (*Handler) CreateApp

func (h *Handler) CreateApp(ctx echo.Context, params codegen.CreateAppParams) error

func (*Handler) CreateChannel

func (h *Handler) CreateChannel(ctx echo.Context, appIDorProductID string) error

func (*Handler) CreateGroup

func (h *Handler) CreateGroup(ctx echo.Context, appIDorProductID string) error

func (*Handler) CreatePackage

func (h *Handler) CreatePackage(ctx echo.Context, appIDorProductID string) error

func (*Handler) DeleteApp

func (h *Handler) DeleteApp(ctx echo.Context, appIDorProductID string) error

func (*Handler) DeleteChannel

func (h *Handler) DeleteChannel(ctx echo.Context, _ string, channelID string) error

func (*Handler) DeleteGroup

func (h *Handler) DeleteGroup(ctx echo.Context, _ string, groupID string) error

func (*Handler) DeletePackage

func (h *Handler) DeletePackage(ctx echo.Context, _ string, packageID string) error

func (*Handler) GetApp

func (h *Handler) GetApp(ctx echo.Context, appIDorProductID string) error

func (*Handler) GetChannel

func (h *Handler) GetChannel(ctx echo.Context, _ string, channelID string) error

func (*Handler) GetConfig

func (h *Handler) GetConfig(ctx echo.Context) error

func (*Handler) GetGroup

func (h *Handler) GetGroup(ctx echo.Context, _ string, groupID string) error

func (*Handler) GetGroupInstanceStats

func (h *Handler) GetGroupInstanceStats(ctx echo.Context, _ string, groupID string, params codegen.GetGroupInstanceStatsParams) error

func (*Handler) GetGroupInstances

func (h *Handler) GetGroupInstances(ctx echo.Context, appIDorProductID string, groupID string, params codegen.GetGroupInstancesParams) error

func (*Handler) GetGroupInstancesCount

func (h *Handler) GetGroupInstancesCount(ctx echo.Context, appIDorProductID string, groupID string, params codegen.GetGroupInstancesCountParams) error

func (*Handler) GetGroupStatusTimeline

func (h *Handler) GetGroupStatusTimeline(ctx echo.Context, _ string, groupID string, params codegen.GetGroupStatusTimelineParams) error

func (*Handler) GetGroupVersionBreakdown

func (h *Handler) GetGroupVersionBreakdown(ctx echo.Context, _ string, groupID string) error

func (*Handler) GetGroupVersionTimeline

func (h *Handler) GetGroupVersionTimeline(ctx echo.Context, _ string, groupID string, params codegen.GetGroupVersionTimelineParams) error

func (*Handler) GetInstance

func (h *Handler) GetInstance(ctx echo.Context, appIDorProductID string, _ string, instanceID string) error

func (*Handler) GetInstanceStatusHistory

func (h *Handler) GetInstanceStatusHistory(ctx echo.Context, appIDorProductID string, groupID string, instanceID string, params codegen.GetInstanceStatusHistoryParams) error

func (*Handler) GetPackage

func (h *Handler) GetPackage(ctx echo.Context, _ string, packageID string) error

func (*Handler) GetPackageFloorChannels

func (h *Handler) GetPackageFloorChannels(ctx echo.Context, _ string, packageID string) error

GetPackageFloorChannels handles requests for channels where a package is a floor

func (*Handler) Health

func (h *Handler) Health(ctx echo.Context) error

func (*Handler) LoginCb

func (h *Handler) LoginCb(ctx echo.Context) error

LoginCb handles OAuth callback for GitHub auth mode OIDC mode: Returns 501 Not Implemented GitHub mode: Processes OAuth callback from GitHub

func (*Handler) LoginWebhook

func (h *Handler) LoginWebhook(ctx echo.Context, _ codegen.LoginWebhookParams) error

LoginWebhook handles webhook events for auth providers OIDC mode: Not used GitHub mode: Processes GitHub webhook events (user/team changes)

func (*Handler) Omaha

func (h *Handler) Omaha(ctx echo.Context) error

func (*Handler) PaginateActivity

func (h *Handler) PaginateActivity(ctx echo.Context, params codegen.PaginateActivityParams) error

func (*Handler) PaginateApps

func (h *Handler) PaginateApps(ctx echo.Context, params codegen.PaginateAppsParams) error

func (*Handler) PaginateChannelFloors

func (h *Handler) PaginateChannelFloors(ctx echo.Context, channelID string, params codegen.PaginateChannelFloorsParams) error

PaginateChannelFloors handles paginated requests for channel floor packages

func (*Handler) PaginateChannels

func (h *Handler) PaginateChannels(ctx echo.Context, appIDorProductID string, params codegen.PaginateChannelsParams) error

func (*Handler) PaginateGroups

func (h *Handler) PaginateGroups(ctx echo.Context, appIDorProductID string, params codegen.PaginateGroupsParams) error

func (*Handler) PaginatePackages

func (h *Handler) PaginatePackages(ctx echo.Context, appIDorProductID string, params codegen.PaginatePackagesParams) error

func (*Handler) RemoveChannelFloor

func (h *Handler) RemoveChannelFloor(ctx echo.Context, channelID string, packageID string) error

RemoveChannelFloor handles removing a package as a floor for a channel

func (*Handler) SetChannelFloor

func (h *Handler) SetChannelFloor(ctx echo.Context, channelID string, packageID string) error

SetChannelFloor handles creating or updating a floor package relationship (idempotent)

func (*Handler) UpdateApp

func (h *Handler) UpdateApp(ctx echo.Context, appIDorProductID string) error

func (*Handler) UpdateChannel

func (h *Handler) UpdateChannel(ctx echo.Context, appIDorProductID string, channelID string) error

func (*Handler) UpdateGroup

func (h *Handler) UpdateGroup(ctx echo.Context, appIDorProductID string, groupID string) error

func (*Handler) UpdateInstance

func (h *Handler) UpdateInstance(ctx echo.Context, instanceID string) error

func (*Handler) UpdatePackage

func (h *Handler) UpdatePackage(ctx echo.Context, appIDorProductID string, packageID string) error

func (*Handler) ValidateToken

func (h *Handler) ValidateToken(ctx echo.Context) error

ValidateToken validates JWT access tokens OIDC mode: Validates JWT access token signature and expiration GitHub mode: Returns 501 Not Implemented

Jump to

Keyboard shortcuts

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