endpointurl

package
v0.1.59 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient(timeout time.Duration, allowLocalHTTP bool) *http.Client

func RedirectPolicy

func RedirectPolicy(allowLocalHTTP bool) func(*http.Request, []*http.Request) error

func Validate

func Validate(raw string, allowLocalHTTP bool) error

Validate applies the outbound Agent endpoint policy shared by registration and invocation. Plain HTTP is never accepted unless it targets the local machine and is explicitly enabled.

func ValidateWithResolver

func ValidateWithResolver(ctx context.Context, raw string, allowLocalHTTP bool, resolver Resolver) error

Types

type Resolver

type Resolver interface {
	LookupIPAddr(context.Context, string) ([]net.IPAddr, error)
}

Jump to

Keyboard shortcuts

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