namespacegate

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package namespacegate lets create-if-missing clients distinguish a missing namespace from a resource-level authorization denial.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gate

type Gate struct {
	// contains filtered or unexported fields
}

Gate mutates only forbidden responses for named resources in namespaces that the authoritative API confirms do not exist.

func New

func New(namespaces client.Reader, log logr.Logger) *Gate

func (*Gate) ModifyResponse

func (g *Gate) ModifyResponse(response *http.Response) error

ModifyResponse is intended for httputil.ReverseProxy.ModifyResponse. An inability to prove that the namespace is absent preserves the upstream response unchanged.

Jump to

Keyboard shortcuts

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