Skip to content
go-libfossil Artifact [3aa8e17d71]
Login

Artifact [3aa8e17d71]

Artifact 3aa8e17d7112ac7d9f7ef8a460f190d871035b446260caad4f6b29034e3afb38:


package sync

import "github.com/danmestas/libfossil/simio"

// CloneOpts configures a clone operation.
type CloneOpts struct {
	User     string     // Credentials for clone auth (also default admin user)
	Password string
	Version  int        // Protocol version (default 3)
	Env      *simio.Env // nil defaults to RealEnv
	Observer Observer   // nil defaults to no-op
	Buggify  BuggifyChecker // fault injection for DST (nil = no faults)
}

// CloneResult reports what happened during a clone.
type CloneResult struct {
	Rounds         int
	BlobsRecvd     int
	ArtifactsLinked int     // Manifests crosslinked into event table
	ProjectCode    string
	ServerCode     string
	Messages       []string // Informational messages from server
}