api

package
v0.0.0-...-af9f977 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, incluster bool, onpremHostMapFilePath, externalHostMapFilePath string, statisticsChan chan statswriter.AllowListStatistics, log *slog.Logger) (*chi.Mux, error)

Types

type AdmissionHandler

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

func NewAdmissionHandler

func NewAdmissionHandler(ctx context.Context, inCluster bool, hostMap *hostmap.HostMap, statisticsChan chan statswriter.AllowListStatistics, logger *slog.Logger) (*AdmissionHandler, error)

func (*AdmissionHandler) Validate

func (a *AdmissionHandler) Validate(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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