Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller handles HTTP requests for maintaining the state backend itself, rather than any one category of state.
func NewController ¶
func NewController(deps *typesv1.Dependencies) *Controller
NewController creates a new state maintenance Controller instance with the provided dependencies.
func (*Controller) GetCleanupStatusHandler ¶
func (c *Controller) GetCleanupStatusHandler( w http.ResponseWriter, r *http.Request, )
GetCleanupStatusHandler is the handler for the GET /state/housekeeping/{id} endpoint that retrieves the status of a housekeeping operation.
func (*Controller) HousekeepingHandler ¶
func (c *Controller) HousekeepingHandler( w http.ResponseWriter, r *http.Request, )
HousekeepingHandler is the handler for the POST /state/housekeeping endpoint that carries out the upkeep the state backend needs on its own storage, such as reclaiming storage that interrupted writes left behind. What that involves is up to the backend.
A backend that needs no housekeeping still starts an operation, which completes having deleted nothing, so callers need not know which storage engine is in use.