renamehttp

package
v1.172.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func New

func New(deps Deps) *Handler

New builds the handler.

func (*Handler) Register

func (h *Handler) Register(mux *http.ServeMux, wrap func(http.Handler) http.Handler)

Register mounts the routes behind wrap, the portal's authentication.

Jump to

Keyboard shortcuts

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