truestedEndpoints

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Instance = createInstance()
)

Functions

This section is empty.

Types

type AllowedEndpoints

type AllowedEndpoints struct {
	AllowedKustoSuffixes  []string
	AllowedKustoHostnames []string
}

type FastSuffixMatcher

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

type MatchRule

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

type TrustedEndpoints

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

func (*TrustedEndpoints) AddTrustedHosts

func (trusted *TrustedEndpoints) AddTrustedHosts(rules []MatchRule, replace bool) error

AddTrustedHosts Add or set a list of trusted endpoints rules

func (*TrustedEndpoints) SetOverridePolicy

func (trusted *TrustedEndpoints) SetOverridePolicy(matcher func(string) bool)

SetOverridePolicy Set a policy to override all other trusted rules

func (*TrustedEndpoints) ValidateTrustedEndpoint

func (trusted *TrustedEndpoints) ValidateTrustedEndpoint(endpoint string, loginEndpoint string) error

ValidateTrustedEndpoint Validates the endpoint uri trusted

type WellKnownKustoEndpointsDataStruct

type WellKnownKustoEndpointsDataStruct struct {
	AllowedEndpointsByLogin map[string]AllowedEndpoints
}

Jump to

Keyboard shortcuts

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