Defines error types and conflict reasons for project import validation failures in storage operations. Reuse when implementing robust data migration and import safety checks.
// Source: https://github.com/Untrivial-ai/agent-orchestrator | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package domain
import "fmt"
// ProjectImportConflict reason constants describe why an imported project
// cannot be written to the target storage.
const (
ProjectImportConflictSameIDArchivedTarget = "same id matches archived target project"
ProjectImportConflictSameIDDifferentActivePath = "same id with different active path"
ProjectImportConflictSamePathDifferentActiveID = "same path with different active id"
)
// ProjectImportConflict describes a target project that prevents an imported
// project row from being written.
type ProjectImportConflict struct {
Pro
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key