Documentation
¶
Index ¶
- func ApplyExclusions(all []api.Blueprint, excludeDeep []string, excludeSchema []string, ...) (iterList, dataList []api.Blueprint)
- func BlueprintWithRelations(bp api.Blueprint, kept map[string]interface{}) api.Blueprint
- func CustomPatch(bp api.Blueprint) api.Blueprint
- func CustomPatchEqual(patch, current api.Blueprint) bool
- func FilterManagedRelations(blueprintID string, relations map[string]interface{}) (kept map[string]interface{}, ignoredKeys []string)
- func IsCustomPatch(bp api.Blueprint) bool
- func IsKnown(identifier string) bool
- func PrefersPatchUpdate(identifier string) bool
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
BlueprintWithRelations returns a shallow copy of bp with relations replaced by kept, or with relations removed when kept is nil or empty.
func CustomPatch ¶
CustomPatch returns a minimal blueprint containing only custom schema additions for known system blueprints.
func CustomPatchEqual ¶
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 ¶
IsCustomPatch returns true when a blueprint is a minimal patch for a known system blueprint rather than a full blueprint schema.
func IsKnown ¶
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
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.