Documentation
¶
Index ¶
- func AppendGuidance(message, project string, err error) string
- func Guidance(project string) string
- func IsPolicyFailure(err error) bool
- func IsRepairableCloudSyncError(err error) bool
- func PolicyGuidance(project string) string
- func ProjectFromError(err error) string
- func ProjectFromTargetKey(targetKey string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendGuidance ¶
AppendGuidance preserves the original message and appends deterministic, non-mutating recovery instructions for known repairable or policy failures.
func IsPolicyFailure ¶
IsPolicyFailure reports whether an error represents a server policy denial. It intentionally remains separate from locally repairable sync failures.
func IsRepairableCloudSyncError ¶
IsRepairableCloudSyncError returns true for known cloud sync/upsert/canonicalization failures that can be diagnosed by the explicit cloud upgrade doctor/repair flow. It never mutates local or remote state.
func PolicyGuidance ¶
PolicyGuidance explains the server-side checks needed after a policy denial.
func ProjectFromError ¶
ProjectFromError extracts the grouped autosync project from wrapped errors such as transport push project "proj-a". It returns an empty string when unknown.
func ProjectFromTargetKey ¶
ProjectFromTargetKey derives the project suffix from cloud:<project> target keys.
Types ¶
This section is empty.