Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionLister ¶
type ConnectionLister interface {
List(ctx context.Context, scope string) ([]configsyncconn.Connection, error)
}
ConnectionLister reads persisted data-plane connection state, optionally filtered by opaque scope.
type ListConnectionsHandler ¶
type ListConnectionsHandler struct {
// contains filtered or unexported fields
}
func NewListConnectionsHandler ¶
func NewListConnectionsHandler(lister ConnectionLister) *ListConnectionsHandler
func (*ListConnectionsHandler) Handle ¶
func (h *ListConnectionsHandler) Handle(c *fiber.Ctx) error
Handle godoc @Summary List config-sync data-plane connections @Description Returns the observed data-plane Sync connections, optionally filtered by opaque scope. Answers "is this data plane online?". @Tags config-sync @Produce json @Security BearerAuth @Param scope query string false "Filter by opaque scope (exact match); omit for all" @Success 200 {object} response.ListConnectionsResponse @Failure 401 {object} httpio.ErrorBody @Failure 500 {object} httpio.ErrorBody @Router /v1/config-sync/connections [get]