requested

package
v0.0.0-...-365054f Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider defines the requested provider structure.

func NewRequestedProvider

func NewRequestedProvider(client *requests.HTTPClient, policyURL string) *Provider

NewRequestedProvider creates a policy provider

func (*Provider) HasDNSRules

func (o *Provider) HasDNSRules() bool

HasDNSRules returns if dns rules exist. Currently unsupported with this implemenetation

func (*Provider) IsHostAllowed

func (o *Provider) IsHostAllowed(host string) bool

IsHostAllowed returns if provided host is allowed. Currently unsupported with this implemenetation

func (*Provider) IsIdentityAllowed

func (o *Provider) IsIdentityAllowed(identity identity.Identity) bool

IsIdentityAllowed returns if provided identity exists in any access policy.

Jump to

Keyboard shortcuts

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