nmpolicy

package
v0.79.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateState

The method generates the state using the default NMPolicyGenerator

func GenerateStateWithStateGenerator

The method generates the state using NMPolicyGenerator.GenerateState and then converts the returned value to the match the enactment api

Types

type GenerateStateWithNMPolicy

type GenerateStateWithNMPolicy struct{}

func (GenerateStateWithNMPolicy) GenerateState

func (GenerateStateWithNMPolicy) GenerateState(
	nmpolicySpec nmpolicytypes.PolicySpec,
	currentState []byte,
	cache nmpolicytypes.CachedState,
) (nmpolicytypes.GeneratedState, error)

type NMPolicyGenerator

type NMPolicyGenerator interface {
	GenerateState(
		nmpolicySpec nmpolicytypes.PolicySpec,
		currentState []byte,
		cache nmpolicytypes.CachedState,
	) (nmpolicytypes.GeneratedState, error)
}

Jump to

Keyboard shortcuts

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