systemblueprints

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyExclusions

func ApplyExclusions(
	all []api.Blueprint,
	excludeDeep []string,
	excludeSchema []string,
	skipSystemBlueprints bool,
	skipSystemBlueprintProperties bool,
) (iterList, dataList []api.Blueprint)

ApplyExclusions filters blueprints for iteration and output. When skipSystemBlueprints is true and skipSystemBlueprintProperties is false, known system blueprint schemas are replaced in dataList by minimal custom property patches.

func BlueprintWithRelations added in v0.3.7

func BlueprintWithRelations(bp api.Blueprint, kept map[string]interface{}) api.Blueprint

BlueprintWithRelations returns a shallow copy of bp with relations replaced by kept, or with relations removed when kept is nil or empty.

func CustomPatch

func CustomPatch(bp api.Blueprint) api.Blueprint

CustomPatch returns a minimal blueprint containing only custom schema additions for known system blueprints.

func CustomPatchEqual

func CustomPatchEqual(patch, current api.Blueprint) bool

CustomPatchEqual compares a minimal custom system blueprint patch with a full current blueprint by checking only fields present in the patch.

func FilterManagedRelations added in v0.3.7

func FilterManagedRelations(blueprintID string, relations map[string]interface{}) (kept map[string]interface{}, ignoredKeys []string)

FilterManagedRelations removes relation definitions that are owned by Port for a known system blueprint. The ignored relation keys are sorted for stable CLI output and tests.

func IsCustomPatch

func IsCustomPatch(bp api.Blueprint) bool

IsCustomPatch returns true when a blueprint is a minimal patch for a known system blueprint rather than a full blueprint schema.

func IsKnown

func IsKnown(identifier string) bool

IsKnown returns true for system blueprints whose Port-managed fields are known well enough to preserve only custom schema additions.

func PrefersPatchUpdate added in v0.3.7

func PrefersPatchUpdate(identifier string) bool

PrefersPatchUpdate returns true when updates for this blueprint should be sent as partial patches instead of full replacement-style updates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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