utils

package
v1.5.10-1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DryRunGlobal = false
)

Functions

func SendResponse

func SendResponse(results *[]externaldata.Item, systemErr string, respCode int, isMutation bool, w http.ResponseWriter) error

sendResponse sends back the response to Gatekeeper.

func SendResponseWithError

func SendResponseWithError(results *[]externaldata.Item, systemErr string, w http.ResponseWriter) error

func SendResponseWithWarning added in v1.5.9

func SendResponseWithWarning(results *[]externaldata.Item, systemErr string, respCode int, isMutation bool, w http.ResponseWriter, warning bool) error

func SetDryRun

func SetDryRun(dryRun bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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