provider

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWSProvider = "AWS" // AWS provider key
)

Variables

View Source
var DummmyIP1 = netip.MustParseAddr("192.0.2.1")
View Source
var DummmyIP2 = netip.MustParseAddr("192.0.2.2")

Functions

func Enabled

func Enabled() bool

func GetCidrSet

func GetCidrSet(ctx context.Context, group *api.Groups) ([]netip.Addr, error)

GetCidrSet will return the CIDRRule for the rule using the callbacks that are register in the platform.

func RegisterTestDummyProvider

func RegisterTestDummyProvider()

RegisterTestDummyProvider registers a fake ExternalGroup provider only used for testing.

Types

type GroupProviderFunc

type GroupProviderFunc func(context.Context, *api.Groups) ([]netip.Addr, error)

Jump to

Keyboard shortcuts

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