Documentation
¶
Overview ¶
Package renamehttp serves renaming a managed script from the portal (#2875): what a rename changes, said before it is made, and the rename. The owner and administrators rename; anybody else is answered as if the script did not exist, as the other owner routes answer. A request a tool call made to the platform's own API is an agent's, and its rename of a part of a released application waits on a person (409 APPROVAL_REQUIRED).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
type Deps struct {
Renamer *scriptrename.Renamer
// Caller is who made the request, nil for nobody signed in.
Caller func(r *http.Request) *scriptrename.Actor
}
Deps is what the routes use.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves the routes.
func ForPortal ¶
func ForPortal(renamer *scriptrename.Renamer, user func(*http.Request) *scripthttp.PortalIdentity) *Handler
ForPortal is the handler over renamer for the portal's callers.