nmpolicy

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateState

func GenerateState(policySpec types.PolicySpec,
	currentState []byte, cachedState types.CachedState) (generatedState types.GeneratedState, err error)

GenerateState creates a NMPolicy state based on the given input data: - NMPolicy spec. - NMState state, representing a given current state. - Cache state which includes (already resolved) named captures.

GenerateState returns a generated state which includes:

  • Desired State: The NMState state which has been built by the policy.
  • Cache: Named NMState states which have been resolved by the policy. Can be saved for use as cache data (passed as input).
  • Meta Info: Extended information about the generated state (e.g. the policy version).

On failure, an error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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