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.
Click to show internal directories.
Click to hide internal directories.