policycell

package
v1.17.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const ResourceIDAnonymous = "policy/anonymous"

ResourceIDAnonymous is the anonymous ipcache resource used as a placeholder for policies that allocate CIDRs but do not have an owning resource. (This is only used for policies created by the local API).

Variables

View Source
var Cell = cell.Module(
	"policy",
	"Contains policy rules",

	cell.Provide(newPolicyRepo),
	cell.Provide(newPolicyUpdater),
	cell.Provide(newPolicyImporter),
	cell.Config(defaultConfig),
)

Cell provides the PolicyRepository and PolicyUpdater.

Functions

This section is empty.

Types

type Config

type Config struct {
	PolicyQueueSize uint `mapstructure:"policy-queue-size"`
}

func (Config) Flags

func (def Config) Flags(flags *pflag.FlagSet)

type PolicyImporter

type PolicyImporter interface {
	UpdatePolicy(*policytypes.PolicyUpdate)
}

Jump to

Keyboard shortcuts

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