Documentation
¶
Overview ¶
Package runtime serves the endpoints available on every node, whatever its instance mode. It holds the runtime write surface and never the admin one.
Index ¶
- Constants
- type Handler
- func (h *Handler) ClearGroupUpdatesOverride(ctx echo.Context, _ string, groupID string) error
- func (h *Handler) GetApp(ctx echo.Context, appIDorProductID string) error
- func (h *Handler) GetChannel(ctx echo.Context, _ string, channelID string) error
- func (h *Handler) GetGroup(ctx echo.Context, _ string, groupID string) error
- func (h *Handler) GetGroupInstanceStats(ctx echo.Context, _ string, groupID string, ...) error
- func (h *Handler) GetGroupInstances(ctx echo.Context, appIDorProductID string, groupID string, ...) error
- func (h *Handler) GetGroupInstancesCount(ctx echo.Context, appIDorProductID string, groupID string, ...) error
- func (h *Handler) GetGroupStatusTimeline(ctx echo.Context, _ string, groupID string, ...) error
- func (h *Handler) GetGroupVersionBreakdown(ctx echo.Context, _ string, groupID string) error
- func (h *Handler) GetGroupVersionTimeline(ctx echo.Context, _ string, groupID openapi_types.UUID, ...) error
- func (h *Handler) GetInstance(ctx echo.Context, appIDorProductID string, _ string, instanceID string) error
- func (h *Handler) GetInstanceStatusHistory(ctx echo.Context, appIDorProductID string, groupID string, instanceID string, ...) error
- func (h *Handler) GetPackage(ctx echo.Context, _ string, packageID string) error
- func (h *Handler) GetPackageFloorChannels(ctx echo.Context, _ string, packageID string) error
- func (h *Handler) Omaha(ctx echo.Context) error
- func (h *Handler) PaginateActivity(ctx echo.Context, params codegen.PaginateActivityParams) error
- func (h *Handler) PaginateApps(ctx echo.Context, params codegen.PaginateAppsParams) error
- func (h *Handler) PaginateChannelFloors(ctx echo.Context, channelID string, params codegen.PaginateChannelFloorsParams) error
- func (h *Handler) PaginateChannels(ctx echo.Context, appIDorProductID string, ...) error
- func (h *Handler) PaginateGroups(ctx echo.Context, appIDorProductID string, params codegen.PaginateGroupsParams) error
- func (h *Handler) PaginatePackages(ctx echo.Context, appIDorProductID string, ...) error
- func (h *Handler) UpdateInstance(ctx echo.Context, instanceID string) error
Constants ¶
const UpdateMaxRequestSize = 64 * 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves the endpoints that read, or write runtime-owned tables, including the Omaha entry point.
func New ¶
func New(runtimeSvc *apiruntime.Service, conf *config.Config) *Handler
New creates the handler for the endpoints served on every node.
func (*Handler) ClearGroupUpdatesOverride ¶
ClearGroupUpdatesOverride releases the safe-mode brake this node tripped for itself. It writes group_local only, leaving the admin default on groups, which a control node replicates out, untouched.
func (*Handler) GetChannel ¶
func (*Handler) GetGroupInstanceStats ¶
func (*Handler) GetGroupInstances ¶
func (*Handler) GetGroupInstancesCount ¶
func (*Handler) GetGroupStatusTimeline ¶
func (*Handler) GetGroupVersionBreakdown ¶
func (*Handler) GetGroupVersionTimeline ¶
func (h *Handler) GetGroupVersionTimeline(ctx echo.Context, _ string, groupID openapi_types.UUID, params codegen.GetGroupVersionTimelineParams) error
func (*Handler) GetInstance ¶
func (*Handler) GetInstanceStatusHistory ¶
func (*Handler) GetPackage ¶
func (*Handler) GetPackageFloorChannels ¶
GetPackageFloorChannels handles requests for channels where a package is a floor
func (*Handler) PaginateActivity ¶
func (*Handler) PaginateApps ¶
func (*Handler) PaginateChannelFloors ¶
func (h *Handler) PaginateChannelFloors(ctx echo.Context, channelID string, params codegen.PaginateChannelFloorsParams) error
PaginateChannelFloors handles paginated requests for channel floor packages