policystore

package
v0.0.0-...-102eb4e Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name                     string
	Hostname                 string
	GossipInterval           time.Duration
	HTTPPort                 int
	GRPCPort                 int
	MulticastAcceptanceLevel float64
	NumDirectRecipients      int
	CaAddress                string
	DirectoryServerAddress   string
	DirectoryServerGPRCPort  int
	GitRepositoryPath        string
	IfritTCPPort             int
	IfritUDPPort             int
}

type PolicyStoreCore

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

func NewPolicyStoreCore

func NewPolicyStoreCore(cm certManager, dsLookupService datasetLookupService, stateSync stateSyncer, memManager membershipManager, dsManager datasetManager, config *Config) (*PolicyStoreCore, error)

func (*PolicyStoreCore) Handshake

func (ps *PolicyStoreCore) Handshake(ctx context.Context, node *pb.Node) (*pb.HandshakeResponse, error)

Handshake endpoint for nodes to join the network

func (*PolicyStoreCore) IfritAddress

func (ps *PolicyStoreCore) IfritAddress() string

func (*PolicyStoreCore) PolicyStoreConfig

func (ps *PolicyStoreCore) PolicyStoreConfig() Config

func (*PolicyStoreCore) RunPolicyBatcher

func (ps *PolicyStoreCore) RunPolicyBatcher()

Runs the policy batcher. The function blocks until it stops multicasting policy batches.

func (*PolicyStoreCore) Shutdown

func (ps *PolicyStoreCore) Shutdown()

Shut down all resources assoicated with the policy store

func (*PolicyStoreCore) Start

func (ps *PolicyStoreCore) Start() error

func (*PolicyStoreCore) Stop

func (ps *PolicyStoreCore) Stop()

func (*PolicyStoreCore) StopPolicyBatcher

func (ps *PolicyStoreCore) StopPolicyBatcher()

Stops the policy batcher.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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