MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / WithAllowedHostnames

Function WithAllowedHostnames

pkg/policies/engine/engine.go:70–74  ·  view source on GitHub ↗

WithAllowedHostnames sets the list of allowed hostnames for HTTP requests User-provided hostnames are appended to BaseAllowedHostnames

(hostnames ...string)

Source from the content-addressed store, hash-verified

68// WithAllowedHostnames sets the list of allowed hostnames for HTTP requests
69// User-provided hostnames are appended to BaseAllowedHostnames
70func WithAllowedHostnames(hostnames ...string) Option {
71 return func(opts *Options) {
72 opts.AllowedHostnames = append(opts.AllowedHostnames, hostnames...)
73 }
74}
75
76// WithIncludeRawData sets whether to include raw input/output data in results
77func WithIncludeRawData(include bool) Option {

Callers 3

executeScriptMethod · 0.92
TestNewEngineFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestNewEngineFunction · 0.74