types

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 4 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Newuint8

func Newuint8(b bool) (uint8, func())

Newuint8 converts Go bool to C uint8_t

Types

type LoreAddress

type LoreAddress struct {
	Hash    LoreHash
	Context LoreContext
}

func (LoreAddress) Clone

func (a LoreAddress) Clone() LoreAddress

type LoreAuthClearArgs

type LoreAuthClearArgs struct {
	Unused bool
}

type LoreAuthClearArgsFFI

type LoreAuthClearArgsFFI struct {
	Unused uint8
}

func NewLoreAuthClearArgs

func NewLoreAuthClearArgs(opts LoreAuthClearArgs) (LoreAuthClearArgsFFI, func())

type LoreAuthIdentityEventData

type LoreAuthIdentityEventData struct {
	/* Auth service URL */
	AuthUrl string
	/* Resource ID (empty for authentication tokens) */
	Resource string
	/* User identity */
	UserId string
	/* Comma-separated list of authorized root domains */
	AuthorizedDomains string
	/* Expiry time in milliseconds since UNIX epoch, or 0 if unavailable */
	Expires uint64
	/* Cached token (only populated when requested) */
	Token string
	/* The token's claims as a JSON object (only populated when requested) */
	Claims string
}

type LoreAuthIdentityEventDataFFI

type LoreAuthIdentityEventDataFFI struct {
	/* Auth service URL */
	AuthUrl LoreString
	/* Resource ID (empty for authentication tokens) */
	Resource LoreString
	/* User identity */
	UserId LoreString
	/* Comma-separated list of authorized root domains */
	AuthorizedDomains LoreString
	/* Expiry time in milliseconds since UNIX epoch, or 0 if unavailable */
	Expires uint64
	/* Cached token (only populated when requested) */
	Token LoreString
	/* The token's claims as a JSON object (only populated when requested) */
	Claims LoreString
}

func (*LoreAuthIdentityEventDataFFI) Clone

type LoreAuthListArgs

type LoreAuthListArgs struct {
	/* Include the decrypted cached token in each identity */
	WithToken bool
}

type LoreAuthListArgsFFI

type LoreAuthListArgsFFI struct {
	/* Include the decrypted cached token in each identity */
	WithToken uint8
}

func NewLoreAuthListArgs

func NewLoreAuthListArgs(opts LoreAuthListArgs) (LoreAuthListArgsFFI, func())

type LoreAuthLocalUserInfoArgs

type LoreAuthLocalUserInfoArgs struct {
	/* Auth service remote URL; empty resolves from the repository's remote environment */
	AuthEndpoint string
	/* User identities to resolve; empty resolves the current user */
	UserIds []string
	/* Include the cached identity token string in `AuthUserToken` events */
	WithIdentityToken bool
	/* Emit the repository's authorization (access) token. Requires running
	inside a repository */
	WithAccessToken bool
	/* Emit the claims of the repository's authorization (access) token.
	Requires running inside a repository */
	WithClaims bool
}

type LoreAuthLocalUserInfoArgsFFI

type LoreAuthLocalUserInfoArgsFFI struct {
	/* Auth service remote URL; empty resolves from the repository's remote environment */
	AuthEndpoint LoreString
	/* User identities to resolve; empty resolves the current user */
	UserIds LoreStringArrayFFI
	/* Include the cached identity token string in `AuthUserToken` events */
	WithIdentityToken uint8
	/* Emit the repository's authorization (access) token. Requires running
	inside a repository */
	WithAccessToken uint8
	/* Emit the claims of the repository's authorization (access) token.
	Requires running inside a repository */
	WithClaims uint8
}

func NewLoreAuthLocalUserInfoArgs

func NewLoreAuthLocalUserInfoArgs(opts LoreAuthLocalUserInfoArgs) (LoreAuthLocalUserInfoArgsFFI, func())

type LoreAuthLoginInteractiveArgs

type LoreAuthLoginInteractiveArgs struct {
	/* Remote URL; empty resolves from the repository config */
	RemoteUrl string
	/* Emit the login URL instead of opening a browser */
	NoBrowser bool
	/* Return the stored login instead of starting a new one while its session is valid */
	ReuseSession bool
}

type LoreAuthLoginInteractiveArgsFFI

type LoreAuthLoginInteractiveArgsFFI struct {
	/* Remote URL; empty resolves from the repository config */
	RemoteUrl LoreString
	/* Emit the login URL instead of opening a browser */
	NoBrowser uint8
	/* Return the stored login instead of starting a new one while its session is valid */
	ReuseSession uint8
}

func NewLoreAuthLoginInteractiveArgs

func NewLoreAuthLoginInteractiveArgs(opts LoreAuthLoginInteractiveArgs) (LoreAuthLoginInteractiveArgsFFI, func())

type LoreAuthLoginWithTokenArgs

type LoreAuthLoginWithTokenArgs struct {
	/* Remote URL; empty resolves from the repository config */
	RemoteUrl string
	/* Authentication token */
	Token string
	/* Token type */
	TokenType string
	/* Auth service URL with scheme (e.g. `ucs-auth://auth.example.com`); used
	directly when non-empty, required when no remote URL is available */
	AuthUrl string
	/* Client ID of a confidential client registered with the auth service. When
	non-empty, logs in as that client with `client_secret`, and `token` and
	`token_type` must be empty */
	ClientId string
	/* Secret of the client `client_id` names */
	ClientSecret string
}

type LoreAuthLoginWithTokenArgsFFI

type LoreAuthLoginWithTokenArgsFFI struct {
	/* Remote URL; empty resolves from the repository config */
	RemoteUrl LoreString
	/* Authentication token */
	Token LoreString
	/* Token type */
	TokenType LoreString
	/* Auth service URL with scheme (e.g. `ucs-auth://auth.example.com`); used
	directly when non-empty, required when no remote URL is available */
	AuthUrl LoreString
	/* Client ID of a confidential client registered with the auth service. When
	non-empty, logs in as that client with `client_secret`, and `token` and
	`token_type` must be empty */
	ClientId LoreString
	/* Secret of the client `client_id` names */
	ClientSecret LoreString
}

func NewLoreAuthLoginWithTokenArgs

func NewLoreAuthLoginWithTokenArgs(opts LoreAuthLoginWithTokenArgs) (LoreAuthLoginWithTokenArgsFFI, func())

type LoreAuthLogoutArgs

type LoreAuthLogoutArgs struct {
	/* Auth service URL; empty resolves from the repository */
	AuthUrl string
	/* Resource ID (e.g. `urc-{id}`); empty removes all tokens for the auth URL */
	Resource string
	/* User identity to remove; empty removes all identities */
	UserId string
}

type LoreAuthLogoutArgsFFI

type LoreAuthLogoutArgsFFI struct {
	/* Auth service URL; empty resolves from the repository */
	AuthUrl LoreString
	/* Resource ID (e.g. `urc-{id}`); empty removes all tokens for the auth URL */
	Resource LoreString
	/* User identity to remove; empty removes all identities */
	UserId LoreString
}

func NewLoreAuthLogoutArgs

func NewLoreAuthLogoutArgs(opts LoreAuthLogoutArgs) (LoreAuthLogoutArgsFFI, func())

type LoreAuthMode added in v0.11.0

type LoreAuthMode int32
const (
	LoreAuthMode_AUTO LoreAuthMode = 0
	LoreAuthMode_GRPC LoreAuthMode = 1
	LoreAuthMode_OIDC LoreAuthMode = 2
)

type LoreAuthPendingEventData added in v0.11.0

type LoreAuthPendingEventData struct {
	/* Whole seconds since polling began. */
	ElapsedSecs uint64
	/* Whole seconds until the next poll. */
	IntervalSecs uint64
	/* Whole seconds left before the session expires unapproved. */
	RemainingSecs uint64
}

type LoreAuthPendingEventDataFFI added in v0.11.0

type LoreAuthPendingEventDataFFI struct {
	/* Whole seconds since polling began. */
	ElapsedSecs uint64
	/* Whole seconds until the next poll. */
	IntervalSecs uint64
	/* Whole seconds left before the session expires unapproved. */
	RemainingSecs uint64
}

func (*LoreAuthPendingEventDataFFI) Clone added in v0.11.0

type LoreAuthUrlEventData

type LoreAuthUrlEventData struct {
	/* Authentication URL */
	Url string
	/* Code the user enters or confirms at `url`. Empty when the login
	doesn't ask for one. */
	UserCode string
}

type LoreAuthUrlEventDataFFI

type LoreAuthUrlEventDataFFI struct {
	/* Authentication URL */
	Url LoreString
	/* Code the user enters or confirms at `url`. Empty when the login
	doesn't ask for one. */
	UserCode LoreString
}

func (*LoreAuthUrlEventDataFFI) Clone

type LoreAuthUserInfoArgs

type LoreAuthUserInfoArgs struct {
	/* User IDs to resolve; empty resolves the current user locally */
	UserIds []string
}

type LoreAuthUserInfoArgsFFI

type LoreAuthUserInfoArgsFFI struct {
	/* User IDs to resolve; empty resolves the current user locally */
	UserIds LoreStringArrayFFI
}

func NewLoreAuthUserInfoArgs

func NewLoreAuthUserInfoArgs(opts LoreAuthUserInfoArgs) (LoreAuthUserInfoArgsFFI, func())

type LoreAuthUserInfoEventData

type LoreAuthUserInfoEventData struct {
	/* User identity */
	Id string
	/* Display name for the user */
	Name string
}

type LoreAuthUserInfoEventDataFFI

type LoreAuthUserInfoEventDataFFI struct {
	/* User identity */
	Id LoreString
	/* Display name for the user */
	Name LoreString
}

func (*LoreAuthUserInfoEventDataFFI) Clone

type LoreAuthUserTokenEventData

type LoreAuthUserTokenEventData struct {
	/* User identity */
	Id string
	/* Display name for the user */
	Name string
	/* The token string, or empty when the caller did not ask for it */
	Token string
	/* Preferred username from the token */
	PreferredUsername string
	/* Non-zero if the identity is a service account */
	FlagServiceAccount bool
	/* Expiry time of `token` in milliseconds since UNIX epoch, or 0 if unavailable */
	Expires uint64
	/* When the stored refresh token stops working, in milliseconds since the UNIX epoch. 0
	if there is no refresh token, or if the provider did not give a deadline. */
	RefreshExpires uint64
	/* Non-zero if a refresh token is stored for the identity */
	Refreshable bool
	/* Non-zero if `token` has not expired, or if it has but the stored refresh token can still
	renew it */
	SessionValid bool
}

type LoreAuthUserTokenEventDataFFI

type LoreAuthUserTokenEventDataFFI struct {
	/* User identity */
	Id LoreString
	/* Display name for the user */
	Name LoreString
	/* The token string, or empty when the caller did not ask for it */
	Token LoreString
	/* Preferred username from the token */
	PreferredUsername LoreString
	/* Non-zero if the identity is a service account */
	FlagServiceAccount uint8
	/* Expiry time of `token` in milliseconds since UNIX epoch, or 0 if unavailable */
	Expires uint64
	/* When the stored refresh token stops working, in milliseconds since the UNIX epoch. 0
	if there is no refresh token, or if the provider did not give a deadline. */
	RefreshExpires uint64
	/* Non-zero if a refresh token is stored for the identity */
	Refreshable uint8
	/* Non-zero if `token` has not expired, or if it has but the stored refresh token can still
	renew it */
	SessionValid uint8
}

func (*LoreAuthUserTokenEventDataFFI) Clone

type LoreBinary

type LoreBinary = []byte

type LoreBinaryFFI

type LoreBinaryFFI struct {
	Payload uintptr
	Length  uint64
}

func NewLoreBinary

func NewLoreBinary(data LoreBinary) (LoreBinaryFFI, func())

func NewLoreBytes

func NewLoreBytes(data LoreBinary) (LoreBinaryFFI, func())

func (*LoreBinaryFFI) Clone

func (data *LoreBinaryFFI) Clone() LoreBinary

type LoreBranchArchiveArgs

type LoreBranchArchiveArgs struct {
	/* Name of the branch */
	Branch string
	/* If set, archive only in this layer (mount path relative to repo root) */
	Layer string
	/* Also archive the branch in every configured layer */
	IncludeLayers bool
	/* If set, archive only in this link (mount path relative to repo root) */
	Link string
	/* Also archive the branch in every configured link */
	IncludeLinks bool
}

type LoreBranchArchiveArgsFFI

type LoreBranchArchiveArgsFFI struct {
	/* Name of the branch */
	Branch LoreString
	/* If set, archive only in this layer (mount path relative to repo root) */
	Layer LoreString
	/* Also archive the branch in every configured layer */
	IncludeLayers uint8
	/* If set, archive only in this link (mount path relative to repo root) */
	Link LoreString
	/* Also archive the branch in every configured link */
	IncludeLinks uint8
}

func NewLoreBranchArchiveArgs

func NewLoreBranchArchiveArgs(opts LoreBranchArchiveArgs) (LoreBranchArchiveArgsFFI, func())

type LoreBranchArchiveEventData

type LoreBranchArchiveEventData struct {
	/* Name of the archived branch. */
	Name string
}

type LoreBranchArchiveEventDataFFI

type LoreBranchArchiveEventDataFFI struct {
	/* Name of the archived branch. */
	Name LoreString
}

func (*LoreBranchArchiveEventDataFFI) Clone

type LoreBranchCreateArgs

type LoreBranchCreateArgs struct {
	/* Name of the branch */
	Branch string
	/* Category of the branch */
	Category string
	/* Optional explicit branch ID (hex-encoded 16-byte context) */
	Id string
	/* Optional scope to create the branch in, by ID or by name; empty for the scope the branch
	inherits from its parent, or keeps where the create restores it */
	Scope string
}

type LoreBranchCreateArgsFFI

type LoreBranchCreateArgsFFI struct {
	/* Name of the branch */
	Branch LoreString
	/* Category of the branch */
	Category LoreString
	/* Optional explicit branch ID (hex-encoded 16-byte context) */
	Id LoreString
	/* Optional scope to create the branch in, by ID or by name; empty for the scope the branch
	inherits from its parent, or keeps where the create restores it */
	Scope LoreString
}

func NewLoreBranchCreateArgs

func NewLoreBranchCreateArgs(opts LoreBranchCreateArgs) (LoreBranchCreateArgsFFI, func())

type LoreBranchCreateEventData

type LoreBranchCreateEventData struct {
	/* Name of the created branch. */
	Name string
	/* Latest revision the new branch points at. */
	Latest LoreHash
	/* Set when creating the branch also produced a new commit. */
	IsCommit bool
}

type LoreBranchCreateEventDataFFI

type LoreBranchCreateEventDataFFI struct {
	/* Name of the created branch. */
	Name LoreString
	/* Latest revision the new branch points at. */
	Latest LoreHash
	/* Set when creating the branch also produced a new commit. */
	IsCommit uint8
}

func (*LoreBranchCreateEventDataFFI) Clone

type LoreBranchDiffArgs

type LoreBranchDiffArgs struct {
	/* Source branch name */
	Source string
	/* Target branch name */
	Target string
	/* Optional path in the repository to limit the diff to */
	Path string
	/* Attempt to auto resolve conflicts */
	AutoResolve bool
}

type LoreBranchDiffArgsFFI

type LoreBranchDiffArgsFFI struct {
	/* Source branch name */
	Source LoreString
	/* Target branch name */
	Target LoreString
	/* Optional path in the repository to limit the diff to */
	Path LoreString
	/* Attempt to auto resolve conflicts */
	AutoResolve uint8
}

func NewLoreBranchDiffArgs

func NewLoreBranchDiffArgs(opts LoreBranchDiffArgs) (LoreBranchDiffArgsFFI, func())

type LoreBranchDiffBeginEventData

type LoreBranchDiffBeginEventData struct {
	/* Identifier of the source branch of the diff. */
	SourceBranch LoreBranchId
	/* Name of the source branch. */
	SourceBranchName string
	/* Revision of the source branch used in the diff. */
	SourceRevision LoreHash
	/* Identifier of the target branch of the diff. */
	TargetBranch LoreBranchId
	/* Name of the target branch. */
	TargetBranchName string
	/* Revision of the target branch used in the diff. */
	TargetRevision LoreHash
	/* Base revision the 3-way diff was resolved against. */
	BaseRevision LoreHash
}

type LoreBranchDiffBeginEventDataFFI

type LoreBranchDiffBeginEventDataFFI struct {
	/* Identifier of the source branch of the diff. */
	SourceBranch LoreBranchId
	/* Name of the source branch. */
	SourceBranchName LoreString
	/* Revision of the source branch used in the diff. */
	SourceRevision LoreHash
	/* Identifier of the target branch of the diff. */
	TargetBranch LoreBranchId
	/* Name of the target branch. */
	TargetBranchName LoreString
	/* Revision of the target branch used in the diff. */
	TargetRevision LoreHash
	/* Base revision the 3-way diff was resolved against. */
	BaseRevision LoreHash
}

func (*LoreBranchDiffBeginEventDataFFI) Clone

type LoreBranchDiffChangeBeginEventData

type LoreBranchDiffChangeBeginEventData struct {
	/* Number of changes that follow. */
	ChangesCount uintptr
}

type LoreBranchDiffChangeBeginEventDataFFI

type LoreBranchDiffChangeBeginEventDataFFI struct {
	/* Number of changes that follow. */
	ChangesCount uintptr
}

func (*LoreBranchDiffChangeBeginEventDataFFI) Clone

type LoreBranchDiffChangeEndEventData

type LoreBranchDiffChangeEndEventData struct {
	/* Unused placeholder field. */
	Unused uint32
}

type LoreBranchDiffChangeEndEventDataFFI

type LoreBranchDiffChangeEndEventDataFFI struct {
	/* Unused placeholder field. */
	Unused uint32
}

func (*LoreBranchDiffChangeEndEventDataFFI) Clone

type LoreBranchDiffChangeEventData

type LoreBranchDiffChangeEventData struct {
	/* The changed node. */
	Change LoreBranchDiffNodeData
}

type LoreBranchDiffChangeEventDataFFI

type LoreBranchDiffChangeEventDataFFI struct {
	/* The changed node. */
	Change LoreBranchDiffNodeDataFFI
}

func (*LoreBranchDiffChangeEventDataFFI) Clone

type LoreBranchDiffConflictBeginEventData

type LoreBranchDiffConflictBeginEventData struct {
	/* Number of conflicts that follow. */
	ConflictsCount uintptr
}

type LoreBranchDiffConflictBeginEventDataFFI

type LoreBranchDiffConflictBeginEventDataFFI struct {
	/* Number of conflicts that follow. */
	ConflictsCount uintptr
}

func (*LoreBranchDiffConflictBeginEventDataFFI) Clone

type LoreBranchDiffConflictEndEventData

type LoreBranchDiffConflictEndEventData struct {
	/* Unused placeholder field. */
	Unused uint32
}

type LoreBranchDiffConflictEndEventDataFFI

type LoreBranchDiffConflictEndEventDataFFI struct {
	/* Unused placeholder field. */
	Unused uint32
}

func (*LoreBranchDiffConflictEndEventDataFFI) Clone

type LoreBranchDiffConflictEventData

type LoreBranchDiffConflictEventData struct {
	/* The change on the source side of the conflict. */
	SourceChange LoreBranchDiffNodeData
	/* The change on the target side of the conflict. */
	TargetChange LoreBranchDiffNodeData
}

type LoreBranchDiffConflictEventDataFFI

type LoreBranchDiffConflictEventDataFFI struct {
	/* The change on the source side of the conflict. */
	SourceChange LoreBranchDiffNodeDataFFI
	/* The change on the target side of the conflict. */
	TargetChange LoreBranchDiffNodeDataFFI
}

func (*LoreBranchDiffConflictEventDataFFI) Clone

type LoreBranchDiffEndEventData

type LoreBranchDiffEndEventData struct {
	/* Unused placeholder field. */
	Unused uint32
}

type LoreBranchDiffEndEventDataFFI

type LoreBranchDiffEndEventDataFFI struct {
	/* Unused placeholder field. */
	Unused uint32
}

func (*LoreBranchDiffEndEventDataFFI) Clone

type LoreBranchDiffNodeData

type LoreBranchDiffNodeData struct {
	/* File action applied to the node. */
	Action LoreFileAction
	/* Path of the node. */
	Path string
	/* Set when the change was merged automatically. */
	Automerged bool
	/* Previous path of the node when it was moved or copied. Empty otherwise. */
	FromPath string
}

type LoreBranchDiffNodeDataFFI

type LoreBranchDiffNodeDataFFI struct {
	/* File action applied to the node. */
	Action LoreFileAction
	/* Path of the node. */
	Path LoreString
	/* Set when the change was merged automatically. */
	Automerged uint8
	/* Previous path of the node when it was moved or copied. Empty otherwise. */
	FromPath LoreString
}

func NewLoreBranchDiffNodeData

func NewLoreBranchDiffNodeData(opts LoreBranchDiffNodeData) (LoreBranchDiffNodeDataFFI, func())

func (*LoreBranchDiffNodeDataFFI) Clone

type LoreBranchId

type LoreBranchId LoreContext

func (LoreBranchId) Clone

func (c LoreBranchId) Clone() LoreBranchId

func (LoreBranchId) String

func (c LoreBranchId) String() string

String returns the context as a lowercase hexadecimal string Implements fmt.Stringer interface

type LoreBranchInfoArgs

type LoreBranchInfoArgs struct {
	/* Name of the branch */
	Branch string
	/* Optional path of a link whose repository the branch belongs to */
	Link string
}

type LoreBranchInfoArgsFFI

type LoreBranchInfoArgsFFI struct {
	/* Name of the branch */
	Branch LoreString
	/* Optional path of a link whose repository the branch belongs to */
	Link LoreString
}

func NewLoreBranchInfoArgs

func NewLoreBranchInfoArgs(opts LoreBranchInfoArgs) (LoreBranchInfoArgsFFI, func())

type LoreBranchInfoEventData

type LoreBranchInfoEventData struct {
	/* Branch identifier. */
	Id LoreBranchId
	/* Branch name. */
	Name string
	/* Branch category. */
	Category string
	/* Latest revision known locally for the branch. */
	Latest LoreHash
	/* Latest revision known on the remote for the branch. */
	LatestRemote LoreHash
	/* Identifier of the parent branch. */
	Parent LoreBranchId
	/* Revision on the parent branch where this branch was created. */
	BranchPoint LoreHash
	/* Identifier of the user who created the branch. */
	Creator string
	/* Creation time of the branch as a timestamp. */
	Created uint64
	/* Stack of branch points this branch was created from. */
	Stack LoreBranchPointArray
	/* Set when the branch has been archived. */
	Archived bool
}

type LoreBranchInfoEventDataFFI

type LoreBranchInfoEventDataFFI struct {
	/* Branch identifier. */
	Id LoreBranchId
	/* Branch name. */
	Name LoreString
	/* Branch category. */
	Category LoreString
	/* Latest revision known locally for the branch. */
	Latest LoreHash
	/* Latest revision known on the remote for the branch. */
	LatestRemote LoreHash
	/* Identifier of the parent branch. */
	Parent LoreBranchId
	/* Revision on the parent branch where this branch was created. */
	BranchPoint LoreHash
	/* Identifier of the user who created the branch. */
	Creator LoreString
	/* Creation time of the branch as a timestamp. */
	Created uint64
	/* Stack of branch points this branch was created from. */
	Stack LoreBranchPointArrayFFI
	/* Set when the branch has been archived. */
	Archived uint8
}

func (*LoreBranchInfoEventDataFFI) Clone

type LoreBranchLatestListArgs added in v0.10.1

type LoreBranchLatestListArgs struct {
	/* Branch to list, current branch if empty */
	Branch string
	/* Maximum entries to return (`0` uses the default of 30) */
	Limit uint32
}

type LoreBranchLatestListArgsFFI added in v0.10.1

type LoreBranchLatestListArgsFFI struct {
	/* Branch to list, current branch if empty */
	Branch LoreString
	/* Maximum entries to return (`0` uses the default of 30) */
	Limit uint32
}

func NewLoreBranchLatestListArgs added in v0.10.1

func NewLoreBranchLatestListArgs(opts LoreBranchLatestListArgs) (LoreBranchLatestListArgsFFI, func())

type LoreBranchLatestListEntryEventData

type LoreBranchLatestListEntryEventData struct {
	/* Branch identifier. */
	Branch LoreBranchId
	/* Revision recorded in the history entry. */
	Revision LoreHash
}

type LoreBranchLatestListEntryEventDataFFI

type LoreBranchLatestListEntryEventDataFFI struct {
	/* Branch identifier. */
	Branch LoreBranchId
	/* Revision recorded in the history entry. */
	Revision LoreHash
}

func (*LoreBranchLatestListEntryEventDataFFI) Clone

type LoreBranchListArgs

type LoreBranchListArgs struct {
	/* Include archived local branches in listing */
	Archived bool
}

type LoreBranchListArgsFFI

type LoreBranchListArgsFFI struct {
	/* Include archived local branches in listing */
	Archived uint8
}

func NewLoreBranchListArgs

func NewLoreBranchListArgs(opts LoreBranchListArgs) (LoreBranchListArgsFFI, func())

type LoreBranchListBeginEventData

type LoreBranchListBeginEventData struct {
	/* Location the listed branches come from. */
	Location LoreBranchLocation
}

type LoreBranchListBeginEventDataFFI

type LoreBranchListBeginEventDataFFI struct {
	/* Location the listed branches come from. */
	Location LoreBranchLocation
}

func (*LoreBranchListBeginEventDataFFI) Clone

type LoreBranchListEndEventData

type LoreBranchListEndEventData struct {
	/* Location the listed branches came from. */
	Location LoreBranchLocation
	/* Number of branches that were listed. */
	Count uint64
}

type LoreBranchListEndEventDataFFI

type LoreBranchListEndEventDataFFI struct {
	/* Location the listed branches came from. */
	Location LoreBranchLocation
	/* Number of branches that were listed. */
	Count uint64
}

func (*LoreBranchListEndEventDataFFI) Clone

type LoreBranchListEntryEventData

type LoreBranchListEntryEventData struct {
	/* Location this branch comes from. */
	Location LoreBranchLocation
	/* Branch identifier. */
	Id LoreBranchId
	/* Branch name. */
	Name string
	/* Branch category. */
	Category string
	/* Latest revision the branch points at. */
	Latest LoreHash
	/* Stack of branch points this branch was created from. */
	Stack LoreBranchPointArray
	/* Identifier of the user who created the branch. */
	Creator string
	/* Creation time of the branch as a timestamp. */
	Created uint64
	/* Set when this branch is the current branch. */
	IsCurrent bool
	/* Set when this branch has been archived. */
	Archived bool
}

type LoreBranchListEntryEventDataFFI

type LoreBranchListEntryEventDataFFI struct {
	/* Location this branch comes from. */
	Location LoreBranchLocation
	/* Branch identifier. */
	Id LoreBranchId
	/* Branch name. */
	Name LoreString
	/* Branch category. */
	Category LoreString
	/* Latest revision the branch points at. */
	Latest LoreHash
	/* Stack of branch points this branch was created from. */
	Stack LoreBranchPointArrayFFI
	/* Identifier of the user who created the branch. */
	Creator LoreString
	/* Creation time of the branch as a timestamp. */
	Created uint64
	/* Set when this branch is the current branch. */
	IsCurrent uint8
	/* Set when this branch has been archived. */
	Archived uint8
}

func (*LoreBranchListEntryEventDataFFI) Clone

type LoreBranchLocation

type LoreBranchLocation int32
const (
	LoreBranchLocation_LOCAL  LoreBranchLocation = 0
	LoreBranchLocation_REMOTE LoreBranchLocation = 1
)

type LoreBranchMergeAbortArgs

type LoreBranchMergeAbortArgs struct {
	/* Optional link path for link-scoped abort */
	Link string
	/* Abort only the main repository merge, keeping link pin updates */
	IgnoreLinks bool
}

type LoreBranchMergeAbortArgsFFI

type LoreBranchMergeAbortArgsFFI struct {
	/* Optional link path for link-scoped abort */
	Link LoreString
	/* Abort only the main repository merge, keeping link pin updates */
	IgnoreLinks uint8
}

func NewLoreBranchMergeAbortArgs

func NewLoreBranchMergeAbortArgs(opts LoreBranchMergeAbortArgs) (LoreBranchMergeAbortArgsFFI, func())

type LoreBranchMergeAbortBeginEventData

type LoreBranchMergeAbortBeginEventData struct {
	/* The staged revision being discarded. */
	StateStagedRevision LoreHash
	/* The current revision the working state returns to. */
	StateCurrentRevision LoreHash
}

type LoreBranchMergeAbortBeginEventDataFFI

type LoreBranchMergeAbortBeginEventDataFFI struct {
	/* The staged revision being discarded. */
	StateStagedRevision LoreHash
	/* The current revision the working state returns to. */
	StateCurrentRevision LoreHash
}

func (*LoreBranchMergeAbortBeginEventDataFFI) Clone

type LoreBranchMergeAbortEndEventData

type LoreBranchMergeAbortEndEventData struct {
	/* Placeholder field. The event carries no payload. */
	Unused uint32
}

type LoreBranchMergeAbortEndEventDataFFI

type LoreBranchMergeAbortEndEventDataFFI struct {
	/* Placeholder field. The event carries no payload. */
	Unused uint32
}

func (*LoreBranchMergeAbortEndEventDataFFI) Clone

type LoreBranchMergeConflictFileEventData

type LoreBranchMergeConflictFileEventData struct {
	/* The path of the conflicted file. */
	Path string
}

type LoreBranchMergeConflictFileEventDataFFI

type LoreBranchMergeConflictFileEventDataFFI struct {
	/* The path of the conflicted file. */
	Path LoreString
}

func (*LoreBranchMergeConflictFileEventDataFFI) Clone

type LoreBranchMergeConflictsListArgs added in v0.15.0

type LoreBranchMergeConflictsListArgs struct {
	Unused int
}

type LoreBranchMergeConflictsListArgsFFI added in v0.15.0

type LoreBranchMergeConflictsListArgsFFI struct {
	Unused int
}

func NewLoreBranchMergeConflictsListArgs added in v0.15.0

func NewLoreBranchMergeConflictsListArgs(opts LoreBranchMergeConflictsListArgs) (LoreBranchMergeConflictsListArgsFFI, func())

type LoreBranchMergeIntoArgs

type LoreBranchMergeIntoArgs struct {
	/* Name of the target branch to merge into */
	Branch string
	/* ID of the target branch to merge into */
	BranchId LoreContext
	/* Commit message for the auto-commit */
	Message string
	/* Optional link path for link-scoped merge into */
	Link string
	/* Merge only the main repository, skipping all linked repositories */
	IgnoreLinks bool
	/* Metadata keys to carry from the current branch onto the revision
	created on the target branch. Empty carries nothing; the single entry
	`*` carries every key that is not reserved to the merge itself. */
	InheritMetadata []string
}

type LoreBranchMergeIntoArgsFFI

type LoreBranchMergeIntoArgsFFI struct {
	/* Name of the target branch to merge into */
	Branch LoreString
	/* ID of the target branch to merge into */
	BranchId LoreContext
	/* Commit message for the auto-commit */
	Message LoreString
	/* Optional link path for link-scoped merge into */
	Link LoreString
	/* Merge only the main repository, skipping all linked repositories */
	IgnoreLinks uint8
	/* Metadata keys to carry from the current branch onto the revision
	created on the target branch. Empty carries nothing; the single entry
	`*` carries every key that is not reserved to the merge itself. */
	InheritMetadata LoreStringArrayFFI
}

func NewLoreBranchMergeIntoArgs

func NewLoreBranchMergeIntoArgs(opts LoreBranchMergeIntoArgs) (LoreBranchMergeIntoArgsFFI, func())

type LoreBranchMergeIntoFileBeginEventData

type LoreBranchMergeIntoFileBeginEventData struct {
	/* The number of files to merge. */
	Count uintptr
}

type LoreBranchMergeIntoFileBeginEventDataFFI

type LoreBranchMergeIntoFileBeginEventDataFFI struct {
	/* The number of files to merge. */
	Count uintptr
}

func (*LoreBranchMergeIntoFileBeginEventDataFFI) Clone

type LoreBranchMergeIntoFileEndEventData

type LoreBranchMergeIntoFileEndEventData struct {
	/* The number of files merged. */
	Count uintptr
}

type LoreBranchMergeIntoFileEndEventDataFFI

type LoreBranchMergeIntoFileEndEventDataFFI struct {
	/* The number of files merged. */
	Count uintptr
}

func (*LoreBranchMergeIntoFileEndEventDataFFI) Clone

type LoreBranchMergeIntoFileEventData

type LoreBranchMergeIntoFileEventData struct {
	/* The path of the file. */
	Path string
	/* The action applied to the file. */
	Action LoreFileAction
	/* The size of the file in bytes. */
	Size uint64
	/* Set when the entry is a regular file. */
	IsFile bool
	/* Set when the entry is a directory. */
	IsDirectory bool
	/* Set when the entry is a link. */
	IsLink bool
}

type LoreBranchMergeIntoFileEventDataFFI

type LoreBranchMergeIntoFileEventDataFFI struct {
	/* The path of the file. */
	Path LoreString
	/* The action applied to the file. */
	Action LoreFileAction
	/* The size of the file in bytes. */
	Size uint64
	/* Set when the entry is a regular file. */
	IsFile uint8
	/* Set when the entry is a directory. */
	IsDirectory uint8
	/* Set when the entry is a link. */
	IsLink uint8
}

func (*LoreBranchMergeIntoFileEventDataFFI) Clone

type LoreBranchMergeIntoFragmentBeginEventData

type LoreBranchMergeIntoFragmentBeginEventData struct {
	/* The number of fragments to transfer. */
	Fragments uint64
}

type LoreBranchMergeIntoFragmentBeginEventDataFFI

type LoreBranchMergeIntoFragmentBeginEventDataFFI struct {
	/* The number of fragments to transfer. */
	Fragments uint64
}

func (*LoreBranchMergeIntoFragmentBeginEventDataFFI) Clone

type LoreBranchMergeIntoFragmentEndEventData

type LoreBranchMergeIntoFragmentEndEventData struct {
	/* The number of fragments transferred. */
	Fragments uint64
}

type LoreBranchMergeIntoFragmentEndEventDataFFI

type LoreBranchMergeIntoFragmentEndEventDataFFI struct {
	/* The number of fragments transferred. */
	Fragments uint64
}

func (*LoreBranchMergeIntoFragmentEndEventDataFFI) Clone

type LoreBranchMergeIntoFragmentProgressEventData

type LoreBranchMergeIntoFragmentProgressEventData struct {
	/* The number of fragments transferred so far. */
	Complete uint64
	/* The total number of fragments to transfer. */
	Count uint64
}

type LoreBranchMergeIntoFragmentProgressEventDataFFI

type LoreBranchMergeIntoFragmentProgressEventDataFFI struct {
	/* The number of fragments transferred so far. */
	Complete uint64
	/* The total number of fragments to transfer. */
	Count uint64
}

func (*LoreBranchMergeIntoFragmentProgressEventDataFFI) Clone

type LoreBranchMergeIntoRevisionEventData

type LoreBranchMergeIntoRevisionEventData struct {
	/* The revision merged. */
	Revision LoreHash
	/* The sequential number of the revision. */
	RevisionNumber uint64
}

type LoreBranchMergeIntoRevisionEventDataFFI

type LoreBranchMergeIntoRevisionEventDataFFI struct {
	/* The revision merged. */
	Revision LoreHash
	/* The sequential number of the revision. */
	RevisionNumber uint64
}

func (*LoreBranchMergeIntoRevisionEventDataFFI) Clone

type LoreBranchMergeIntoSyncBeginEventData

type LoreBranchMergeIntoSyncBeginEventData struct {
	/* The number of revisions to synchronize. */
	Count uintptr
}

type LoreBranchMergeIntoSyncBeginEventDataFFI

type LoreBranchMergeIntoSyncBeginEventDataFFI struct {
	/* The number of revisions to synchronize. */
	Count uintptr
}

func (*LoreBranchMergeIntoSyncBeginEventDataFFI) Clone

type LoreBranchMergeIntoSyncEndEventData

type LoreBranchMergeIntoSyncEndEventData struct {
	/* The number of revisions synchronized. */
	Count uintptr
}

type LoreBranchMergeIntoSyncEndEventDataFFI

type LoreBranchMergeIntoSyncEndEventDataFFI struct {
	/* The number of revisions synchronized. */
	Count uintptr
}

func (*LoreBranchMergeIntoSyncEndEventDataFFI) Clone

type LoreBranchMergeLinkPinConflictEventData added in v0.15.0

type LoreBranchMergeLinkPinConflictEventData struct {
	/* The mount path of the divergent link. */
	LinkPath string
	/* The repository both sides point at. */
	Repository LoreRepositoryId
	/* The row this branch holds. */
	Mine LoreLinkPinSideData
	/* The row the merged branch holds. */
	Theirs LoreLinkPinSideData
}

type LoreBranchMergeLinkPinConflictEventDataFFI added in v0.15.0

type LoreBranchMergeLinkPinConflictEventDataFFI struct {
	/* The mount path of the divergent link. */
	LinkPath LoreString
	/* The repository both sides point at. */
	Repository LoreRepositoryId
	/* The row this branch holds. */
	Mine LoreLinkPinSideDataFFI
	/* The row the merged branch holds. */
	Theirs LoreLinkPinSideDataFFI
}

func (*LoreBranchMergeLinkPinConflictEventDataFFI) Clone added in v0.15.0

type LoreBranchMergeLinkPinResolvedEventData added in v0.15.0

type LoreBranchMergeLinkPinResolvedEventData struct {
	/* The mount path of the settled link. */
	LinkPath string
	/* The side the row was settled to. */
	Resolution LoreLinkPinResolution
}

type LoreBranchMergeLinkPinResolvedEventDataFFI added in v0.15.0

type LoreBranchMergeLinkPinResolvedEventDataFFI struct {
	/* The mount path of the settled link. */
	LinkPath LoreString
	/* The side the row was settled to. */
	Resolution LoreLinkPinResolution
}

func (*LoreBranchMergeLinkPinResolvedEventDataFFI) Clone added in v0.15.0

type LoreBranchMergeLinkSkippedEventData

type LoreBranchMergeLinkSkippedEventData struct {
	/* The mount path of the skipped link. */
	LinkPath string
	/* The repository of the skipped link. */
	Repository LoreRepositoryId
	/* The reason the link was skipped. */
	Reason bool
}

type LoreBranchMergeLinkSkippedEventDataFFI

type LoreBranchMergeLinkSkippedEventDataFFI struct {
	/* The mount path of the skipped link. */
	LinkPath LoreString
	/* The repository of the skipped link. */
	Repository LoreRepositoryId
	/* The reason the link was skipped. */
	Reason uint8
}

func (*LoreBranchMergeLinkSkippedEventDataFFI) Clone

type LoreBranchMergeResolveArgs

type LoreBranchMergeResolveArgs struct {
	/* Paths to mark resolved */
	Paths []string
}

type LoreBranchMergeResolveArgsFFI

type LoreBranchMergeResolveArgsFFI struct {
	/* Paths to mark resolved */
	Paths LoreStringArrayFFI
}

func NewLoreBranchMergeResolveArgs

func NewLoreBranchMergeResolveArgs(opts LoreBranchMergeResolveArgs) (LoreBranchMergeResolveArgsFFI, func())

type LoreBranchMergeResolveFileEventData

type LoreBranchMergeResolveFileEventData struct {
	/* The path of the file marked resolved. */
	Path string
}

type LoreBranchMergeResolveFileEventDataFFI

type LoreBranchMergeResolveFileEventDataFFI struct {
	/* The path of the file marked resolved. */
	Path LoreString
}

func (*LoreBranchMergeResolveFileEventDataFFI) Clone

type LoreBranchMergeResolveMineArgs

type LoreBranchMergeResolveMineArgs struct {
	/* Paths to resolve as "mine" */
	Paths []string
}

type LoreBranchMergeResolveMineArgsFFI

type LoreBranchMergeResolveMineArgsFFI struct {
	/* Paths to resolve as "mine" */
	Paths LoreStringArrayFFI
}

type LoreBranchMergeResolveRevisionEventData

type LoreBranchMergeResolveRevisionEventData struct {
	/* The repository of the revision marked resolved. */
	Repository LoreRepositoryId
	/* The revision marked resolved. */
	Revision LoreHash
}

type LoreBranchMergeResolveRevisionEventDataFFI

type LoreBranchMergeResolveRevisionEventDataFFI struct {
	/* The repository of the revision marked resolved. */
	Repository LoreRepositoryId
	/* The revision marked resolved. */
	Revision LoreHash
}

func (*LoreBranchMergeResolveRevisionEventDataFFI) Clone

type LoreBranchMergeResolveTheirsArgs

type LoreBranchMergeResolveTheirsArgs struct {
	/* Paths to resolve as "theirs" */
	Paths []string
}

type LoreBranchMergeResolveTheirsArgsFFI

type LoreBranchMergeResolveTheirsArgsFFI struct {
	/* Paths to resolve as "theirs" */
	Paths LoreStringArrayFFI
}

type LoreBranchMergeRestartArgs

type LoreBranchMergeRestartArgs struct {
	/* Paths to re-materialize */
	Paths []string
}

type LoreBranchMergeRestartArgsFFI

type LoreBranchMergeRestartArgsFFI struct {
	/* Paths to re-materialize */
	Paths LoreStringArrayFFI
}

func NewLoreBranchMergeRestartArgs

func NewLoreBranchMergeRestartArgs(opts LoreBranchMergeRestartArgs) (LoreBranchMergeRestartArgsFFI, func())

type LoreBranchMergeStartArgs

type LoreBranchMergeStartArgs struct {
	/* Name of the source branch to merge into the current branch */
	Branch string
	/* Message to use for an auto commit if no conflicts arise */
	Message string
	/* Disable auto commit even if no conflicts arise */
	NoCommit bool
	/* Optional link path for link-scoped merge */
	Link string
	/* Merge only the main repository, skipping all linked repositories */
	IgnoreLinks bool
	/* Metadata keys to carry from the source revision onto the merge
	revision. Empty carries nothing; the single entry `*` carries every
	key that is not reserved to the merge itself. */
	InheritMetadata []string
	/* Array of link relative paths that have specific auto commit messages */
	LinkPaths []string
	/* Array of messages corresponding to each link path (parallel array with `link_paths`) */
	LinkMessages []string
}

type LoreBranchMergeStartArgsFFI

type LoreBranchMergeStartArgsFFI struct {
	/* Name of the source branch to merge into the current branch */
	Branch LoreString
	/* Message to use for an auto commit if no conflicts arise */
	Message LoreString
	/* Disable auto commit even if no conflicts arise */
	NoCommit uint8
	/* Optional link path for link-scoped merge */
	Link LoreString
	/* Merge only the main repository, skipping all linked repositories */
	IgnoreLinks uint8
	/* Metadata keys to carry from the source revision onto the merge
	revision. Empty carries nothing; the single entry `*` carries every
	key that is not reserved to the merge itself. */
	InheritMetadata LoreStringArrayFFI
	/* Array of link relative paths that have specific auto commit messages */
	LinkPaths LoreStringArrayFFI
	/* Array of messages corresponding to each link path (parallel array with `link_paths`) */
	LinkMessages LoreStringArrayFFI
}

func NewLoreBranchMergeStartArgs

func NewLoreBranchMergeStartArgs(opts LoreBranchMergeStartArgs) (LoreBranchMergeStartArgsFFI, func())

type LoreBranchMergeStartBeginEventData

type LoreBranchMergeStartBeginEventData struct {
	/* The source branch being merged. */
	Branch LoreBranchId
	/* The source revision being merged. */
	Revision LoreHash
	/* The sequential number of the source revision. */
	RevisionNumber uint64
}

type LoreBranchMergeStartBeginEventDataFFI

type LoreBranchMergeStartBeginEventDataFFI struct {
	/* The source branch being merged. */
	Branch LoreBranchId
	/* The source revision being merged. */
	Revision LoreHash
	/* The sequential number of the source revision. */
	RevisionNumber uint64
}

func (*LoreBranchMergeStartBeginEventDataFFI) Clone

type LoreBranchMergeStartEndEventData

type LoreBranchMergeStartEndEventData struct {
	/* Progress totals collected while applying the merge. */
	Stats LoreRevisionSyncProgressEventData
	/* The revision produced by the merge. */
	Signature LoreHash
	/* Set when the merge produced file conflicts. */
	HasConflicts bool
}

type LoreBranchMergeStartEndEventDataFFI

type LoreBranchMergeStartEndEventDataFFI struct {
	/* Progress totals collected while applying the merge. */
	Stats LoreRevisionSyncProgressEventDataFFI
	/* The revision produced by the merge. */
	Signature LoreHash
	/* Set when the merge produced file conflicts. */
	HasConflicts uint8
}

func (*LoreBranchMergeStartEndEventDataFFI) Clone

type LoreBranchMergeUnresolveArgs

type LoreBranchMergeUnresolveArgs struct {
	/* Paths to mark unresolved */
	Paths []string
}

type LoreBranchMergeUnresolveArgsFFI

type LoreBranchMergeUnresolveArgsFFI struct {
	/* Paths to mark unresolved */
	Paths LoreStringArrayFFI
}

func NewLoreBranchMergeUnresolveArgs

func NewLoreBranchMergeUnresolveArgs(opts LoreBranchMergeUnresolveArgs) (LoreBranchMergeUnresolveArgsFFI, func())

type LoreBranchMergeUnresolveFileEventData

type LoreBranchMergeUnresolveFileEventData struct {
	/* The path of the file marked unresolved. */
	Path string
}

type LoreBranchMergeUnresolveFileEventDataFFI

type LoreBranchMergeUnresolveFileEventDataFFI struct {
	/* The path of the file marked unresolved. */
	Path LoreString
}

func (*LoreBranchMergeUnresolveFileEventDataFFI) Clone

type LoreBranchMergeUnresolveRevisionEventData

type LoreBranchMergeUnresolveRevisionEventData struct {
	/* The repository of the revision marked unresolved. */
	Repository LoreRepositoryId
	/* The revision marked unresolved. */
	Revision LoreHash
}

type LoreBranchMergeUnresolveRevisionEventDataFFI

type LoreBranchMergeUnresolveRevisionEventDataFFI struct {
	/* The repository of the revision marked unresolved. */
	Repository LoreRepositoryId
	/* The revision marked unresolved. */
	Revision LoreHash
}

func (*LoreBranchMergeUnresolveRevisionEventDataFFI) Clone

type LoreBranchMetadataClearArgs

type LoreBranchMetadataClearArgs struct {
	/* Branch name or identifier */
	Branch string
	/* Keys to clear (empty array clears all user-defined keys) */
	Keys []string
}

type LoreBranchMetadataClearArgsFFI

type LoreBranchMetadataClearArgsFFI struct {
	/* Branch name or identifier */
	Branch LoreString
	/* Keys to clear (empty array clears all user-defined keys) */
	Keys LoreStringArrayFFI
}

func NewLoreBranchMetadataClearArgs

func NewLoreBranchMetadataClearArgs(opts LoreBranchMetadataClearArgs) (LoreBranchMetadataClearArgsFFI, func())

type LoreBranchMetadataGetArgs

type LoreBranchMetadataGetArgs struct {
	/* Branch name or identifier */
	Branch string
	/* Metadata key (empty string lists all) */
	Key string
}

type LoreBranchMetadataGetArgsFFI

type LoreBranchMetadataGetArgsFFI struct {
	/* Branch name or identifier */
	Branch LoreString
	/* Metadata key (empty string lists all) */
	Key LoreString
}

func NewLoreBranchMetadataGetArgs

func NewLoreBranchMetadataGetArgs(opts LoreBranchMetadataGetArgs) (LoreBranchMetadataGetArgsFFI, func())

type LoreBranchMetadataSetArgs

type LoreBranchMetadataSetArgs struct {
	/* Branch name or identifier */
	Branch string
	/* Metadata keys to set (parallel with `values`/`formats`) */
	Keys []string
	/* Values to set, one per key (decoded per the matching `formats` entry) */
	Values []string
	/* Value type for each key, one per key */
	Formats LoreMetadataTypeArray
}

type LoreBranchMetadataSetArgsFFI

type LoreBranchMetadataSetArgsFFI struct {
	/* Branch name or identifier */
	Branch LoreString
	/* Metadata keys to set (parallel with `values`/`formats`) */
	Keys LoreStringArrayFFI
	/* Values to set, one per key (decoded per the matching `formats` entry) */
	Values LoreStringArrayFFI
	/* Value type for each key, one per key */
	Formats LoreMetadataTypeArrayFFI
}

func NewLoreBranchMetadataSetArgs

func NewLoreBranchMetadataSetArgs(opts LoreBranchMetadataSetArgs) (LoreBranchMetadataSetArgsFFI, func())

type LoreBranchMultipleInstanceEventData

type LoreBranchMultipleInstanceEventData struct {
	/* The branch checked out by more than one instance */
	Branch LoreBranchId
	/* Identifiers of the other instances on the branch */
	InstanceIds LoreInstanceIdArray
	/* Filesystem paths of the other instances on the branch */
	InstancePaths []string
}

type LoreBranchMultipleInstanceEventDataFFI

type LoreBranchMultipleInstanceEventDataFFI struct {
	/* The branch checked out by more than one instance */
	Branch LoreBranchId
	/* Identifiers of the other instances on the branch */
	InstanceIds LoreInstanceIdArrayFFI
	/* Filesystem paths of the other instances on the branch */
	InstancePaths LoreStringArrayFFI
}

func (*LoreBranchMultipleInstanceEventDataFFI) Clone

type LoreBranchPoint

type LoreBranchPoint struct {
	/* The branch. */
	Branch LoreBranchId
	/* The revision on the branch. */
	Revision LoreHash
}

type LoreBranchPointArray

type LoreBranchPointArray = []LoreBranchPoint

type LoreBranchPointArrayFFI

type LoreBranchPointArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreBranchPointArray

func NewLoreBranchPointArray(arr []LoreBranchPoint) (LoreBranchPointArrayFFI, func())

func (LoreBranchPointArrayFFI) Clone

func (LoreBranchPointArrayFFI) Get

func (LoreBranchPointArrayFFI) Len

func (arr LoreBranchPointArrayFFI) Len() int

type LoreBranchPointFFI

type LoreBranchPointFFI struct {
	/* The branch. */
	Branch LoreBranchId
	/* The revision on the branch. */
	Revision LoreHash
}

func NewLoreBranchPoint

func NewLoreBranchPoint(opts LoreBranchPoint) (LoreBranchPointFFI, func())

func (*LoreBranchPointFFI) Clone

type LoreBranchProtectArgs

type LoreBranchProtectArgs struct {
	/* Name of the branch */
	Branch string
}

type LoreBranchProtectArgsFFI

type LoreBranchProtectArgsFFI struct {
	/* Name of the branch */
	Branch LoreString
}

func NewLoreBranchProtectArgs

func NewLoreBranchProtectArgs(opts LoreBranchProtectArgs) (LoreBranchProtectArgsFFI, func())

type LoreBranchProtectEventData

type LoreBranchProtectEventData struct {
	/* Name of the protected branch. */
	Name string
}

type LoreBranchProtectEventDataFFI

type LoreBranchProtectEventDataFFI struct {
	/* Name of the protected branch. */
	Name LoreString
}

func (*LoreBranchProtectEventDataFFI) Clone

type LoreBranchPushArgs

type LoreBranchPushArgs struct {
	/* Optional branch to push, current branch if not given */
	Branch string
	/* Allow the server to fast-forward merge if the target branch head has moved */
	FastForwardMerge bool
}

type LoreBranchPushArgsFFI

type LoreBranchPushArgsFFI struct {
	/* Optional branch to push, current branch if not given */
	Branch LoreString
	/* Allow the server to fast-forward merge if the target branch head has moved */
	FastForwardMerge uint8
}

func NewLoreBranchPushArgs

func NewLoreBranchPushArgs(opts LoreBranchPushArgs) (LoreBranchPushArgsFFI, func())

type LoreBranchPushBranchCreateBeginEventData

type LoreBranchPushBranchCreateBeginEventData struct {
	/* The repository the branch is created in. */
	Repository LoreRepositoryId
	/* The branch being created. */
	Branch LoreBranchId
	/* The local revision the branch starts from. */
	LocalRevision LoreHash
}

type LoreBranchPushBranchCreateBeginEventDataFFI

type LoreBranchPushBranchCreateBeginEventDataFFI struct {
	/* The repository the branch is created in. */
	Repository LoreRepositoryId
	/* The branch being created. */
	Branch LoreBranchId
	/* The local revision the branch starts from. */
	LocalRevision LoreHash
}

func (*LoreBranchPushBranchCreateBeginEventDataFFI) Clone

type LoreBranchPushBranchCreateEndEventData

type LoreBranchPushBranchCreateEndEventData struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The revision the branch points to on the remote. */
	RemoteRevision LoreHash
}

type LoreBranchPushBranchCreateEndEventDataFFI

type LoreBranchPushBranchCreateEndEventDataFFI struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The revision the branch points to on the remote. */
	RemoteRevision LoreHash
}

func (*LoreBranchPushBranchCreateEndEventDataFFI) Clone

type LoreBranchPushEventData

type LoreBranchPushEventData struct {
	/* The remote being pushed to. */
	Remote string
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The name of the branch being pushed. */
	BranchName string
	/* The latest revision of the branch on the remote. */
	RemoteRevision LoreHash
	/* The latest revision of the branch in the local repository. */
	LocalRevision LoreHash
	/* The number of revisions on the remote that are not present locally. */
	RemoteHistory uint64
	/* The number of local revisions to push. */
	LocalHistory uint64
	/* Set when the local revision is already present on the remote. */
	FlagAlreadyPushed bool
	/* Set when the branch is the repository's default branch. */
	FlagDefault bool
	/* Set when the repository is a linked repository. */
	FlagLink bool
	/* Set when the repository is a layer. */
	FlagLayer bool
}

type LoreBranchPushEventDataFFI

type LoreBranchPushEventDataFFI struct {
	/* The remote being pushed to. */
	Remote LoreString
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The name of the branch being pushed. */
	BranchName LoreString
	/* The latest revision of the branch on the remote. */
	RemoteRevision LoreHash
	/* The latest revision of the branch in the local repository. */
	LocalRevision LoreHash
	/* The number of revisions on the remote that are not present locally. */
	RemoteHistory uint64
	/* The number of local revisions to push. */
	LocalHistory uint64
	/* Set when the local revision is already present on the remote. */
	FlagAlreadyPushed uint8
	/* Set when the branch is the repository's default branch. */
	FlagDefault uint8
	/* Set when the repository is a linked repository. */
	FlagLink uint8
	/* Set when the repository is a layer. */
	FlagLayer uint8
}

func (*LoreBranchPushEventDataFFI) Clone

type LoreBranchPushFragmentBeginEventData

type LoreBranchPushFragmentBeginEventData struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The number of fragments to transfer. */
	Fragments uint64
	/* The total number of bytes to transfer. */
	BytesTotal uint64
}

type LoreBranchPushFragmentBeginEventDataFFI

type LoreBranchPushFragmentBeginEventDataFFI struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The number of fragments to transfer. */
	Fragments uint64
	/* The total number of bytes to transfer. */
	BytesTotal uint64
}

func (*LoreBranchPushFragmentBeginEventDataFFI) Clone

type LoreBranchPushFragmentEndEventData

type LoreBranchPushFragmentEndEventData struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The number of fragments transferred. */
	Fragments uint64
	/* The number of bytes transferred. */
	BytesTransferred uint64
}

type LoreBranchPushFragmentEndEventDataFFI

type LoreBranchPushFragmentEndEventDataFFI struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The number of fragments transferred. */
	Fragments uint64
	/* The number of bytes transferred. */
	BytesTransferred uint64
}

func (*LoreBranchPushFragmentEndEventDataFFI) Clone

type LoreBranchPushFragmentProgressEventData

type LoreBranchPushFragmentProgressEventData struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The number of fragments transferred so far. */
	Complete uint64
	/* The total number of fragments to transfer. */
	Count uint64
	/* The number of bytes transferred so far. */
	BytesTransferred uint64
	/* The total number of bytes to transfer. */
	BytesTotal uint64
}

type LoreBranchPushFragmentProgressEventDataFFI

type LoreBranchPushFragmentProgressEventDataFFI struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The number of fragments transferred so far. */
	Complete uint64
	/* The total number of fragments to transfer. */
	Count uint64
	/* The number of bytes transferred so far. */
	BytesTransferred uint64
	/* The total number of bytes to transfer. */
	BytesTotal uint64
}

func (*LoreBranchPushFragmentProgressEventDataFFI) Clone

type LoreBranchPushRevisionPushBeginEventData

type LoreBranchPushRevisionPushBeginEventData struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed to. */
	Branch LoreBranchId
	/* The latest revision of the branch on the remote. */
	RemoteRevision LoreHash
	/* The local revision being pushed. */
	LocalRevision LoreHash
}

type LoreBranchPushRevisionPushBeginEventDataFFI

type LoreBranchPushRevisionPushBeginEventDataFFI struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed to. */
	Branch LoreBranchId
	/* The latest revision of the branch on the remote. */
	RemoteRevision LoreHash
	/* The local revision being pushed. */
	LocalRevision LoreHash
}

func (*LoreBranchPushRevisionPushBeginEventDataFFI) Clone

type LoreBranchPushRevisionPushEndEventData

type LoreBranchPushRevisionPushEndEventData struct {
	/* The repository that was pushed. */
	Repository LoreRepositoryId
	/* The branch that was pushed to. */
	Branch LoreBranchId
	/* The branch revision on the remote before the push. */
	OldRemoteRevision LoreHash
	/* The branch revision on the remote after the push. */
	NewRemoteRevision LoreHash
	/* The sequential number of the new remote revision. */
	NewRemoteRevisionNumber uint64
	/* A message returned by the remote for the push. */
	Message string
	/* Set when the remote performed a fast-forward merge. */
	FastForwardMerged bool
}

type LoreBranchPushRevisionPushEndEventDataFFI

type LoreBranchPushRevisionPushEndEventDataFFI struct {
	/* The repository that was pushed. */
	Repository LoreRepositoryId
	/* The branch that was pushed to. */
	Branch LoreBranchId
	/* The branch revision on the remote before the push. */
	OldRemoteRevision LoreHash
	/* The branch revision on the remote after the push. */
	NewRemoteRevision LoreHash
	/* The sequential number of the new remote revision. */
	NewRemoteRevisionNumber uint64
	/* A message returned by the remote for the push. */
	Message LoreString
	/* Set when the remote performed a fast-forward merge. */
	FastForwardMerged uint8
}

func (*LoreBranchPushRevisionPushEndEventDataFFI) Clone

type LoreBranchPushRevisionPushUpdateEventData

type LoreBranchPushRevisionPushUpdateEventData struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The revision before the remote reassigned it. */
	OldRevision LoreHash
	/* The revision the remote assigned. */
	NewRevision LoreHash
	/* The sequential number of the new revision. */
	NewRevisionNumber uint64
}

type LoreBranchPushRevisionPushUpdateEventDataFFI

type LoreBranchPushRevisionPushUpdateEventDataFFI struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The revision before the remote reassigned it. */
	OldRevision LoreHash
	/* The revision the remote assigned. */
	NewRevision LoreHash
	/* The sequential number of the new revision. */
	NewRevisionNumber uint64
}

func (*LoreBranchPushRevisionPushUpdateEventDataFFI) Clone

type LoreBranchPushRevisionUpdateBeginEventData

type LoreBranchPushRevisionUpdateBeginEventData struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The revision being updated. */
	Revision LoreHash
	/* The previous parent revision. */
	OldParent LoreHash
	/* The new parent revision. */
	NewParent LoreHash
}

type LoreBranchPushRevisionUpdateBeginEventDataFFI

type LoreBranchPushRevisionUpdateBeginEventDataFFI struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The revision being updated. */
	Revision LoreHash
	/* The previous parent revision. */
	OldParent LoreHash
	/* The new parent revision. */
	NewParent LoreHash
}

func (*LoreBranchPushRevisionUpdateBeginEventDataFFI) Clone

type LoreBranchPushRevisionUpdateEndEventData

type LoreBranchPushRevisionUpdateEndEventData struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The updated revision. */
	Revision LoreHash
}

type LoreBranchPushRevisionUpdateEndEventDataFFI

type LoreBranchPushRevisionUpdateEndEventDataFFI struct {
	/* The repository being pushed. */
	Repository LoreRepositoryId
	/* The branch being pushed. */
	Branch LoreBranchId
	/* The updated revision. */
	Revision LoreHash
}

func (*LoreBranchPushRevisionUpdateEndEventDataFFI) Clone

type LoreBranchPushStatsEventData added in v0.10.0

type LoreBranchPushStatsEventData struct {
	/* Fragments the peer already held, so nothing was registered for them. */
	Deduplicated uint64
	/* Fragments the peer duplicated an association for, sending no payload. */
	Copied uint64
	/* Fragments whose payload was uploaded. */
	Put uint64
}

type LoreBranchPushStatsEventDataFFI added in v0.10.0

type LoreBranchPushStatsEventDataFFI struct {
	/* Fragments the peer already held, so nothing was registered for them. */
	Deduplicated uint64
	/* Fragments the peer duplicated an association for, sending no payload. */
	Copied uint64
	/* Fragments whose payload was uploaded. */
	Put uint64
}

func (*LoreBranchPushStatsEventDataFFI) Clone added in v0.10.0

type LoreBranchResetArgs

type LoreBranchResetArgs struct {
	/* Revision to reset the local LATEST pointer to */
	Revision string
	/* Branch to reset, current branch if empty */
	Branch string
}

type LoreBranchResetArgsFFI

type LoreBranchResetArgsFFI struct {
	/* Revision to reset the local LATEST pointer to */
	Revision LoreString
	/* Branch to reset, current branch if empty */
	Branch LoreString
}

func NewLoreBranchResetArgs

func NewLoreBranchResetArgs(opts LoreBranchResetArgs) (LoreBranchResetArgsFFI, func())

type LoreBranchResetEventData

type LoreBranchResetEventData struct {
	/* Branch identifier. */
	Id LoreContext
	/* Branch name. */
	Name string
	/* Revision the branch was reset to. */
	Revision LoreHash
}

type LoreBranchResetEventDataFFI

type LoreBranchResetEventDataFFI struct {
	/* Branch identifier. */
	Id LoreContext
	/* Branch name. */
	Name LoreString
	/* Revision the branch was reset to. */
	Revision LoreHash
}

func (*LoreBranchResetEventDataFFI) Clone

type LoreBranchScopeEventData added in v0.15.0

type LoreBranchScopeEventData struct {
	/* Branch identifier. */
	Branch LoreBranchId
	/* Identifier of the branch's scope. */
	Scope LoreScopeId
	/* Name of the scope: `default` for the default scope, and otherwise the name the remote
	answered, empty where the name is unknown, as offline, or the scope is archived. */
	Name string
	/* Set where the branch isn't on the remote yet and the scope is the one it inherits from its
	parent branch. */
	Inherited bool
}

type LoreBranchScopeEventDataFFI added in v0.15.0

type LoreBranchScopeEventDataFFI struct {
	/* Branch identifier. */
	Branch LoreBranchId
	/* Identifier of the branch's scope. */
	Scope LoreScopeId
	/* Name of the scope: `default` for the default scope, and otherwise the name the remote
	answered, empty where the name is unknown, as offline, or the scope is archived. */
	Name LoreString
	/* Set where the branch isn't on the remote yet and the scope is the one it inherits from its
	parent branch. */
	Inherited uint8
}

func (*LoreBranchScopeEventDataFFI) Clone added in v0.15.0

type LoreBranchSwitchArgs

type LoreBranchSwitchArgs struct {
	/* Name of the branch */
	Branch string
	/* Hash of the revision */
	Revision string
	/* Reset local modified files to match the incoming revision */
	Reset bool
	/* Only update anchor tracking without modifying or verifying files */
	Bare bool
}

type LoreBranchSwitchArgsFFI

type LoreBranchSwitchArgsFFI struct {
	/* Name of the branch */
	Branch LoreString
	/* Hash of the revision */
	Revision LoreString
	/* Reset local modified files to match the incoming revision */
	Reset uint8
	/* Only update anchor tracking without modifying or verifying files */
	Bare uint8
}

func NewLoreBranchSwitchArgs

func NewLoreBranchSwitchArgs(opts LoreBranchSwitchArgs) (LoreBranchSwitchArgsFFI, func())

type LoreBranchSwitchBeginEventData

type LoreBranchSwitchBeginEventData struct {
	/* Details of the branch being switched to. */
	Branch LoreBranchSwitchData
}

type LoreBranchSwitchBeginEventDataFFI

type LoreBranchSwitchBeginEventDataFFI struct {
	/* Details of the branch being switched to. */
	Branch LoreBranchSwitchDataFFI
}

func (*LoreBranchSwitchBeginEventDataFFI) Clone

type LoreBranchSwitchData

type LoreBranchSwitchData struct {
	/* Branch identifier. */
	Id LoreBranchId
	/* Branch name. */
	Name string
	/* Latest revision known locally for the branch. */
	LatestLocal LoreHash
	/* Latest revision known on the remote for the branch. */
	LatestRemote LoreHash
	/* Revision the branch is switched to. */
	Revision LoreHash
	/* Where the branch exists: local, remote, or both. */
	Location LoreBranchLocation
}

type LoreBranchSwitchDataFFI

type LoreBranchSwitchDataFFI struct {
	/* Branch identifier. */
	Id LoreBranchId
	/* Branch name. */
	Name LoreString
	/* Latest revision known locally for the branch. */
	LatestLocal LoreHash
	/* Latest revision known on the remote for the branch. */
	LatestRemote LoreHash
	/* Revision the branch is switched to. */
	Revision LoreHash
	/* Where the branch exists: local, remote, or both. */
	Location LoreBranchLocation
}

func NewLoreBranchSwitchData

func NewLoreBranchSwitchData(opts LoreBranchSwitchData) (LoreBranchSwitchDataFFI, func())

func (*LoreBranchSwitchDataFFI) Clone

type LoreBranchSwitchEndEventData

type LoreBranchSwitchEndEventData struct {
	/* Details of the branch that was switched to. */
	Branch LoreBranchSwitchData
}

type LoreBranchSwitchEndEventDataFFI

type LoreBranchSwitchEndEventDataFFI struct {
	/* Details of the branch that was switched to. */
	Branch LoreBranchSwitchDataFFI
}

func (*LoreBranchSwitchEndEventDataFFI) Clone

type LoreBranchUnprotectArgs

type LoreBranchUnprotectArgs struct {
	/* Name of the branch */
	Branch string
}

type LoreBranchUnprotectArgsFFI

type LoreBranchUnprotectArgsFFI struct {
	/* Name of the branch */
	Branch LoreString
}

func NewLoreBranchUnprotectArgs

func NewLoreBranchUnprotectArgs(opts LoreBranchUnprotectArgs) (LoreBranchUnprotectArgsFFI, func())

type LoreBranchUnprotectEventData

type LoreBranchUnprotectEventData struct {
	/* Name of the unprotected branch. */
	Name string
}

type LoreBranchUnprotectEventDataFFI

type LoreBranchUnprotectEventDataFFI struct {
	/* Name of the unprotected branch. */
	Name LoreString
}

func (*LoreBranchUnprotectEventDataFFI) Clone

type LoreBytes

type LoreBytes = LoreBinary

type LoreBytesFFI

type LoreBytesFFI = LoreBinaryFFI

type LoreBytesMut added in v0.10.0

type LoreBytesMut struct {
	/* Pointer to the start of the writable slice. */
	Ptr unsafe.Pointer
	/* Number of bytes available behind `ptr`. */
	Len uintptr
}

type LoreBytesMutFFI added in v0.10.0

type LoreBytesMutFFI struct {
	/* Pointer to the start of the writable slice. */
	Ptr unsafe.Pointer
	/* Number of bytes available behind `ptr`. */
	Len uintptr
}

func NewLoreBytesMut added in v0.10.0

func NewLoreBytesMut(opts LoreBytesMut) (LoreBytesMutFFI, func())

func (*LoreBytesMutFFI) Clone added in v0.10.0

func (e *LoreBytesMutFFI) Clone() LoreBytesMut

type LoreCherryPickAbortBeginEventData

type LoreCherryPickAbortBeginEventData struct {
	/* Identifier of the staged revision being discarded. */
	StateStagedRevision LoreHash
	/* Identifier of the current revision being restored. */
	StateCurrentRevision LoreHash
}

type LoreCherryPickAbortBeginEventDataFFI

type LoreCherryPickAbortBeginEventDataFFI struct {
	/* Identifier of the staged revision being discarded. */
	StateStagedRevision LoreHash
	/* Identifier of the current revision being restored. */
	StateCurrentRevision LoreHash
}

func (*LoreCherryPickAbortBeginEventDataFFI) Clone

type LoreCherryPickAbortEndEventData

type LoreCherryPickAbortEndEventData struct {
	/* Unused placeholder field. */
	Unused uint32
}

type LoreCherryPickAbortEndEventDataFFI

type LoreCherryPickAbortEndEventDataFFI struct {
	/* Unused placeholder field. */
	Unused uint32
}

func (*LoreCherryPickAbortEndEventDataFFI) Clone

type LoreCherryPickConflictFileEventData

type LoreCherryPickConflictFileEventData struct {
	/* Path of the file. */
	Path string
}

type LoreCherryPickConflictFileEventDataFFI

type LoreCherryPickConflictFileEventDataFFI struct {
	/* Path of the file. */
	Path LoreString
}

func (*LoreCherryPickConflictFileEventDataFFI) Clone

type LoreCherryPickResolveFileEventData

type LoreCherryPickResolveFileEventData struct {
	/* Path of the file. */
	Path string
}

type LoreCherryPickResolveFileEventDataFFI

type LoreCherryPickResolveFileEventDataFFI struct {
	/* Path of the file. */
	Path LoreString
}

func (*LoreCherryPickResolveFileEventDataFFI) Clone

type LoreCherryPickResolveRevisionEventData

type LoreCherryPickResolveRevisionEventData struct {
	/* Repository identifier. */
	Repository LoreRepositoryId
	/* Identifier of the revision. */
	Revision LoreHash
}

type LoreCherryPickResolveRevisionEventDataFFI

type LoreCherryPickResolveRevisionEventDataFFI struct {
	/* Repository identifier. */
	Repository LoreRepositoryId
	/* Identifier of the revision. */
	Revision LoreHash
}

func (*LoreCherryPickResolveRevisionEventDataFFI) Clone

type LoreCherryPickStartBeginEventData

type LoreCherryPickStartBeginEventData struct {
	/* Branch identifier. */
	Branch LoreBranchId
	/* Identifier of the revision being cherry-picked. */
	Revision LoreHash
	/* Number of the revision being cherry-picked. */
	RevisionNumber uint64
}

type LoreCherryPickStartBeginEventDataFFI

type LoreCherryPickStartBeginEventDataFFI struct {
	/* Branch identifier. */
	Branch LoreBranchId
	/* Identifier of the revision being cherry-picked. */
	Revision LoreHash
	/* Number of the revision being cherry-picked. */
	RevisionNumber uint64
}

func (*LoreCherryPickStartBeginEventDataFFI) Clone

type LoreCherryPickStartEndEventData

type LoreCherryPickStartEndEventData struct {
	/* Progress statistics for the applied changes. */
	Stats LoreRevisionSyncProgressEventData
	/* Resulting revision hash signature. */
	Signature LoreHash
	/* Flag indicating the cherry-pick produced conflicts. */
	HasConflicts bool
}

type LoreCherryPickStartEndEventDataFFI

type LoreCherryPickStartEndEventDataFFI struct {
	/* Progress statistics for the applied changes. */
	Stats LoreRevisionSyncProgressEventDataFFI
	/* Resulting revision hash signature. */
	Signature LoreHash
	/* Flag indicating the cherry-pick produced conflicts. */
	HasConflicts uint8
}

func (*LoreCherryPickStartEndEventDataFFI) Clone

type LoreCherryPickUnresolveFileEventData

type LoreCherryPickUnresolveFileEventData struct {
	/* Path of the file. */
	Path string
}

type LoreCherryPickUnresolveFileEventDataFFI

type LoreCherryPickUnresolveFileEventDataFFI struct {
	/* Path of the file. */
	Path LoreString
}

func (*LoreCherryPickUnresolveFileEventDataFFI) Clone

type LoreCherryPickUnresolveRevisionEventData

type LoreCherryPickUnresolveRevisionEventData struct {
	/* Repository identifier. */
	Repository LoreRepositoryId
	/* Identifier of the revision. */
	Revision LoreHash
}

type LoreCherryPickUnresolveRevisionEventDataFFI

type LoreCherryPickUnresolveRevisionEventDataFFI struct {
	/* Repository identifier. */
	Repository LoreRepositoryId
	/* Identifier of the revision. */
	Revision LoreHash
}

func (*LoreCherryPickUnresolveRevisionEventDataFFI) Clone

type LoreCommitFileStatsData added in v0.10.0

type LoreCommitFileStatsData struct {
	/* Files staged as new additions. */
	Added uint64
	/* Files whose content or mode changed. */
	Modified uint64
	/* Files staged for deletion. */
	Deleted uint64
	/* Files staged as moves. */
	Moved uint64
	/* Files staged as copies. */
	Copied uint64
	/* Directories staged for deletion. */
	DirectoriesDeleted uint64
	/* Files the commit read off disk and fragmented. A different set from
	`files`: a staged file whose content turns out to match the revision it is
	committed against is read and committed as nothing, a view-excluded path is
	committed from its staged node without being read, and an in-memory commit
	reads none at all. */
	FilesRead uint64
	/* Uncompressed content bytes of `files_read`. The same number the progress
	event reports as `bytesTransferred`. */
	BytesTransferred uint64
	/* Files whose content the commit wrote: `added + modified + moved + copied`. */
	Files uint64
	/* Uncompressed content size of exactly the `files` above, so the two are a
	pair. A delete contributes none.

	Distinct from [`FragmentWriteCounts::data_content_bytes`], which counts
	fragments rather than files and excludes every fragment that needed no
	payload. */
	FileBytes uint64
}

type LoreCommitFileStatsDataFFI added in v0.10.0

type LoreCommitFileStatsDataFFI struct {
	/* Files staged as new additions. */
	Added uint64
	/* Files whose content or mode changed. */
	Modified uint64
	/* Files staged for deletion. */
	Deleted uint64
	/* Files staged as moves. */
	Moved uint64
	/* Files staged as copies. */
	Copied uint64
	/* Directories staged for deletion. */
	DirectoriesDeleted uint64
	/* Files the commit read off disk and fragmented. A different set from
	`files`: a staged file whose content turns out to match the revision it is
	committed against is read and committed as nothing, a view-excluded path is
	committed from its staged node without being read, and an in-memory commit
	reads none at all. */
	FilesRead uint64
	/* Uncompressed content bytes of `files_read`. The same number the progress
	event reports as `bytesTransferred`. */
	BytesTransferred uint64
	/* Files whose content the commit wrote: `added + modified + moved + copied`. */
	Files uint64
	/* Uncompressed content size of exactly the `files` above, so the two are a
	pair. A delete contributes none.

	Distinct from [`FragmentWriteCounts::data_content_bytes`], which counts
	fragments rather than files and excludes every fragment that needed no
	payload. */
	FileBytes uint64
}

func NewLoreCommitFileStatsData added in v0.10.0

func NewLoreCommitFileStatsData(opts LoreCommitFileStatsData) (LoreCommitFileStatsDataFFI, func())

func (*LoreCommitFileStatsDataFFI) Clone added in v0.10.0

type LoreCompactionBeginEventData added in v0.8.4

type LoreCompactionBeginEventData struct {
	/* Store size in bytes the pass is reducing the store toward. */
	TargetBytes uint64
}

type LoreCompactionBeginEventDataFFI added in v0.8.4

type LoreCompactionBeginEventDataFFI struct {
	/* Store size in bytes the pass is reducing the store toward. */
	TargetBytes uint64
}

func (*LoreCompactionBeginEventDataFFI) Clone added in v0.8.4

type LoreCompactionEndEventData added in v0.8.4

type LoreCompactionEndEventData struct {
	/* Total bytes reclaimed across the pass. */
	TotalCompactedBytes uint64
}

type LoreCompactionEndEventDataFFI added in v0.8.4

type LoreCompactionEndEventDataFFI struct {
	/* Total bytes reclaimed across the pass. */
	TotalCompactedBytes uint64
}

func (*LoreCompactionEndEventDataFFI) Clone added in v0.8.4

type LoreCompactionProgressEventData added in v0.8.4

type LoreCompactionProgressEventData struct {
	/* Bytes reclaimed from this group. */
	CompactedBytes uint64
}

type LoreCompactionProgressEventDataFFI added in v0.8.4

type LoreCompactionProgressEventDataFFI struct {
	/* Bytes reclaimed from this group. */
	CompactedBytes uint64
}

func (*LoreCompactionProgressEventDataFFI) Clone added in v0.8.4

type LoreCompleteEventData

type LoreCompleteEventData struct {
	/* `0` on success, or the failure's `lore_error_code_t` value. */
	Status int32
	/* The error detail for the operation. The empty default detail on
	success; the populated detail on failure. */
	Error LoreErrorDetail
}

type LoreCompleteEventDataFFI

type LoreCompleteEventDataFFI struct {
	/* `0` on success, or the failure's `lore_error_code_t` value. */
	Status int32
	/* The error detail for the operation. The empty default detail on
	success; the populated detail on failure. */
	Error LoreErrorDetailFFI
}

func (*LoreCompleteEventDataFFI) Clone

type LoreCompressionMode added in v0.10.0

type LoreCompressionMode int32
const (
	LoreCompressionMode_NOT_SPECIFIED  LoreCompressionMode = 0
	LoreCompressionMode_NO_COMPRESSION LoreCompressionMode = 1
	LoreCompressionMode_LZ4            LoreCompressionMode = 2
	LoreCompressionMode_OODLE          LoreCompressionMode = 3
	LoreCompressionMode_ZSTD           LoreCompressionMode = 4
)

type LoreContext

type LoreContext struct {
	Data [16]uint8
}

func (LoreContext) Clone

func (c LoreContext) Clone() LoreContext

func (LoreContext) String

func (c LoreContext) String() string

String returns the context as a lowercase hexadecimal string Implements fmt.Stringer interface

type LoreDependencyResolveBeginEventData

type LoreDependencyResolveBeginEventData struct {
	/* Number of root files resolution starts from. */
	RootCount uint64
}

type LoreDependencyResolveBeginEventDataFFI

type LoreDependencyResolveBeginEventDataFFI struct {
	/* Number of root files resolution starts from. */
	RootCount uint64
}

func (*LoreDependencyResolveBeginEventDataFFI) Clone

type LoreDependencyResolveEndEventData

type LoreDependencyResolveEndEventData struct {
	/* Number of dependency edges that were resolved. */
	ResolvedCount uint64
}

type LoreDependencyResolveEndEventDataFFI

type LoreDependencyResolveEndEventDataFFI struct {
	/* Number of dependency edges that were resolved. */
	ResolvedCount uint64
}

func (*LoreDependencyResolveEndEventDataFFI) Clone

type LoreDependencyResolveItemEventData

type LoreDependencyResolveItemEventData struct {
	/* Path of the file the dependency comes from. */
	Source string
	/* Path of the file the dependency points to. */
	Target string
	/* Tags on this dependency edge. */
	Tags []string
}

type LoreDependencyResolveItemEventDataFFI

type LoreDependencyResolveItemEventDataFFI struct {
	/* Path of the file the dependency comes from. */
	Source LoreString
	/* Path of the file the dependency points to. */
	Target LoreString
	/* Tags on this dependency edge. */
	Tags LoreStringArrayFFI
}

func (*LoreDependencyResolveItemEventDataFFI) Clone

type LoreEndEventData

type LoreEndEventData struct {
	/* Placeholder field; carries no meaningful value. */
	Unused uint32
}

type LoreEndEventDataFFI

type LoreEndEventDataFFI struct {
	/* Placeholder field; carries no meaningful value. */
	Unused uint32
}

func (*LoreEndEventDataFFI) Clone

type LoreErrorCode

type LoreErrorCode int32
const (
	LoreErrorCode_NONE                         LoreErrorCode = 0
	LoreErrorCode_INVALID_ARGUMENTS            LoreErrorCode = 3
	LoreErrorCode_INVALID_PATH                 LoreErrorCode = 4
	LoreErrorCode_INVALID_ADDRESS              LoreErrorCode = 5
	LoreErrorCode_NOT_A_LINK                   LoreErrorCode = 6
	LoreErrorCode_NOT_A_LAYER                  LoreErrorCode = 7
	LoreErrorCode_INVALID_NODE_HIERARCHY       LoreErrorCode = 8
	LoreErrorCode_NOT_SUPPORTED                LoreErrorCode = 9
	LoreErrorCode_NOT_AUTHENTICATED            LoreErrorCode = 16
	LoreErrorCode_NOT_AUTHORIZED               LoreErrorCode = 17
	LoreErrorCode_TOKEN_NOT_FOUND              LoreErrorCode = 18
	LoreErrorCode_WRITE_REQUIRED               LoreErrorCode = 19
	LoreErrorCode_DISCONNECTED                 LoreErrorCode = 28
	LoreErrorCode_NOT_CONNECTED                LoreErrorCode = 29
	LoreErrorCode_MAINTENANCE                  LoreErrorCode = 30
	LoreErrorCode_SLOW_DOWN                    LoreErrorCode = 31
	LoreErrorCode_SERVICE_UNAVAILABLE          LoreErrorCode = 32
	LoreErrorCode_CANCELLED                    LoreErrorCode = 33
	LoreErrorCode_NOTHING_STAGED               LoreErrorCode = 40
	LoreErrorCode_BRANCH_ADVANCED              LoreErrorCode = 41
	LoreErrorCode_DIVERGENT                    LoreErrorCode = 42
	LoreErrorCode_CONFLICT                     LoreErrorCode = 43
	LoreErrorCode_LOCAL_MODIFICATIONS          LoreErrorCode = 44
	LoreErrorCode_LOCK_NOT_OWNED               LoreErrorCode = 45
	LoreErrorCode_IDENTICAL_METADATA           LoreErrorCode = 46
	LoreErrorCode_DELETE_PROTECTED             LoreErrorCode = 47
	LoreErrorCode_DELETE_CURRENT               LoreErrorCode = 48
	LoreErrorCode_DELETE_DEFAULT               LoreErrorCode = 49
	LoreErrorCode_MOUNTS_BUSY                  LoreErrorCode = 51
	LoreErrorCode_LINK_DIVERGENT               LoreErrorCode = 52
	LoreErrorCode_LINK_PINS_DIVERGE            LoreErrorCode = 53
	LoreErrorCode_REPOSITORY_RENAME_INCOMPLETE LoreErrorCode = 54
	LoreErrorCode_WOULD_BLOCK                  LoreErrorCode = 55
	LoreErrorCode_ALREADY_LINKED               LoreErrorCode = 56
	LoreErrorCode_BRANCH_ALREADY_EXISTS        LoreErrorCode = 57
	LoreErrorCode_REPOSITORY_ALREADY_EXISTS    LoreErrorCode = 58
	LoreErrorCode_ALREADY_EXISTS               LoreErrorCode = 59
	LoreErrorCode_NOT_FOUND                    LoreErrorCode = 79
	LoreErrorCode_ADDRESS_NOT_FOUND            LoreErrorCode = 80
	LoreErrorCode_PAYLOAD_NOT_FOUND            LoreErrorCode = 81
	LoreErrorCode_FILE_NOT_FOUND               LoreErrorCode = 82
	LoreErrorCode_NODE_NOT_FOUND               LoreErrorCode = 83
	LoreErrorCode_LINK_NOT_FOUND               LoreErrorCode = 84
	LoreErrorCode_LINK_PATH_NOT_FOUND          LoreErrorCode = 85
	LoreErrorCode_LAYER_NOT_FOUND              LoreErrorCode = 86
	LoreErrorCode_BRANCH_NOT_FOUND             LoreErrorCode = 87
	LoreErrorCode_REVISION_NOT_FOUND           LoreErrorCode = 88
	LoreErrorCode_REPOSITORY_NOT_FOUND         LoreErrorCode = 89
	LoreErrorCode_SHARED_STORE_NOT_FOUND       LoreErrorCode = 90
	LoreErrorCode_LOCK_NOT_FOUND               LoreErrorCode = 91
	LoreErrorCode_PLUGIN_NOT_FOUND             LoreErrorCode = 92
	LoreErrorCode_MISSING_IDENTITY             LoreErrorCode = 110
	LoreErrorCode_NO_REMOTE                    LoreErrorCode = 111
	LoreErrorCode_PLUGIN_CONFIG_ERROR          LoreErrorCode = 112
	LoreErrorCode_PLUGIN_INIT_ERROR            LoreErrorCode = 113
	LoreErrorCode_OVERSIZED                    LoreErrorCode = 118
	LoreErrorCode_MAX_HISTORY_SEARCH_DEPTH     LoreErrorCode = 119
	LoreErrorCode_INEFFICIENT_COMPRESSION      LoreErrorCode = 120
	LoreErrorCode_SHUT_DOWN                    LoreErrorCode = 193
	LoreErrorCode_INTERNAL                     LoreErrorCode = -1
)

type LoreErrorDetail added in v0.8.4

type LoreErrorDetail struct {
	/* The error's code, a `lore_error_code_t` value: `0` on success, `-1` for an internal
	error. */
	ErrorCode int32
	/* The error message, taken from the error's `Display` output. Empty on
	success. */
	Message string
	/* The captured trace, one location per trace entry. Empty when
	`track-locations` is off or the error carries no trace. */
	TraceLocations LoreTraceLocationArray
}

type LoreErrorDetailFFI added in v0.8.4

type LoreErrorDetailFFI struct {
	/* The error's code, a `lore_error_code_t` value: `0` on success, `-1` for an internal
	error. */
	ErrorCode int32
	/* The error message, taken from the error's `Display` output. Empty on
	success. */
	Message LoreString
	/* The captured trace, one location per trace entry. Empty when
	`track-locations` is off or the error carries no trace. */
	TraceLocations LoreTraceLocationArrayFFI
}

func NewLoreErrorDetail added in v0.8.4

func NewLoreErrorDetail(opts LoreErrorDetail) (LoreErrorDetailFFI, func())

func (*LoreErrorDetailFFI) Clone added in v0.8.4

type LoreEvent

type LoreEvent struct {
	Tag  LoreEventTag
	Data any
}

LoreEvent is a Go-native event (safe to keep after callback)

type LoreEventCallback

type LoreEventCallback func(*LoreEventFFI, uint64)

The user's callback function type The event pointer is only valid during the callback

type LoreEventCallbackConfig

type LoreEventCallbackConfig struct {
	Callback    LoreEventCallback
	UserContext uint64 // Optional user-provided context value
}

LoreEventCallbackConfig configures the event callback

type LoreEventCallbackConfigFFI

type LoreEventCallbackConfigFFI struct {
	UserContext uint64
	FuncPtr     uintptr
}

LoreEventCallbackConfigFFI is a C-compatible representation of lore_event_callback_config_t

type LoreEventFFI

type LoreEventFFI struct {
	Tag LoreEventTag
	// contains filtered or unexported fields
}

LoreEventFFI is a C-compatible representation of lore_event_t.

The event — and everything reached through it (GetData results, LoreString values, array views) — is backed by native memory that is only valid for the duration of the event callback invocation. Reading it after the callback returns is a silent use-after-free: no runtime check can catch it, because the FFI values are raw views and copies of raw pointers. Call Clone() inside the callback to get a Go-owned LoreEvent that stays valid afterwards.

func (*LoreEventFFI) Clone

func (e *LoreEventFFI) Clone() LoreEvent

Clone creates a Go-native copy of the event data This copy is safe to keep after the callback returns

func (*LoreEventFFI) GetData

func (e *LoreEventFFI) GetData() any

type LoreEventTag

type LoreEventTag int32
const (
	LoreEventTag_PROGRESS                                       LoreEventTag = 0
	LoreEventTag_COMPLETE                                       LoreEventTag = 2
	LoreEventTag_METADATA                                       LoreEventTag = 3
	LoreEventTag_LOG                                            LoreEventTag = 4
	LoreEventTag_END                                            LoreEventTag = 5
	LoreEventTag_MAINTENANCE                                    LoreEventTag = 6
	LoreEventTag_AUTH_URL                                       LoreEventTag = 7
	LoreEventTag_AUTH_USER_INFO                                 LoreEventTag = 8
	LoreEventTag_AUTH_USER_TOKEN                                LoreEventTag = 9
	LoreEventTag_AUTH_IDENTITY                                  LoreEventTag = 10
	LoreEventTag_BRANCH_CREATE                                  LoreEventTag = 11
	LoreEventTag_BRANCH_MULTIPLE_INSTANCE                       LoreEventTag = 12
	LoreEventTag_BRANCH_ARCHIVE                                 LoreEventTag = 13
	LoreEventTag_BRANCH_LIST_BEGIN                              LoreEventTag = 14
	LoreEventTag_BRANCH_LIST_ENTRY                              LoreEventTag = 15
	LoreEventTag_BRANCH_LIST_END                                LoreEventTag = 16
	LoreEventTag_BRANCH_MERGE_ABORT_BEGIN                       LoreEventTag = 17
	LoreEventTag_BRANCH_MERGE_ABORT_END                         LoreEventTag = 18
	LoreEventTag_BRANCH_INFO                                    LoreEventTag = 19
	LoreEventTag_BRANCH_DIFF_BEGIN                              LoreEventTag = 20
	LoreEventTag_BRANCH_DIFF_CHANGE_BEGIN                       LoreEventTag = 21
	LoreEventTag_BRANCH_DIFF_CHANGE                             LoreEventTag = 22
	LoreEventTag_BRANCH_DIFF_CHANGE_END                         LoreEventTag = 23
	LoreEventTag_BRANCH_DIFF_CONFLICT_BEGIN                     LoreEventTag = 24
	LoreEventTag_BRANCH_DIFF_CONFLICT                           LoreEventTag = 25
	LoreEventTag_BRANCH_DIFF_CONFLICT_END                       LoreEventTag = 26
	LoreEventTag_BRANCH_DIFF_END                                LoreEventTag = 27
	LoreEventTag_BRANCH_LATEST_LIST_ENTRY                       LoreEventTag = 28
	LoreEventTag_BRANCH_MERGE_CONFLICT_FILE                     LoreEventTag = 29
	LoreEventTag_BRANCH_MERGE_LINK_SKIPPED                      LoreEventTag = 30
	LoreEventTag_BRANCH_MERGE_UNRESOLVE_FILE                    LoreEventTag = 31
	LoreEventTag_BRANCH_MERGE_UNRESOLVE_REVISION                LoreEventTag = 32
	LoreEventTag_BRANCH_MERGE_INTO_FILE_BEGIN                   LoreEventTag = 33
	LoreEventTag_BRANCH_MERGE_INTO_FILE                         LoreEventTag = 34
	LoreEventTag_BRANCH_MERGE_INTO_FILE_END                     LoreEventTag = 35
	LoreEventTag_BRANCH_MERGE_INTO_FRAGMENT_BEGIN               LoreEventTag = 36
	LoreEventTag_BRANCH_MERGE_INTO_FRAGMENT_PROGRESS            LoreEventTag = 37
	LoreEventTag_BRANCH_MERGE_INTO_FRAGMENT_END                 LoreEventTag = 38
	LoreEventTag_BRANCH_MERGE_INTO_REVISION                     LoreEventTag = 39
	LoreEventTag_BRANCH_MERGE_INTO_SYNC_BEGIN                   LoreEventTag = 40
	LoreEventTag_BRANCH_MERGE_INTO_SYNC_END                     LoreEventTag = 41
	LoreEventTag_BRANCH_MERGE_RESOLVE_FILE                      LoreEventTag = 42
	LoreEventTag_BRANCH_MERGE_RESOLVE_REVISION                  LoreEventTag = 43
	LoreEventTag_BRANCH_MERGE_START_BEGIN                       LoreEventTag = 44
	LoreEventTag_BRANCH_MERGE_START_END                         LoreEventTag = 45
	LoreEventTag_CHERRY_PICK_START_BEGIN                        LoreEventTag = 46
	LoreEventTag_CHERRY_PICK_START_END                          LoreEventTag = 47
	LoreEventTag_CHERRY_PICK_ABORT_BEGIN                        LoreEventTag = 48
	LoreEventTag_CHERRY_PICK_ABORT_END                          LoreEventTag = 49
	LoreEventTag_CHERRY_PICK_CONFLICT_FILE                      LoreEventTag = 50
	LoreEventTag_CHERRY_PICK_UNRESOLVE_FILE                     LoreEventTag = 51
	LoreEventTag_CHERRY_PICK_UNRESOLVE_REVISION                 LoreEventTag = 52
	LoreEventTag_CHERRY_PICK_RESOLVE_FILE                       LoreEventTag = 53
	LoreEventTag_CHERRY_PICK_RESOLVE_REVISION                   LoreEventTag = 54
	LoreEventTag_REVERT_START_BEGIN                             LoreEventTag = 55
	LoreEventTag_REVERT_START_END                               LoreEventTag = 56
	LoreEventTag_REVERT_ABORT_BEGIN                             LoreEventTag = 57
	LoreEventTag_REVERT_ABORT_END                               LoreEventTag = 58
	LoreEventTag_REVERT_RESOLVE_FILE                            LoreEventTag = 59
	LoreEventTag_REVERT_RESOLVE_REVISION                        LoreEventTag = 60
	LoreEventTag_REVERT_CONFLICT_FILE                           LoreEventTag = 61
	LoreEventTag_REVERT_UNRESOLVE_FILE                          LoreEventTag = 62
	LoreEventTag_REVERT_UNRESOLVE_REVISION                      LoreEventTag = 63
	LoreEventTag_BRANCH_PROTECT                                 LoreEventTag = 64
	LoreEventTag_BRANCH_PUSH                                    LoreEventTag = 65
	LoreEventTag_BRANCH_PUSH_REVISION_UPDATE_BEGIN              LoreEventTag = 66
	LoreEventTag_BRANCH_PUSH_REVISION_UPDATE_END                LoreEventTag = 67
	LoreEventTag_BRANCH_PUSH_FRAGMENT_BEGIN                     LoreEventTag = 68
	LoreEventTag_BRANCH_PUSH_FRAGMENT_PROGRESS                  LoreEventTag = 69
	LoreEventTag_BRANCH_PUSH_FRAGMENT_END                       LoreEventTag = 70
	LoreEventTag_BRANCH_PUSH_BRANCH_CREATE_BEGIN                LoreEventTag = 71
	LoreEventTag_BRANCH_PUSH_BRANCH_CREATE_END                  LoreEventTag = 72
	LoreEventTag_BRANCH_PUSH_REVISION_PUSH_BEGIN                LoreEventTag = 73
	LoreEventTag_BRANCH_PUSH_REVISION_PUSH_UPDATE               LoreEventTag = 74
	LoreEventTag_BRANCH_PUSH_REVISION_PUSH_END                  LoreEventTag = 75
	LoreEventTag_BRANCH_RESET                                   LoreEventTag = 76
	LoreEventTag_BRANCH_SWITCH_BEGIN                            LoreEventTag = 77
	LoreEventTag_BRANCH_SWITCH_END                              LoreEventTag = 78
	LoreEventTag_BRANCH_UNPROTECT                               LoreEventTag = 79
	LoreEventTag_FILE_INFO                                      LoreEventTag = 80
	LoreEventTag_FILE_DIFF                                      LoreEventTag = 81
	LoreEventTag_FILE_HASH                                      LoreEventTag = 82
	LoreEventTag_FILE_HISTORY                                   LoreEventTag = 83
	LoreEventTag_FILE_WRITE                                     LoreEventTag = 84
	LoreEventTag_FILE_OBLITERATE                                LoreEventTag = 85
	LoreEventTag_FILE_DUMP                                      LoreEventTag = 86
	LoreEventTag_FILE_DEPENDENCY_ADD_BEGIN                      LoreEventTag = 87
	LoreEventTag_FILE_DEPENDENCY_ADD_ENTRY                      LoreEventTag = 88
	LoreEventTag_FILE_DEPENDENCY_ADD_END                        LoreEventTag = 89
	LoreEventTag_FILE_DEPENDENCY_REMOVE_BEGIN                   LoreEventTag = 90
	LoreEventTag_FILE_DEPENDENCY_REMOVE_ENTRY                   LoreEventTag = 91
	LoreEventTag_FILE_DEPENDENCY_REMOVE_END                     LoreEventTag = 92
	LoreEventTag_FILE_DEPENDENCY_LIST_BEGIN                     LoreEventTag = 93
	LoreEventTag_FILE_DEPENDENCY_LIST_FILE                      LoreEventTag = 94
	LoreEventTag_FILE_DEPENDENCY_LIST_ENTRY                     LoreEventTag = 95
	LoreEventTag_FILE_DEPENDENCY_LIST_FILE_END                  LoreEventTag = 96
	LoreEventTag_FILE_DEPENDENCY_LIST_END                       LoreEventTag = 97
	LoreEventTag_FILE_RESET_BEGIN                               LoreEventTag = 98
	LoreEventTag_FILE_RESET_PROGRESS                            LoreEventTag = 99
	LoreEventTag_FILE_RESET_END                                 LoreEventTag = 100
	LoreEventTag_FILE_RESET_FILE                                LoreEventTag = 101
	LoreEventTag_FILTER_EXCLUDE                                 LoreEventTag = 102
	LoreEventTag_FILE_STAGE_BEGIN                               LoreEventTag = 103
	LoreEventTag_FILE_STAGE_PROGRESS                            LoreEventTag = 104
	LoreEventTag_FILE_STAGE_END                                 LoreEventTag = 105
	LoreEventTag_FILE_STAGE_REVISION                            LoreEventTag = 106
	LoreEventTag_FILE_STAGE_FILE                                LoreEventTag = 107
	LoreEventTag_FILE_UNSTAGE_BEGIN                             LoreEventTag = 108
	LoreEventTag_FILE_UNSTAGE_PROGRESS                          LoreEventTag = 109
	LoreEventTag_FILE_UNSTAGE_END                               LoreEventTag = 110
	LoreEventTag_FILE_UNSTAGE_REVISION                          LoreEventTag = 111
	LoreEventTag_FILE_UNSTAGE_FILE                              LoreEventTag = 112
	LoreEventTag_FRAGMENT_WRITE                                 LoreEventTag = 113
	LoreEventTag_LAYER_ADD                                      LoreEventTag = 114
	LoreEventTag_LAYER_ENTRY                                    LoreEventTag = 115
	LoreEventTag_LAYER_REMOVE                                   LoreEventTag = 116
	LoreEventTag_LAYER_STAGED_ENTRY                             LoreEventTag = 117
	LoreEventTag_LINK_BRANCH_CREATE                             LoreEventTag = 118
	LoreEventTag_LINK_CHANGE                                    LoreEventTag = 119
	LoreEventTag_LINK_ENTRY                                     LoreEventTag = 120
	LoreEventTag_LINK_INFO                                      LoreEventTag = 121
	LoreEventTag_LOCK_FILE_ACQUIRE_BEGIN                        LoreEventTag = 122
	LoreEventTag_LOCK_FILE_ACQUIRE                              LoreEventTag = 123
	LoreEventTag_LOCK_FILE_STATUS_BEGIN                         LoreEventTag = 124
	LoreEventTag_LOCK_FILE_STATUS                               LoreEventTag = 125
	LoreEventTag_LOCK_FILE_QUERY_BEGIN                          LoreEventTag = 126
	LoreEventTag_LOCK_FILE_QUERY                                LoreEventTag = 127
	LoreEventTag_LOCK_FILE_RELEASE_BEGIN                        LoreEventTag = 128
	LoreEventTag_LOCK_FILE_RELEASE                              LoreEventTag = 129
	LoreEventTag_METADATA_CLEAR_FILE                            LoreEventTag = 130
	LoreEventTag_METADATA_CLEAR_REVISION                        LoreEventTag = 131
	LoreEventTag_PATH_IGNORE                                    LoreEventTag = 132
	LoreEventTag_REPOSITORY_CREATE                              LoreEventTag = 133
	LoreEventTag_REPOSITORY_CLONE_BEGIN                         LoreEventTag = 134
	LoreEventTag_REPOSITORY_CLONE_PROGRESS                      LoreEventTag = 135
	LoreEventTag_REPOSITORY_CLONE_END                           LoreEventTag = 136
	LoreEventTag_DEPENDENCY_RESOLVE_BEGIN                       LoreEventTag = 137
	LoreEventTag_DEPENDENCY_RESOLVE_ITEM                        LoreEventTag = 138
	LoreEventTag_DEPENDENCY_RESOLVE_END                         LoreEventTag = 139
	LoreEventTag_REPOSITORY_DATA                                LoreEventTag = 140
	LoreEventTag_REPOSITORY_CONFIG_GET                          LoreEventTag = 141
	LoreEventTag_REPOSITORY_DUMP_BEGIN                          LoreEventTag = 142
	LoreEventTag_REPOSITORY_DUMP_END                            LoreEventTag = 143
	LoreEventTag_REPOSITORY_LIST_ENTRY                          LoreEventTag = 144
	LoreEventTag_REPOSITORY_INSTANCE                            LoreEventTag = 145
	LoreEventTag_REPOSITORY_VERIFY_STATE_BEGIN                  LoreEventTag = 146
	LoreEventTag_REPOSITORY_VERIFY_STATE_END                    LoreEventTag = 147
	LoreEventTag_REPOSITORY_VERIFY_FRAGMENT                     LoreEventTag = 148
	LoreEventTag_REPOSITORY_VERIFY_FRAGMENT_MATCH               LoreEventTag = 149
	LoreEventTag_REPOSITORY_VERIFY_FRAGMENT_REMOTE              LoreEventTag = 150
	LoreEventTag_REPOSITORY_STATE_DUMP                          LoreEventTag = 151
	LoreEventTag_REPOSITORY_STATE_DUMP_NODE                     LoreEventTag = 152
	LoreEventTag_REPOSITORY_STATUS_REVISION                     LoreEventTag = 153
	LoreEventTag_REPOSITORY_STATUS_FILE                         LoreEventTag = 154
	LoreEventTag_REPOSITORY_STATUS_COUNT                        LoreEventTag = 155
	LoreEventTag_REPOSITORY_STATUS_SUMMARY                      LoreEventTag = 156
	LoreEventTag_REPOSITORY_STORE_IMMUTABLE_QUERY               LoreEventTag = 157
	LoreEventTag_REVISION_COMMIT_BEGIN                          LoreEventTag = 158
	LoreEventTag_REVISION_COMMIT_PROGRESS                       LoreEventTag = 159
	LoreEventTag_REVISION_COMMIT_END                            LoreEventTag = 160
	LoreEventTag_REVISION_COMMIT_REVISION                       LoreEventTag = 161
	LoreEventTag_REVISION_INFO                                  LoreEventTag = 162
	LoreEventTag_REVISION_INFO_DELTA                            LoreEventTag = 163
	LoreEventTag_REVISION_DIFF_FILE                             LoreEventTag = 164
	LoreEventTag_REVISION_FIND                                  LoreEventTag = 165
	LoreEventTag_REVISION_HISTORY                               LoreEventTag = 166
	LoreEventTag_REVISION_HISTORY_ENTRY                         LoreEventTag = 167
	LoreEventTag_REVISION_RESTORE_FILE_BEGIN                    LoreEventTag = 168
	LoreEventTag_REVISION_RESTORE_FILE                          LoreEventTag = 169
	LoreEventTag_REVISION_RESTORE_FILE_END                      LoreEventTag = 170
	LoreEventTag_REVISION_RESTORE_FRAGMENT_BEGIN                LoreEventTag = 171
	LoreEventTag_REVISION_RESTORE_FRAGMENT_PROGRESS             LoreEventTag = 172
	LoreEventTag_REVISION_RESTORE_FRAGMENT_END                  LoreEventTag = 173
	LoreEventTag_REVISION_RESTORE_REVISION                      LoreEventTag = 174
	LoreEventTag_REVISION_RESTORE_SYNC_BEGIN                    LoreEventTag = 175
	LoreEventTag_REVISION_RESTORE_SYNC_END                      LoreEventTag = 176
	LoreEventTag_REVISION_RESOLVE                               LoreEventTag = 177
	LoreEventTag_REVISION_SYNC_TARGET                           LoreEventTag = 178
	LoreEventTag_REVISION_SYNC_FILE                             LoreEventTag = 179
	LoreEventTag_REVISION_SYNC_PROGRESS                         LoreEventTag = 180
	LoreEventTag_REVISION_SYNC_REVISION                         LoreEventTag = 181
	LoreEventTag_REVISION_BISECT                                LoreEventTag = 182
	LoreEventTag_NOTIFICATION_BRANCH_CREATED                    LoreEventTag = 183
	LoreEventTag_NOTIFICATION_BRANCH_DELETED                    LoreEventTag = 184
	LoreEventTag_NOTIFICATION_BRANCH_PUSHED                     LoreEventTag = 185
	LoreEventTag_NOTIFICATION_RESOURCE_LOCKED                   LoreEventTag = 186
	LoreEventTag_NOTIFICATION_RESOURCE_UNLOCKED                 LoreEventTag = 187
	LoreEventTag_NOTIFICATION_SUBSCRIBED                        LoreEventTag = 188
	LoreEventTag_NOTIFICATION_UNSUBSCRIBED                      LoreEventTag = 189
	LoreEventTag_SHARED_STORE_CREATE                            LoreEventTag = 190
	LoreEventTag_SHARED_STORE_INFO                              LoreEventTag = 191
	LoreEventTag_SHARED_STORE_LIST                              LoreEventTag = 192
	LoreEventTag_LINK_STAGED_ENTRY                              LoreEventTag = 193
	LoreEventTag_STORAGE_OPENED                                 LoreEventTag = 194
	LoreEventTag_STORAGE_PUT_ITEM_COMPLETE                      LoreEventTag = 195
	LoreEventTag_STORAGE_GET_HEADER                             LoreEventTag = 196
	LoreEventTag_STORAGE_GET_DATA                               LoreEventTag = 197
	LoreEventTag_STORAGE_GET_ITEM_COMPLETE                      LoreEventTag = 198
	LoreEventTag_STORAGE_GET_METADATA_ITEM_COMPLETE             LoreEventTag = 199
	LoreEventTag_STORAGE_COPY_ITEM_COMPLETE                     LoreEventTag = 200
	LoreEventTag_STORAGE_OBLITERATE_ITEM_COMPLETE               LoreEventTag = 201
	LoreEventTag_STORAGE_UPLOAD_ITEM_COMPLETE                   LoreEventTag = 202
	LoreEventTag_REVISION_TREE_LOADED                           LoreEventTag = 203
	LoreEventTag_REVISION_TREE_RESOLVE_PATH_COMPLETE            LoreEventTag = 204
	LoreEventTag_REVISION_TREE_CHILD                            LoreEventTag = 205
	LoreEventTag_REVISION_TREE_NODE_INFO                        LoreEventTag = 206
	LoreEventTag_REVISION_TREE_NODE_PATH                        LoreEventTag = 207
	LoreEventTag_REVISION_TREE_ADD_COMPLETE                     LoreEventTag = 208
	LoreEventTag_REVISION_TREE_DELETE_COMPLETE                  LoreEventTag = 209
	LoreEventTag_REVISION_TREE_MODIFY_COMPLETE                  LoreEventTag = 210
	LoreEventTag_REVISION_TREE_MOVE_COMPLETE                    LoreEventTag = 211
	LoreEventTag_REVISION_TREE_METADATA_SET_COMPLETE            LoreEventTag = 212
	LoreEventTag_REVISION_TREE_METADATA_GET_COMPLETE            LoreEventTag = 213
	LoreEventTag_REVISION_TREE_COMMIT_COMPLETE                  LoreEventTag = 214
	LoreEventTag_REVISION_TREE_CLOSE_COMPLETE                   LoreEventTag = 215
	LoreEventTag_REVISION_TREE_LIST_CHILDREN_BEGIN              LoreEventTag = 216
	LoreEventTag_REVISION_TREE_INFO                             LoreEventTag = 217
	LoreEventTag_STORAGE_MUTABLE_LOAD_ITEM_COMPLETE             LoreEventTag = 218
	LoreEventTag_STORAGE_MUTABLE_STORE_ITEM_COMPLETE            LoreEventTag = 219
	LoreEventTag_STORAGE_MUTABLE_COMPARE_AND_SWAP_ITEM_COMPLETE LoreEventTag = 220
	LoreEventTag_STORAGE_MUTABLE_LIST_ENTRY                     LoreEventTag = 221
	LoreEventTag_STORAGE_MUTABLE_LIST_ITEM_COMPLETE             LoreEventTag = 222
	LoreEventTag_EVICTION_BEGIN                                 LoreEventTag = 223
	LoreEventTag_EVICTION_PROGRESS                              LoreEventTag = 224
	LoreEventTag_EVICTION_END                                   LoreEventTag = 225
	LoreEventTag_COMPACTION_BEGIN                               LoreEventTag = 226
	LoreEventTag_COMPACTION_PROGRESS                            LoreEventTag = 227
	LoreEventTag_COMPACTION_END                                 LoreEventTag = 228
	LoreEventTag_REVISION_TREE_BATCH_COMPLETE                   LoreEventTag = 229
	LoreEventTag_REVISION_TREE_METADATA_CLEAR_COMPLETE          LoreEventTag = 230
	LoreEventTag_REVISION_COMMIT_STATS                          LoreEventTag = 231
	LoreEventTag_BRANCH_PUSH_STATS                              LoreEventTag = 232
	LoreEventTag_SERVICE_STATUS                                 LoreEventTag = 233
	LoreEventTag_SERVICE_MESSAGE                                LoreEventTag = 234
	LoreEventTag_AUTH_PENDING                                   LoreEventTag = 235
	LoreEventTag_STORAGE_GET_FRAGMENT                           LoreEventTag = 236
	LoreEventTag_FILE_AUDIT                                     LoreEventTag = 237
	LoreEventTag_REPOSITORY_INSTANCE_DELETE_BEGIN               LoreEventTag = 238
	LoreEventTag_REPOSITORY_INSTANCE_DELETE_PROGRESS            LoreEventTag = 239
	LoreEventTag_REPOSITORY_INSTANCE_DELETE_COMPLETE            LoreEventTag = 240
	LoreEventTag_REPOSITORY_INSTANCE_MOVE_BEGIN                 LoreEventTag = 241
	LoreEventTag_REPOSITORY_INSTANCE_MOVE_COMPLETE              LoreEventTag = 242
	LoreEventTag_REPOSITORY_INSTANCE_CLONE_BEGIN                LoreEventTag = 243
	LoreEventTag_REPOSITORY_INSTANCE_CLONE_PROGRESS             LoreEventTag = 244
	LoreEventTag_REPOSITORY_INSTANCE_CLONE_COMPLETE             LoreEventTag = 245
	LoreEventTag_REVISION_GRAPH_BRANCH                          LoreEventTag = 246
	LoreEventTag_REVISION_GRAPH_INSTANCE                        LoreEventTag = 247
	LoreEventTag_REVISION_GRAPH_REVISION                        LoreEventTag = 248
	LoreEventTag_REVISION_GRAPH_LOCATION_COMPLETE               LoreEventTag = 249
	LoreEventTag_REVISION_GRAPH_BRANCH_METADATA                 LoreEventTag = 250
	LoreEventTag_REVISION_GRAPH_BRANCH_SYNCED                   LoreEventTag = 251
	LoreEventTag_BRANCH_MERGE_LINK_PIN_CONFLICT                 LoreEventTag = 252
	LoreEventTag_BRANCH_MERGE_LINK_PIN_RESOLVED                 LoreEventTag = 253
	LoreEventTag_STORAGE_PUT_STATS                              LoreEventTag = 254
	LoreEventTag_REVISION_GRAPH_BRANCH_PUSHED                   LoreEventTag = 255
	LoreEventTag_SCOPE_CREATE                                   LoreEventTag = 256
	LoreEventTag_SCOPE_INFO                                     LoreEventTag = 257
	LoreEventTag_SCOPE_RENAME                                   LoreEventTag = 258
	LoreEventTag_SCOPE_ARCHIVE                                  LoreEventTag = 259
	LoreEventTag_BRANCH_SCOPE                                   LoreEventTag = 260
)

type LoreEvictionBeginEventData added in v0.8.4

type LoreEvictionBeginEventData struct {
	/* Fragment capacity the pass is reducing the store toward. */
	TargetFragments uint64
}

type LoreEvictionBeginEventDataFFI added in v0.8.4

type LoreEvictionBeginEventDataFFI struct {
	/* Fragment capacity the pass is reducing the store toward. */
	TargetFragments uint64
}

func (*LoreEvictionBeginEventDataFFI) Clone added in v0.8.4

type LoreEvictionEndEventData added in v0.8.4

type LoreEvictionEndEventData struct {
	/* Total fragments evicted across the pass. */
	TotalEvicted uint64
}

type LoreEvictionEndEventDataFFI added in v0.8.4

type LoreEvictionEndEventDataFFI struct {
	/* Total fragments evicted across the pass. */
	TotalEvicted uint64
}

func (*LoreEvictionEndEventDataFFI) Clone added in v0.8.4

type LoreEvictionProgressEventData added in v0.8.4

type LoreEvictionProgressEventData struct {
	/* Fragments evicted from this bucket. */
	Evicted uint64
}

type LoreEvictionProgressEventDataFFI added in v0.8.4

type LoreEvictionProgressEventDataFFI struct {
	/* Fragments evicted from this bucket. */
	Evicted uint64
}

func (*LoreEvictionProgressEventDataFFI) Clone added in v0.8.4

type LoreExternalRootState added in v0.15.0

type LoreExternalRootState int32
const (
	LoreExternalRootState_AVAILABLE   LoreExternalRootState = 0
	LoreExternalRootState_UNAVAILABLE LoreExternalRootState = 1
	LoreExternalRootState_INTERRUPTED LoreExternalRootState = 2
)

type LoreFileAction

type LoreFileAction int32
const (
	LoreFileAction_KEEP   LoreFileAction = 0
	LoreFileAction_ADD    LoreFileAction = 1
	LoreFileAction_DELETE LoreFileAction = 2
	LoreFileAction_MOVE   LoreFileAction = 3
	LoreFileAction_COPY   LoreFileAction = 4
)

type LoreFileAuditArgs added in v0.11.0

type LoreFileAuditArgs struct {
	/* A path to a file */
	Path string
	/* Revision to read the file at, in any form a revision specifier takes: a
	whole hash signature, `[branch]@<number>`, `[branch]@LATEST` or
	`<branch>@<hash>`, optionally followed by `~<count>` to step back that many
	parents. Empty reads the revision the instance is synced to and accounts for
	the file on disk */
	Revision string
	/* Revisions of the file's predecessor chain to walk, `0` for the default of
	100 and `UINT32_MAX` for the whole chain. Zero means the default rather
	than no limit, as `lore_file_history_args_t::length` does, so a
	zero-initialized value is bounded */
	MaxRevisions uint32
	/* Count a line that differs only in trailing whitespace as changed.
	Trailing whitespace is ignored by default, so the field is stated as the
	refusal and a zero-initialized value carries the default */
	NoIgnoreSpaceAtEol bool
	/* Collapse runs of internal whitespace to a single space before comparing,
	which leaves a reindented line with the revision that wrote its text */
	IgnoreSpaceChange bool
}

type LoreFileAuditArgsFFI added in v0.11.0

type LoreFileAuditArgsFFI struct {
	/* A path to a file */
	Path LoreString
	/* Revision to read the file at, in any form a revision specifier takes: a
	whole hash signature, `[branch]@<number>`, `[branch]@LATEST` or
	`<branch>@<hash>`, optionally followed by `~<count>` to step back that many
	parents. Empty reads the revision the instance is synced to and accounts for
	the file on disk */
	Revision LoreString
	/* Revisions of the file's predecessor chain to walk, `0` for the default of
	100 and `UINT32_MAX` for the whole chain. Zero means the default rather
	than no limit, as `lore_file_history_args_t::length` does, so a
	zero-initialized value is bounded */
	MaxRevisions uint32
	/* Count a line that differs only in trailing whitespace as changed.
	Trailing whitespace is ignored by default, so the field is stated as the
	refusal and a zero-initialized value carries the default */
	NoIgnoreSpaceAtEol uint8
	/* Collapse runs of internal whitespace to a single space before comparing,
	which leaves a reindented line with the revision that wrote its text */
	IgnoreSpaceChange uint8
}

func NewLoreFileAuditArgs added in v0.11.0

func NewLoreFileAuditArgs(opts LoreFileAuditArgs) (LoreFileAuditArgsFFI, func())

type LoreFileAuditEventData added in v0.11.0

type LoreFileAuditEventData struct {
	/* Identifier of the repository the range came from. A walk that follows
	the file into a linked repository reports that repository. */
	Repository LoreRepositoryId
	/* Revision that last changed the range. Zero unless `outcome` is
	`Attributed`. */
	Revision LoreHash
	/* First line of the range, 1-based. */
	LineFirst uint32
	/* Last line of the range, 1-based and inclusive. */
	LineLast uint32
	/* What the range resolved to, or why it did not resolve. */
	Outcome LoreFileAuditOutcome
}

type LoreFileAuditEventDataFFI added in v0.11.0

type LoreFileAuditEventDataFFI struct {
	/* Identifier of the repository the range came from. A walk that follows
	the file into a linked repository reports that repository. */
	Repository LoreRepositoryId
	/* Revision that last changed the range. Zero unless `outcome` is
	`Attributed`. */
	Revision LoreHash
	/* First line of the range, 1-based. */
	LineFirst uint32
	/* Last line of the range, 1-based and inclusive. */
	LineLast uint32
	/* What the range resolved to, or why it did not resolve. */
	Outcome LoreFileAuditOutcome
}

func (*LoreFileAuditEventDataFFI) Clone added in v0.11.0

type LoreFileAuditOutcome added in v0.11.0

type LoreFileAuditOutcome int32
const (
	LoreFileAuditOutcome_ATTRIBUTED          LoreFileAuditOutcome = 0
	LoreFileAuditOutcome_UNCOMMITTED         LoreFileAuditOutcome = 1
	LoreFileAuditOutcome_BUDGET_EXHAUSTED    LoreFileAuditOutcome = 2
	LoreFileAuditOutcome_OBLITERATED         LoreFileAuditOutcome = 3
	LoreFileAuditOutcome_BINARY_IN_HISTORY   LoreFileAuditOutcome = 4
	LoreFileAuditOutcome_LINK_UNAVAILABLE    LoreFileAuditOutcome = 5
	LoreFileAuditOutcome_CONTENT_UNAVAILABLE LoreFileAuditOutcome = 6
	LoreFileAuditOutcome_UNRESOLVED          LoreFileAuditOutcome = 7
)

type LoreFileDependencyAddArgs

type LoreFileDependencyAddArgs struct {
	/* Source file paths that will have dependencies added. */
	Paths []string
	/* Dependency target file paths (flat array). */
	Dependencies []string
	/* Tags to apply to the added dependencies (flat array). */
	Tags []string
	/* Number of dependencies per source file path. */
	DepCounts LoreUint32Array
	/* Number of tags per dependency entry. */
	TagCounts LoreUint32Array
	/* Skip cycle detection. */
	Force bool
}

type LoreFileDependencyAddArgsFFI

type LoreFileDependencyAddArgsFFI struct {
	/* Source file paths that will have dependencies added. */
	Paths LoreStringArrayFFI
	/* Dependency target file paths (flat array). */
	Dependencies LoreStringArrayFFI
	/* Tags to apply to the added dependencies (flat array). */
	Tags LoreStringArrayFFI
	/* Number of dependencies per source file path. */
	DepCounts LoreUint32ArrayFFI
	/* Number of tags per dependency entry. */
	TagCounts LoreUint32ArrayFFI
	/* Skip cycle detection. */
	Force uint8
}

func NewLoreFileDependencyAddArgs

func NewLoreFileDependencyAddArgs(opts LoreFileDependencyAddArgs) (LoreFileDependencyAddArgsFFI, func())

type LoreFileDependencyAddBeginEventData

type LoreFileDependencyAddBeginEventData struct {
	/* Number of source files being processed. */
	PathCount uint64
	/* Number of dependency edges being added. */
	DependencyCount uint64
}

type LoreFileDependencyAddBeginEventDataFFI

type LoreFileDependencyAddBeginEventDataFFI struct {
	/* Number of source files being processed. */
	PathCount uint64
	/* Number of dependency edges being added. */
	DependencyCount uint64
}

func (*LoreFileDependencyAddBeginEventDataFFI) Clone

type LoreFileDependencyAddEndEventData

type LoreFileDependencyAddEndEventData struct {
	/* Number of dependency edges that were added. */
	AddedCount uint64
}

type LoreFileDependencyAddEndEventDataFFI

type LoreFileDependencyAddEndEventDataFFI struct {
	/* Number of dependency edges that were added. */
	AddedCount uint64
}

func (*LoreFileDependencyAddEndEventDataFFI) Clone

type LoreFileDependencyAddEntryEventData

type LoreFileDependencyAddEntryEventData struct {
	/* Path of the source file that gains the dependency. */
	Path string
	/* Path of the file being depended on. */
	Dependency string
	/* Tags applied to this dependency edge. */
	Tags []string
}

type LoreFileDependencyAddEntryEventDataFFI

type LoreFileDependencyAddEntryEventDataFFI struct {
	/* Path of the source file that gains the dependency. */
	Path LoreString
	/* Path of the file being depended on. */
	Dependency LoreString
	/* Tags applied to this dependency edge. */
	Tags LoreStringArrayFFI
}

func (*LoreFileDependencyAddEntryEventDataFFI) Clone

type LoreFileDependencyListArgs

type LoreFileDependencyListArgs struct {
	/* Files to query. */
	Paths []string
	/* Revision to query at. */
	Revision string
	/* Follow transitive dependencies recursively. */
	Recursive bool
	/* Return dependents instead of dependencies. */
	Reverse bool
	/* Filter results by tags. */
	Tags []string
	/* Maximum recursion depth (0 = unlimited). */
	DepthLimit uint32
}

type LoreFileDependencyListArgsFFI

type LoreFileDependencyListArgsFFI struct {
	/* Files to query. */
	Paths LoreStringArrayFFI
	/* Revision to query at. */
	Revision LoreString
	/* Follow transitive dependencies recursively. */
	Recursive uint8
	/* Return dependents instead of dependencies. */
	Reverse uint8
	/* Filter results by tags. */
	Tags LoreStringArrayFFI
	/* Maximum recursion depth (0 = unlimited). */
	DepthLimit uint32
}

func NewLoreFileDependencyListArgs

func NewLoreFileDependencyListArgs(opts LoreFileDependencyListArgs) (LoreFileDependencyListArgsFFI, func())

type LoreFileDependencyListBeginEventData

type LoreFileDependencyListBeginEventData struct {
	/* Number of files being listed. */
	FileCount uint64
}

type LoreFileDependencyListBeginEventDataFFI

type LoreFileDependencyListBeginEventDataFFI struct {
	/* Number of files being listed. */
	FileCount uint64
}

func (*LoreFileDependencyListBeginEventDataFFI) Clone

type LoreFileDependencyListEndEventData

type LoreFileDependencyListEndEventData struct {
	/* Total number of dependency entries that were listed. */
	TotalEntryCount uint64
}

type LoreFileDependencyListEndEventDataFFI

type LoreFileDependencyListEndEventDataFFI struct {
	/* Total number of dependency entries that were listed. */
	TotalEntryCount uint64
}

func (*LoreFileDependencyListEndEventDataFFI) Clone

type LoreFileDependencyListEntryEventData

type LoreFileDependencyListEntryEventData struct {
	/* Path of the dependency. */
	Path string
	/* Tags on this dependency edge. */
	Tags []string
	/* Traversal depth, zero for a direct dependency. */
	Depth uint32
}

type LoreFileDependencyListEntryEventDataFFI

type LoreFileDependencyListEntryEventDataFFI struct {
	/* Path of the dependency. */
	Path LoreString
	/* Tags on this dependency edge. */
	Tags LoreStringArrayFFI
	/* Traversal depth, zero for a direct dependency. */
	Depth uint32
}

func (*LoreFileDependencyListEntryEventDataFFI) Clone

type LoreFileDependencyListFileEndEventData

type LoreFileDependencyListFileEndEventData struct {
	/* Path of the file whose dependencies were listed. */
	Path string
}

type LoreFileDependencyListFileEndEventDataFFI

type LoreFileDependencyListFileEndEventDataFFI struct {
	/* Path of the file whose dependencies were listed. */
	Path LoreString
}

func (*LoreFileDependencyListFileEndEventDataFFI) Clone

type LoreFileDependencyListFileEventData

type LoreFileDependencyListFileEventData struct {
	/* Path of the file whose dependencies are being listed. */
	Path string
	/* Number of dependency entries for this file. */
	EntryCount uint64
}

type LoreFileDependencyListFileEventDataFFI

type LoreFileDependencyListFileEventDataFFI struct {
	/* Path of the file whose dependencies are being listed. */
	Path LoreString
	/* Number of dependency entries for this file. */
	EntryCount uint64
}

func (*LoreFileDependencyListFileEventDataFFI) Clone

type LoreFileDependencyRemoveArgs

type LoreFileDependencyRemoveArgs struct {
	/* Source file paths to remove dependencies from. */
	Paths []string
	/* Dependency target paths to remove (flat array). */
	Dependencies []string
	/* Tags to remove. */
	Tags []string
	/* Number of dependencies per source file. */
	DepCounts LoreUint32Array
	/* Number of tags per dependency entry. */
	TagCounts LoreUint32Array
}

type LoreFileDependencyRemoveArgsFFI

type LoreFileDependencyRemoveArgsFFI struct {
	/* Source file paths to remove dependencies from. */
	Paths LoreStringArrayFFI
	/* Dependency target paths to remove (flat array). */
	Dependencies LoreStringArrayFFI
	/* Tags to remove. */
	Tags LoreStringArrayFFI
	/* Number of dependencies per source file. */
	DepCounts LoreUint32ArrayFFI
	/* Number of tags per dependency entry. */
	TagCounts LoreUint32ArrayFFI
}

func NewLoreFileDependencyRemoveArgs

func NewLoreFileDependencyRemoveArgs(opts LoreFileDependencyRemoveArgs) (LoreFileDependencyRemoveArgsFFI, func())

type LoreFileDependencyRemoveBeginEventData

type LoreFileDependencyRemoveBeginEventData struct {
	/* Number of source files being processed. */
	PathCount uint64
	/* Number of dependency edges being removed. */
	DependencyCount uint64
}

type LoreFileDependencyRemoveBeginEventDataFFI

type LoreFileDependencyRemoveBeginEventDataFFI struct {
	/* Number of source files being processed. */
	PathCount uint64
	/* Number of dependency edges being removed. */
	DependencyCount uint64
}

func (*LoreFileDependencyRemoveBeginEventDataFFI) Clone

type LoreFileDependencyRemoveEndEventData

type LoreFileDependencyRemoveEndEventData struct {
	/* Number of dependency edges that were removed. */
	RemovedCount uint64
}

type LoreFileDependencyRemoveEndEventDataFFI

type LoreFileDependencyRemoveEndEventDataFFI struct {
	/* Number of dependency edges that were removed. */
	RemovedCount uint64
}

func (*LoreFileDependencyRemoveEndEventDataFFI) Clone

type LoreFileDependencyRemoveEntryEventData

type LoreFileDependencyRemoveEntryEventData struct {
	/* Path of the source file that loses the dependency. */
	Path string
	/* Path of the file that was depended on. */
	Dependency string
	/* Tags on the dependency edge being removed. */
	Tags []string
}

type LoreFileDependencyRemoveEntryEventDataFFI

type LoreFileDependencyRemoveEntryEventDataFFI struct {
	/* Path of the source file that loses the dependency. */
	Path LoreString
	/* Path of the file that was depended on. */
	Dependency LoreString
	/* Tags on the dependency edge being removed. */
	Tags LoreStringArrayFFI
}

func (*LoreFileDependencyRemoveEntryEventDataFFI) Clone

type LoreFileDiffArgs

type LoreFileDiffArgs struct {
	/* An array of paths */
	Paths []string
	/* Source revision */
	SourceRevision string
	/* Target revision */
	TargetRevision string
	/* Produce three-way merge output with conflict markers */
	Diff3 bool
	/* Number of unchanged context lines per unified-diff hunk */
	ContextLines uint32
	/* Treat lines that differ only in trailing whitespace as equal */
	IgnoreWhitespaceEol bool
	/* Collapse runs of internal whitespace to a single space for comparison */
	IgnoreWhitespaceInline bool
}

type LoreFileDiffArgsFFI

type LoreFileDiffArgsFFI struct {
	/* An array of paths */
	Paths LoreStringArrayFFI
	/* Source revision */
	SourceRevision LoreString
	/* Target revision */
	TargetRevision LoreString
	/* Produce three-way merge output with conflict markers */
	Diff3 uint8
	/* Number of unchanged context lines per unified-diff hunk */
	ContextLines uint32
	/* Treat lines that differ only in trailing whitespace as equal */
	IgnoreWhitespaceEol uint8
	/* Collapse runs of internal whitespace to a single space for comparison */
	IgnoreWhitespaceInline uint8
}

func NewLoreFileDiffArgs

func NewLoreFileDiffArgs(opts LoreFileDiffArgs) (LoreFileDiffArgsFFI, func())

type LoreFileDiffEventData

type LoreFileDiffEventData struct {
	/* Path of the file. */
	Path string
	/* Unified-diff text describing the change. */
	Patch string
	/* Action applied to the file. */
	Action LoreFileAction
}

type LoreFileDiffEventDataFFI

type LoreFileDiffEventDataFFI struct {
	/* Path of the file. */
	Path LoreString
	/* Unified-diff text describing the change. */
	Patch LoreString
	/* Action applied to the file. */
	Action LoreFileAction
}

func (*LoreFileDiffEventDataFFI) Clone

type LoreFileDirtyArgs

type LoreFileDirtyArgs struct {
	/* An array of paths */
	Paths []string
	/* Marks a file the current revision holds only where its name as the file system spells it
	differs from the name Lore holds for it, a rename marked with `lore dirty move` included,
	its size or its mode from that revision, or its modified time from its modified-time record.
	A file that matches has its dirty mark cleared, unless it is staged or marked moved, or lies
	in a folder of a linked repository that another link also mounts. No content is read, so a
	file with no record, or of a FUSE instance, is marked. */
	CheckDirty bool
}

type LoreFileDirtyArgsFFI

type LoreFileDirtyArgsFFI struct {
	/* An array of paths */
	Paths LoreStringArrayFFI
	/* Marks a file the current revision holds only where its name as the file system spells it
	differs from the name Lore holds for it, a rename marked with `lore dirty move` included,
	its size or its mode from that revision, or its modified time from its modified-time record.
	A file that matches has its dirty mark cleared, unless it is staged or marked moved, or lies
	in a folder of a linked repository that another link also mounts. No content is read, so a
	file with no record, or of a FUSE instance, is marked. */
	CheckDirty uint8
}

func NewLoreFileDirtyArgs

func NewLoreFileDirtyArgs(opts LoreFileDirtyArgs) (LoreFileDirtyArgsFFI, func())

type LoreFileDirtyCopyArgs

type LoreFileDirtyCopyArgs struct {
	/* Source path of file */
	FromPath string
	/* Destination path of copy */
	ToPath string
}

type LoreFileDirtyCopyArgsFFI

type LoreFileDirtyCopyArgsFFI struct {
	/* Source path of file */
	FromPath LoreString
	/* Destination path of copy */
	ToPath LoreString
}

func NewLoreFileDirtyCopyArgs

func NewLoreFileDirtyCopyArgs(opts LoreFileDirtyCopyArgs) (LoreFileDirtyCopyArgsFFI, func())

type LoreFileDirtyMoveArgs

type LoreFileDirtyMoveArgs struct {
	/* Original path of file */
	FromPath string
	/* New path of file */
	ToPath string
}

type LoreFileDirtyMoveArgsFFI

type LoreFileDirtyMoveArgsFFI struct {
	/* Original path of file */
	FromPath LoreString
	/* New path of file */
	ToPath LoreString
}

func NewLoreFileDirtyMoveArgs

func NewLoreFileDirtyMoveArgs(opts LoreFileDirtyMoveArgs) (LoreFileDirtyMoveArgsFFI, func())

type LoreFileDumpArgs

type LoreFileDumpArgs struct {
	/* Address of data to dump; takes precedence over `path` when non-empty */
	Address string
	/* Repository path to dump; used when `address` is empty */
	Path string
}

type LoreFileDumpArgsFFI

type LoreFileDumpArgsFFI struct {
	/* Address of data to dump; takes precedence over `path` when non-empty */
	Address LoreString
	/* Repository path to dump; used when `address` is empty */
	Path LoreString
}

func NewLoreFileDumpArgs

func NewLoreFileDumpArgs(opts LoreFileDumpArgs) (LoreFileDumpArgsFFI, func())

type LoreFileDumpEventData

type LoreFileDumpEventData struct {
	/* Address of the content. */
	Address LoreAddress
	/* Flags describing the stored content. */
	Flags uint32
	/* Size of the stored payload in bytes. */
	SizePayload uint32
	/* Size of the content in bytes. */
	SizeContent uint64
	/* Set when a matching stored object was found. */
	MatchMade bool
}

type LoreFileDumpEventDataFFI

type LoreFileDumpEventDataFFI struct {
	/* Address of the content. */
	Address LoreAddress
	/* Flags describing the stored content. */
	Flags uint32
	/* Size of the stored payload in bytes. */
	SizePayload uint32
	/* Size of the content in bytes. */
	SizeContent uint64
	/* Set when a matching stored object was found. */
	MatchMade uint8
}

func (*LoreFileDumpEventDataFFI) Clone

type LoreFileHashArgs

type LoreFileHashArgs struct {
	/* An array of paths */
	Paths []string
}

type LoreFileHashArgsFFI

type LoreFileHashArgsFFI struct {
	/* An array of paths */
	Paths LoreStringArrayFFI
}

func NewLoreFileHashArgs

func NewLoreFileHashArgs(opts LoreFileHashArgs) (LoreFileHashArgsFFI, func())

type LoreFileHashEventData

type LoreFileHashEventData struct {
	/* Path of the file. */
	Path string
	/* Size of the file in bytes. */
	Size uint64
	/* Content hash of the file. */
	Hash LoreHash
}

type LoreFileHashEventDataFFI

type LoreFileHashEventDataFFI struct {
	/* Path of the file. */
	Path LoreString
	/* Size of the file in bytes. */
	Size uint64
	/* Content hash of the file. */
	Hash LoreHash
}

func (*LoreFileHashEventDataFFI) Clone

type LoreFileHistoryArgs

type LoreFileHistoryArgs struct {
	/* A path to a file */
	Path string
	/* Optional revision specifier to start from */
	Revision string
	/* Restrict history to revisions on this branch */
	Branch string
	/* Number of revisions to list */
	Length uint32
	/* Number of revisions to search initially */
	Depth uint32
}

type LoreFileHistoryArgsFFI

type LoreFileHistoryArgsFFI struct {
	/* A path to a file */
	Path LoreString
	/* Optional revision specifier to start from */
	Revision LoreString
	/* Restrict history to revisions on this branch */
	Branch LoreString
	/* Number of revisions to list */
	Length uint32
	/* Number of revisions to search initially */
	Depth uint32
}

func NewLoreFileHistoryArgs

func NewLoreFileHistoryArgs(opts LoreFileHistoryArgs) (LoreFileHistoryArgsFFI, func())

type LoreFileHistoryEventData

type LoreFileHistoryEventData struct {
	/* Path of the file. */
	Path string
	/* Identifier of the repository. */
	Repository LoreRepositoryId
	/* Revision this entry belongs to. */
	Revision LoreHash
	/* Sequential number of the revision. */
	RevisionNumber uint64
	/* Parent revisions of this revision. */
	Parent [2]LoreHash
	/* Address of the file content at this revision. */
	Address LoreAddress
	/* Size of the file in bytes at this revision. */
	Size uint64
	/* Action applied to the file at this revision. */
	Action LoreFileAction
	/* Path the file was moved from at this revision. Empty otherwise. */
	FromPath string
}

type LoreFileHistoryEventDataFFI

type LoreFileHistoryEventDataFFI struct {
	/* Path of the file. */
	Path LoreString
	/* Identifier of the repository. */
	Repository LoreRepositoryId
	/* Revision this entry belongs to. */
	Revision LoreHash
	/* Sequential number of the revision. */
	RevisionNumber uint64
	/* Parent revisions of this revision. */
	Parent [2]LoreHash
	/* Address of the file content at this revision. */
	Address LoreAddress
	/* Size of the file in bytes at this revision. */
	Size uint64
	/* Action applied to the file at this revision. */
	Action LoreFileAction
	/* Path the file was moved from at this revision. Empty otherwise. */
	FromPath LoreString
}

func (*LoreFileHistoryEventDataFFI) Clone

type LoreFileInfoArgs

type LoreFileInfoArgs struct {
	/* Array of paths */
	Paths []string
	/* Revision to get info for */
	Revision string
	/* Calculate the filtered local filesystem hash and size */
	Local bool
	/* Calculate the filtered repository size */
	Filtered bool
}

type LoreFileInfoArgsFFI

type LoreFileInfoArgsFFI struct {
	/* Array of paths */
	Paths LoreStringArrayFFI
	/* Revision to get info for */
	Revision LoreString
	/* Calculate the filtered local filesystem hash and size */
	Local uint8
	/* Calculate the filtered repository size */
	Filtered uint8
}

func NewLoreFileInfoArgs

func NewLoreFileInfoArgs(opts LoreFileInfoArgs) (LoreFileInfoArgsFFI, func())

type LoreFileInfoEventData

type LoreFileInfoEventData struct {
	/* Path of the file or directory. */
	Path string
	/* Context identifying the file or directory. */
	Context LoreContext
	/* Content hash of the file or directory. */
	Hash LoreHash
	/* Set when the entry is a file. */
	IsFile bool
	/* Set when the entry is a directory. */
	IsDir bool
	/* Set when the entry has been modified. */
	FlagModified bool
	/* Set when the entry has been deleted. */
	FlagDeleted bool
	/* Set when the entry has been added. */
	FlagAdded bool
	/* Set when the entry is in conflict. */
	FlagConflict bool
	/* File mode bits 0 to 12, the caller's, of which Lore reads bit 0 as the executable bit.
	Bits 13 to 15, which Lore reserves, read as zero. */
	Mode uint16
	/* Size of the entry in the repository, in bytes. */
	Size uint64
	/* Size of the entry on the local filesystem, in bytes. */
	LocalSize uint64
	/* Address the entry's local content hashes to, zero where nothing was compared. */
	LocalHash LoreHash
	/* Size of the entry after filters are applied, in bytes. */
	FilterSize uint64
}

type LoreFileInfoEventDataFFI

type LoreFileInfoEventDataFFI struct {
	/* Path of the file or directory. */
	Path LoreString
	/* Context identifying the file or directory. */
	Context LoreContext
	/* Content hash of the file or directory. */
	Hash LoreHash
	/* Set when the entry is a file. */
	IsFile uint8
	/* Set when the entry is a directory. */
	IsDir uint8
	/* Set when the entry has been modified. */
	FlagModified uint8
	/* Set when the entry has been deleted. */
	FlagDeleted uint8
	/* Set when the entry has been added. */
	FlagAdded uint8
	/* Set when the entry is in conflict. */
	FlagConflict uint8
	/* File mode bits 0 to 12, the caller's, of which Lore reads bit 0 as the executable bit.
	Bits 13 to 15, which Lore reserves, read as zero. */
	Mode uint16
	/* Size of the entry in the repository, in bytes. */
	Size uint64
	/* Size of the entry on the local filesystem, in bytes. */
	LocalSize uint64
	/* Address the entry's local content hashes to, zero where nothing was compared. */
	LocalHash LoreHash
	/* Size of the entry after filters are applied, in bytes. */
	FilterSize uint64
}

func (*LoreFileInfoEventDataFFI) Clone

type LoreFileMetadataClearArgs

type LoreFileMetadataClearArgs struct {
	/* Which file to clear metadata for */
	Path string
}

type LoreFileMetadataClearArgsFFI

type LoreFileMetadataClearArgsFFI struct {
	/* Which file to clear metadata for */
	Path LoreString
}

func NewLoreFileMetadataClearArgs

func NewLoreFileMetadataClearArgs(opts LoreFileMetadataClearArgs) (LoreFileMetadataClearArgsFFI, func())

type LoreFileMetadataGetArgs

type LoreFileMetadataGetArgs struct {
	/* Revision to get metadata for */
	Revision string
	/* Where to get metadata for */
	Path string
	/* Metadata key */
	Key string
}

type LoreFileMetadataGetArgsFFI

type LoreFileMetadataGetArgsFFI struct {
	/* Revision to get metadata for */
	Revision LoreString
	/* Where to get metadata for */
	Path LoreString
	/* Metadata key */
	Key LoreString
}

func NewLoreFileMetadataGetArgs

func NewLoreFileMetadataGetArgs(opts LoreFileMetadataGetArgs) (LoreFileMetadataGetArgsFFI, func())

type LoreFileMetadataListArgs

type LoreFileMetadataListArgs struct {
	/* What to list metadata for */
	Path string
	/* Revision to list metadata for */
	Revision string
}

type LoreFileMetadataListArgsFFI

type LoreFileMetadataListArgsFFI struct {
	/* What to list metadata for */
	Path LoreString
	/* Revision to list metadata for */
	Revision LoreString
}

func NewLoreFileMetadataListArgs

func NewLoreFileMetadataListArgs(opts LoreFileMetadataListArgs) (LoreFileMetadataListArgsFFI, func())

type LoreFileMetadataSetArgs

type LoreFileMetadataSetArgs struct {
	/* An array of paths */
	Paths []string
	/* An array of keys */
	Keys []string
	/* An array of values */
	Values []string
	/* Pointer to an array of formats */
	Formats LoreMetadataTypeArray
	/* Pointer to an array of entry counts per path */
	Entries LoreUint32Array
}

type LoreFileMetadataSetArgsFFI

type LoreFileMetadataSetArgsFFI struct {
	/* An array of paths */
	Paths LoreStringArrayFFI
	/* An array of keys */
	Keys LoreStringArrayFFI
	/* An array of values */
	Values LoreStringArrayFFI
	/* Pointer to an array of formats */
	Formats LoreMetadataTypeArrayFFI
	/* Pointer to an array of entry counts per path */
	Entries LoreUint32ArrayFFI
}

func NewLoreFileMetadataSetArgs

func NewLoreFileMetadataSetArgs(opts LoreFileMetadataSetArgs) (LoreFileMetadataSetArgsFFI, func())

type LoreFileObliterateArgs

type LoreFileObliterateArgs struct {
	/* Address of data to obliterate; takes precedence over `path` when non-empty */
	Address string
	/* Repository path to obliterate; used when `address` is empty */
	Path string
}

type LoreFileObliterateArgsFFI

type LoreFileObliterateArgsFFI struct {
	/* Address of data to obliterate; takes precedence over `path` when non-empty */
	Address LoreString
	/* Repository path to obliterate; used when `address` is empty */
	Path LoreString
}

func NewLoreFileObliterateArgs

func NewLoreFileObliterateArgs(opts LoreFileObliterateArgs) (LoreFileObliterateArgsFFI, func())

type LoreFileObliterateEventData

type LoreFileObliterateEventData struct {
	/* Address of the obliterated content. */
	Address LoreAddress
	/* Number of fragments removed. */
	NumFragments uintptr
	/* Number of payloads removed. */
	NumPayloads uintptr
}

type LoreFileObliterateEventDataFFI

type LoreFileObliterateEventDataFFI struct {
	/* Address of the obliterated content. */
	Address LoreAddress
	/* Number of fragments removed. */
	NumFragments uintptr
	/* Number of payloads removed. */
	NumPayloads uintptr
}

func (*LoreFileObliterateEventDataFFI) Clone

type LoreFileResetArgs

type LoreFileResetArgs struct {
	/* Pointer to an array of paths */
	Paths []string
	/* Revision to reset files into */
	Revision string
	/* Delete what the revision does not hold within the view: untracked files, whatever the
	ignore file says, and files the view excludes. Nested repositories stay */
	Purge bool
}

type LoreFileResetArgsFFI

type LoreFileResetArgsFFI struct {
	/* Pointer to an array of paths */
	Paths LoreStringArrayFFI
	/* Revision to reset files into */
	Revision LoreString
	/* Delete what the revision does not hold within the view: untracked files, whatever the
	ignore file says, and files the view excludes. Nested repositories stay */
	Purge uint8
}

func NewLoreFileResetArgs

func NewLoreFileResetArgs(opts LoreFileResetArgs) (LoreFileResetArgsFFI, func())

type LoreFileResetBeginEventData

type LoreFileResetBeginEventData struct {
	/* Number of paths requested for reset. */
	PathCount uintptr
}

type LoreFileResetBeginEventDataFFI

type LoreFileResetBeginEventDataFFI struct {
	/* Number of paths requested for reset. */
	PathCount uintptr
}

func (*LoreFileResetBeginEventDataFFI) Clone

type LoreFileResetCountData

type LoreFileResetCountData struct {
	/* Number of directories that were reset. */
	DirectoryResetCount uint64
	/* Number of directories that were deleted. */
	DirectoryDeleteCount uint64
	/* Number of files that were reset. */
	FileResetCount uint64
	/* Number of files that were deleted. */
	FileDeleteCount uint64
}

type LoreFileResetCountDataFFI

type LoreFileResetCountDataFFI struct {
	/* Number of directories that were reset. */
	DirectoryResetCount uint64
	/* Number of directories that were deleted. */
	DirectoryDeleteCount uint64
	/* Number of files that were reset. */
	FileResetCount uint64
	/* Number of files that were deleted. */
	FileDeleteCount uint64
}

func NewLoreFileResetCountData

func NewLoreFileResetCountData(opts LoreFileResetCountData) (LoreFileResetCountDataFFI, func())

func (*LoreFileResetCountDataFFI) Clone

type LoreFileResetEndEventData

type LoreFileResetEndEventData struct {
	/* Final counts of items processed. */
	Count LoreFileResetCountData
}

type LoreFileResetEndEventDataFFI

type LoreFileResetEndEventDataFFI struct {
	/* Final counts of items processed. */
	Count LoreFileResetCountDataFFI
}

func (*LoreFileResetEndEventDataFFI) Clone

type LoreFileResetFileEventData

type LoreFileResetFileEventData struct {
	/* Path of the file. */
	Path string
	/* Action applied to the file. */
	Action LoreFileAction
	/* Previous path of the file, when it was moved. */
	FromPath string
}

type LoreFileResetFileEventDataFFI

type LoreFileResetFileEventDataFFI struct {
	/* Path of the file. */
	Path LoreString
	/* Action applied to the file. */
	Action LoreFileAction
	/* Previous path of the file, when it was moved. */
	FromPath LoreString
}

func (*LoreFileResetFileEventDataFFI) Clone

type LoreFileResetProgressEventData

type LoreFileResetProgressEventData struct {
	/* Current counts of items processed. */
	Count LoreFileResetCountData
}

type LoreFileResetProgressEventDataFFI

type LoreFileResetProgressEventDataFFI struct {
	/* Current counts of items processed. */
	Count LoreFileResetCountDataFFI
}

func (*LoreFileResetProgressEventDataFFI) Clone

type LoreFileResetToLastMergedArgs

type LoreFileResetToLastMergedArgs struct {
	/* Pointer to an array of paths */
	Paths []string
	/* Branch whose last merged revision to reset to */
	Branch string
	/* Delete what the revision does not hold within the view: untracked files, whatever the
	ignore file says, and files the view excludes. Nested repositories stay */
	Purge bool
	/* Merge side to restore, 0 = resolved (the merge revision), 1 = self ("mine"), 2 = other ("theirs") */
	MergeSide uint32
}

type LoreFileResetToLastMergedArgsFFI

type LoreFileResetToLastMergedArgsFFI struct {
	/* Pointer to an array of paths */
	Paths LoreStringArrayFFI
	/* Branch whose last merged revision to reset to */
	Branch LoreString
	/* Delete what the revision does not hold within the view: untracked files, whatever the
	ignore file says, and files the view excludes. Nested repositories stay */
	Purge uint8
	/* Merge side to restore, 0 = resolved (the merge revision), 1 = self ("mine"), 2 = other ("theirs") */
	MergeSide uint32
}

func NewLoreFileResetToLastMergedArgs

func NewLoreFileResetToLastMergedArgs(opts LoreFileResetToLastMergedArgs) (LoreFileResetToLastMergedArgsFFI, func())

type LoreFileStageArgs

type LoreFileStageArgs struct {
	/* An array of paths */
	Paths []string
	/* Case change handling, 0 = error, 1 = update filesystem (keep), 2 = update repository (rename) */
	CaseChange uint32
	/* Walk directory paths recursively on the filesystem, as the global `force` argument also
	does (no effect on file paths) */
	Scan bool
}

type LoreFileStageArgsFFI

type LoreFileStageArgsFFI struct {
	/* An array of paths */
	Paths LoreStringArrayFFI
	/* Case change handling, 0 = error, 1 = update filesystem (keep), 2 = update repository (rename) */
	CaseChange uint32
	/* Walk directory paths recursively on the filesystem, as the global `force` argument also
	does (no effect on file paths) */
	Scan uint8
}

func NewLoreFileStageArgs

func NewLoreFileStageArgs(opts LoreFileStageArgs) (LoreFileStageArgsFFI, func())

type LoreFileStageBeginEventData

type LoreFileStageBeginEventData struct {
	/* Number of paths requested for staging. */
	PathCount uintptr
}

type LoreFileStageBeginEventDataFFI

type LoreFileStageBeginEventDataFFI struct {
	/* Number of paths requested for staging. */
	PathCount uintptr
}

func (*LoreFileStageBeginEventDataFFI) Clone

type LoreFileStageCountData

type LoreFileStageCountData struct {
	/* Number of directories staged as modified. */
	DirectoryModifyCount uint64
	/* Number of directories staged as added. */
	DirectoryAddCount uint64
	/* Number of directories staged as deleted. */
	DirectoryDeleteCount uint64
	/* Number of directories staged as moved. */
	DirectoryMoveCount uint64
	/* Number of files staged as modified. */
	FileModifyCount uint64
	/* Number of files staged as added. */
	FileAddCount uint64
	/* Number of files staged as deleted. */
	FileDeleteCount uint64
	/* Number of files staged as moved. */
	FileMoveCount uint64
	/* Total number of items processed. */
	TotalCount uint64
}

type LoreFileStageCountDataFFI

type LoreFileStageCountDataFFI struct {
	/* Number of directories staged as modified. */
	DirectoryModifyCount uint64
	/* Number of directories staged as added. */
	DirectoryAddCount uint64
	/* Number of directories staged as deleted. */
	DirectoryDeleteCount uint64
	/* Number of directories staged as moved. */
	DirectoryMoveCount uint64
	/* Number of files staged as modified. */
	FileModifyCount uint64
	/* Number of files staged as added. */
	FileAddCount uint64
	/* Number of files staged as deleted. */
	FileDeleteCount uint64
	/* Number of files staged as moved. */
	FileMoveCount uint64
	/* Total number of items processed. */
	TotalCount uint64
}

func NewLoreFileStageCountData

func NewLoreFileStageCountData(opts LoreFileStageCountData) (LoreFileStageCountDataFFI, func())

func (*LoreFileStageCountDataFFI) Clone

type LoreFileStageEndEventData

type LoreFileStageEndEventData struct {
	/* Final counts of items processed. */
	Count LoreFileStageCountData
}

type LoreFileStageEndEventDataFFI

type LoreFileStageEndEventDataFFI struct {
	/* Final counts of items processed. */
	Count LoreFileStageCountDataFFI
}

func (*LoreFileStageEndEventDataFFI) Clone

type LoreFileStageFileEventData

type LoreFileStageFileEventData struct {
	/* Previous path of the file, when it was moved, relative to the root of the working tree. */
	FromPath string
	/* Path of the file, relative to the root of the working tree. */
	Path string
	/* Action applied to the file. */
	Action LoreFileAction
}

type LoreFileStageFileEventDataFFI

type LoreFileStageFileEventDataFFI struct {
	/* Previous path of the file, when it was moved, relative to the root of the working tree. */
	FromPath LoreString
	/* Path of the file, relative to the root of the working tree. */
	Path LoreString
	/* Action applied to the file. */
	Action LoreFileAction
}

func (*LoreFileStageFileEventDataFFI) Clone

type LoreFileStageMergeArgs

type LoreFileStageMergeArgs struct {
	/* Paths to files to stage as merge */
	Paths []string
}

type LoreFileStageMergeArgsFFI

type LoreFileStageMergeArgsFFI struct {
	/* Paths to files to stage as merge */
	Paths LoreStringArrayFFI
}

func NewLoreFileStageMergeArgs

func NewLoreFileStageMergeArgs(opts LoreFileStageMergeArgs) (LoreFileStageMergeArgsFFI, func())

type LoreFileStageMoveArgs

type LoreFileStageMoveArgs struct {
	/* Original path of file */
	FromPath string
	/* New path of file */
	ToPath string
}

type LoreFileStageMoveArgsFFI

type LoreFileStageMoveArgsFFI struct {
	/* Original path of file */
	FromPath LoreString
	/* New path of file */
	ToPath LoreString
}

func NewLoreFileStageMoveArgs

func NewLoreFileStageMoveArgs(opts LoreFileStageMoveArgs) (LoreFileStageMoveArgsFFI, func())

type LoreFileStageProgressEventData

type LoreFileStageProgressEventData struct {
	/* Current counts of items processed. */
	Count LoreFileStageCountData
}

type LoreFileStageProgressEventDataFFI

type LoreFileStageProgressEventDataFFI struct {
	/* Current counts of items processed. */
	Count LoreFileStageCountDataFFI
}

func (*LoreFileStageProgressEventDataFFI) Clone

type LoreFileStageRevisionEventData

type LoreFileStageRevisionEventData struct {
	/* Identifier of the repository. */
	Repository LoreRepositoryId
	/* Revision the files are staged against. */
	Revision LoreHash
}

type LoreFileStageRevisionEventDataFFI

type LoreFileStageRevisionEventDataFFI struct {
	/* Identifier of the repository. */
	Repository LoreRepositoryId
	/* Revision the files are staged against. */
	Revision LoreHash
}

func (*LoreFileStageRevisionEventDataFFI) Clone

type LoreFileUnstageArgs

type LoreFileUnstageArgs struct {
	/* An array of paths */
	Paths []string
}

type LoreFileUnstageArgsFFI

type LoreFileUnstageArgsFFI struct {
	/* An array of paths */
	Paths LoreStringArrayFFI
}

func NewLoreFileUnstageArgs

func NewLoreFileUnstageArgs(opts LoreFileUnstageArgs) (LoreFileUnstageArgsFFI, func())

type LoreFileUnstageBeginEventData

type LoreFileUnstageBeginEventData struct {
	/* Number of paths requested for unstaging. */
	PathCount uintptr
}

type LoreFileUnstageBeginEventDataFFI

type LoreFileUnstageBeginEventDataFFI struct {
	/* Number of paths requested for unstaging. */
	PathCount uintptr
}

func (*LoreFileUnstageBeginEventDataFFI) Clone

type LoreFileUnstageCountData

type LoreFileUnstageCountData struct {
	/* Number of directories and links that were unstaged. */
	DirectoryUnstagedCount uint64
	/* Number of directories that were discarded. */
	DirectoryDiscardedCount uint64
	/* Number of files that were unstaged. */
	FileUnstagedCount uint64
	/* Number of files that were discarded. */
	FileDiscardedCount uint64
	/* Total number of items processed. */
	TotalCount uint64
}

type LoreFileUnstageCountDataFFI

type LoreFileUnstageCountDataFFI struct {
	/* Number of directories and links that were unstaged. */
	DirectoryUnstagedCount uint64
	/* Number of directories that were discarded. */
	DirectoryDiscardedCount uint64
	/* Number of files that were unstaged. */
	FileUnstagedCount uint64
	/* Number of files that were discarded. */
	FileDiscardedCount uint64
	/* Total number of items processed. */
	TotalCount uint64
}

func NewLoreFileUnstageCountData

func NewLoreFileUnstageCountData(opts LoreFileUnstageCountData) (LoreFileUnstageCountDataFFI, func())

func (*LoreFileUnstageCountDataFFI) Clone

type LoreFileUnstageEndEventData

type LoreFileUnstageEndEventData struct {
	/* Final counts of items processed. */
	Count LoreFileUnstageCountData
}

type LoreFileUnstageEndEventDataFFI

type LoreFileUnstageEndEventDataFFI struct {
	/* Final counts of items processed. */
	Count LoreFileUnstageCountDataFFI
}

func (*LoreFileUnstageEndEventDataFFI) Clone

type LoreFileUnstageFileEventData

type LoreFileUnstageFileEventData struct {
	/* Path of the file, relative to the root of the working tree. */
	Path string
	/* Action applied to the file. */
	Action LoreFileAction
}

type LoreFileUnstageFileEventDataFFI

type LoreFileUnstageFileEventDataFFI struct {
	/* Path of the file, relative to the root of the working tree. */
	Path LoreString
	/* Action applied to the file. */
	Action LoreFileAction
}

func (*LoreFileUnstageFileEventDataFFI) Clone

type LoreFileUnstageProgressEventData

type LoreFileUnstageProgressEventData struct {
	/* Current counts of items processed. */
	Count LoreFileUnstageCountData
}

type LoreFileUnstageProgressEventDataFFI

type LoreFileUnstageProgressEventDataFFI struct {
	/* Current counts of items processed. */
	Count LoreFileUnstageCountDataFFI
}

func (*LoreFileUnstageProgressEventDataFFI) Clone

type LoreFileUnstageRevisionEventData

type LoreFileUnstageRevisionEventData struct {
	/* Identifier of the repository. */
	Repository LoreRepositoryId
	/* Revision the files are unstaged against. */
	Revision LoreHash
}

type LoreFileUnstageRevisionEventDataFFI

type LoreFileUnstageRevisionEventDataFFI struct {
	/* Identifier of the repository. */
	Repository LoreRepositoryId
	/* Revision the files are unstaged against. */
	Revision LoreHash
}

func (*LoreFileUnstageRevisionEventDataFFI) Clone

type LoreFileWriteArgs

type LoreFileWriteArgs struct {
	/* Address of data to write; takes precedence over `path` when non-empty */
	Address string
	/* Repository path to the file; used when `address` is empty */
	Path string
	/* Revision of the file to write (used with `path`) */
	Revision string
	/* Destination filesystem path to write to */
	Output string
}

type LoreFileWriteArgsFFI

type LoreFileWriteArgsFFI struct {
	/* Address of data to write; takes precedence over `path` when non-empty */
	Address LoreString
	/* Repository path to the file; used when `address` is empty */
	Path LoreString
	/* Revision of the file to write (used with `path`) */
	Revision LoreString
	/* Destination filesystem path to write to */
	Output LoreString
}

func NewLoreFileWriteArgs

func NewLoreFileWriteArgs(opts LoreFileWriteArgs) (LoreFileWriteArgsFFI, func())

type LoreFileWriteEventData

type LoreFileWriteEventData struct {
	/* Path that was written. */
	Path string
}

type LoreFileWriteEventDataFFI

type LoreFileWriteEventDataFFI struct {
	/* Path that was written. */
	Path LoreString
}

func (*LoreFileWriteEventDataFFI) Clone

type LoreFilterExcludeEventData

type LoreFilterExcludeEventData struct {
	/* Reason the path was excluded. */
	Reason bool
	/* Path that was excluded. */
	Path string
}

type LoreFilterExcludeEventDataFFI

type LoreFilterExcludeEventDataFFI struct {
	/* Reason the path was excluded. */
	Reason uint8
	/* Path that was excluded. */
	Path LoreString
}

func (*LoreFilterExcludeEventDataFFI) Clone

type LoreFragment

type LoreFragment struct {
	/* Flags */
	Flags uint32
	/* Payload size */
	SizePayload uint32
	/* Size of the uncompressed and reassembled content */
	SizeContent uint64
}

type LoreFragmentFFI

type LoreFragmentFFI struct {
	/* Flags */
	Flags uint32
	/* Payload size */
	SizePayload uint32
	/* Size of the uncompressed and reassembled content */
	SizeContent uint64
}

func NewLoreFragment

func NewLoreFragment(opts LoreFragment) (LoreFragmentFFI, func())

func (*LoreFragmentFFI) Clone

func (e *LoreFragmentFFI) Clone() LoreFragment

type LoreFragmentStatsData added in v0.10.0

type LoreFragmentStatsData struct {
	/* Fragments handed to the store, whatever came of them. */
	FragmentsProduced uint64
	/* Uncompressed content bytes the produced fragments stand for. */
	FragmentContentBytes uint64
	/* Fragments the stores already held in the form the write wanted, so no
	payload was loaded, compressed or uploaded for them. */
	FragmentsDeduplicated uint64
	/* Content bytes of `fragments_deduplicated`. */
	DeduplicatedContentBytes uint64
	/* Fragments that entered the write pipeline. */
	FragmentsProcessed uint64
	/* Content bytes of `fragments_processed`. */
	ProcessedContentBytes uint64
	/* Of `fragments_processed`, those that produced a stored payload of content. */
	DataFragments uint64
	/* Stored payload bytes of `data_fragments`, after compression where the
	pipeline compressed them. */
	DataPayloadBytes uint64
	/* Uncompressed content bytes `data_fragments` stand for. Compare against
	`data_payload_bytes` for the compression ratio. */
	DataContentBytes uint64
	/* Of `fragments_processed`, those that produced a stored fragment list. */
	Fragmentlists uint64
	/* Stored payload bytes of `fragmentlists`. */
	FragmentlistPayloadBytes uint64
	/* Of `fragments_processed`, those that needed no payload, so none was
	prepared: the remote duplicated an association for them or already held
	them, and the write did not ask for the payload to be cached locally. */
	NoPayloadFragments uint64
	/* Content bytes `no_payload_fragments` stand for. */
	NoPayloadContentBytes uint64
	/* Terminal entries written to the local store. */
	LocalWrites uint64
	/* Of `local_writes`, those that recorded only the fragment header — the
	payload lives on the remote and was not cached here. */
	LocalMetadataWrites uint64
	/* Of `local_writes`, those that also wrote a payload. */
	LocalPayloadWrites uint64
	/* Payload bytes written by `local_payload_writes`. */
	LocalPayloadBytes uint64
	/* Fragments registered with the remote. */
	RemoteWrites uint64
	/* Of `remote_writes`, those the remote duplicated from an association it
	already held, so no payload crossed the wire. */
	RemoteCopyWrites uint64
	/* Of `remote_writes`, those whose payload was uploaded. */
	RemotePutWrites uint64
	/* Payload bytes uploaded by `remote_put_writes`. */
	RemotePutBytes uint64
	/* Fragments the remote already held under this very address, so they took
	neither a copy nor an upload. */
	RemoteAlreadyDurable uint64
	/* Fragments written with no remote consulted, a local-only write having been
	asked for. Branch latest history is one such write, which the server does
	not store, so a commit against a remote has exactly one. */
	LocalOnlyWrites uint64
	/* Fragments stored only locally for a later push to offer again. Either the
	upload failed or the peer throttled the copy and no upload was attempted.
	Their payloads also count toward `local_payload_writes`, which does not
	distinguish them from payloads kept locally by request. */
	RemoteUploadFailed uint64
	/* Of `fragments_processed`, those the remote was asked about before their
	payload was prepared, the write having asked for that (`remote_query`). */
	RemoteQueries uint64
	/* Of `remote_queries`, those the remote already held under this very
	address, so no payload was sent for them. They count toward
	`remote_already_durable` too. */
	RemoteQueryHits uint64
	/* Payload bytes the remote holds for `remote_query_hits`, which the write
	did not send. */
	RemoteQueryUnsentBytes uint64
}

type LoreFragmentStatsDataFFI added in v0.10.0

type LoreFragmentStatsDataFFI struct {
	/* Fragments handed to the store, whatever came of them. */
	FragmentsProduced uint64
	/* Uncompressed content bytes the produced fragments stand for. */
	FragmentContentBytes uint64
	/* Fragments the stores already held in the form the write wanted, so no
	payload was loaded, compressed or uploaded for them. */
	FragmentsDeduplicated uint64
	/* Content bytes of `fragments_deduplicated`. */
	DeduplicatedContentBytes uint64
	/* Fragments that entered the write pipeline. */
	FragmentsProcessed uint64
	/* Content bytes of `fragments_processed`. */
	ProcessedContentBytes uint64
	/* Of `fragments_processed`, those that produced a stored payload of content. */
	DataFragments uint64
	/* Stored payload bytes of `data_fragments`, after compression where the
	pipeline compressed them. */
	DataPayloadBytes uint64
	/* Uncompressed content bytes `data_fragments` stand for. Compare against
	`data_payload_bytes` for the compression ratio. */
	DataContentBytes uint64
	/* Of `fragments_processed`, those that produced a stored fragment list. */
	Fragmentlists uint64
	/* Stored payload bytes of `fragmentlists`. */
	FragmentlistPayloadBytes uint64
	/* Of `fragments_processed`, those that needed no payload, so none was
	prepared: the remote duplicated an association for them or already held
	them, and the write did not ask for the payload to be cached locally. */
	NoPayloadFragments uint64
	/* Content bytes `no_payload_fragments` stand for. */
	NoPayloadContentBytes uint64
	/* Terminal entries written to the local store. */
	LocalWrites uint64
	/* Of `local_writes`, those that recorded only the fragment header — the
	payload lives on the remote and was not cached here. */
	LocalMetadataWrites uint64
	/* Of `local_writes`, those that also wrote a payload. */
	LocalPayloadWrites uint64
	/* Payload bytes written by `local_payload_writes`. */
	LocalPayloadBytes uint64
	/* Fragments registered with the remote. */
	RemoteWrites uint64
	/* Of `remote_writes`, those the remote duplicated from an association it
	already held, so no payload crossed the wire. */
	RemoteCopyWrites uint64
	/* Of `remote_writes`, those whose payload was uploaded. */
	RemotePutWrites uint64
	/* Payload bytes uploaded by `remote_put_writes`. */
	RemotePutBytes uint64
	/* Fragments the remote already held under this very address, so they took
	neither a copy nor an upload. */
	RemoteAlreadyDurable uint64
	/* Fragments written with no remote consulted, a local-only write having been
	asked for. Branch latest history is one such write, which the server does
	not store, so a commit against a remote has exactly one. */
	LocalOnlyWrites uint64
	/* Fragments stored only locally for a later push to offer again. Either the
	upload failed or the peer throttled the copy and no upload was attempted.
	Their payloads also count toward `local_payload_writes`, which does not
	distinguish them from payloads kept locally by request. */
	RemoteUploadFailed uint64
	/* Of `fragments_processed`, those the remote was asked about before their
	payload was prepared, the write having asked for that (`remote_query`). */
	RemoteQueries uint64
	/* Of `remote_queries`, those the remote already held under this very
	address, so no payload was sent for them. They count toward
	`remote_already_durable` too. */
	RemoteQueryHits uint64
	/* Payload bytes the remote holds for `remote_query_hits`, which the write
	did not send. */
	RemoteQueryUnsentBytes uint64
}

func NewLoreFragmentStatsData added in v0.10.0

func NewLoreFragmentStatsData(opts LoreFragmentStatsData) (LoreFragmentStatsDataFFI, func())

func (*LoreFragmentStatsDataFFI) Clone added in v0.10.0

type LoreFragmentWriteEventData

type LoreFragmentWriteEventData struct {
	/* The fragment that was written */
	Fragment LoreFragment
	/* Non-zero if the fragment already existed and was deduplicated */
	Deduplicated bool
}

type LoreFragmentWriteEventDataFFI

type LoreFragmentWriteEventDataFFI struct {
	/* The fragment that was written */
	Fragment LoreFragmentFFI
	/* Non-zero if the fragment already existed and was deduplicated */
	Deduplicated uint8
}

func (*LoreFragmentWriteEventDataFFI) Clone

type LoreGlobalArgs

type LoreGlobalArgs struct {
	/* Repository path */
	RepositoryPath string
	/* Directory that relative paths in this call are resolved against. Set it
	when a call may be executed by another process, such as the Lore
	service, whose own working directory is unrelated to the caller's. When
	empty, relative paths resolve against the working directory of the
	process performing the call. */
	WorkingDirectory string
	/* Correlation ID */
	CorrelationId string
	/* Identity to use */
	Identity string
	/* Force the operation if possible */
	Force bool
	/* Run operation without connecting to server */
	Offline bool
	/* Use only local data */
	Local bool
	/* Use only remote data */
	Remote bool
	/* Dry run mode, only report what would have been changed and perform no changes to local file system */
	DryRun bool
	/* Number of parallel storage connections for bulk data transfer, 0 for the default of 1.
	At most 10 are opened */
	MaxConnections uint32
	/* Search limit when iterating revisions */
	SearchLimit uint32
	/* Allow matching to the nearest matching revision when a perfect match is not available */
	SearchNearest bool
	/* Prevent the automatic incremental/step GC for this operation; it otherwise runs in the background on write operations. `repository gc` always runs a full pass regardless */
	NoGc bool
	/* Use in-memory stores instead of file-backed stores. No store data is
	read from or written to the .urc/immutable/ and .urc/mutable/ directories. */
	InMemory bool
	/* Leave the local stores' background index writes until the call ends: the delayed flushes
	of their changes, and the writes of eviction passes, which still run and evict in memory.
	The call's own flushes write as they do without it. The call writes what it held back
	before it completes, whether or not it fails, and a call that otherwise succeeds fails if
	that write fails. A storage handle opened with this holds the writes back until its close,
	whose flush writes them. In a process that serves several calls, such as the Lore service,
	a store holds back the background writes of every call on it while a call or handle that
	set this is active. If the process stops meanwhile, the index loses the changes held back:
	content fetched from the remote is fetched again, and content written locally stays in the
	packfiles unindexed until compaction reclaims it. */
	NoBackgroundFlush bool
	/* Maximum number of files being processed in parallel */
	FileCountLimit uint64
	/* Maximum total size of all files being processed in parallel */
	FileSizeLimit uint64
	/* Maximum number of parallel compression tasks */
	CompressTaskLimit uint64
	/* Keep store references alive after a repository call completes to avoid
	repeated store open/close cycles for consecutive API calls in the same process.
	The stores stay locked meanwhile, so another process using them waits. With
	`LORE_STORE_RETAIN` set to `1` or `true` in the environment of the process running
	the call, the stores are kept after every call whether or not this is set,
	unlocked, and the next call reloads them only if another process changed them. */
	StoreKeepAlive bool
	/* Duration in seconds to keep store references alive, when `store_keep_alive` or
	`LORE_STORE_RETAIN` is set. 0 means use the default (10 seconds). */
	StoreKeepAliveSeconds uint64
	/* Force sync data to storage media during store flush */
	SyncData bool
	/* Cache fragment payloads fetched from remote, and those written, in the local store, as
	a repository's `[store] cache_payloads` does for every command. Without either only state
	fragments and fragments flagged for local cache priority are retained */
	Cache bool
	/* Authentication token to use instead of the one held in the secure token
	store. Authorization tokens are exchanged from it as they are needed.

	Supplying either token puts the call in external-credential mode: `identity`
	must be left empty, since it is read from the token. */
	IdentityToken string
	/* Authorization token to use instead of exchanging one with the auth
	service. If given, will not perform token exchanges.

	Supplying either token puts the call in external-credential mode: `identity`
	must be left empty, since it is read from the token. */
	AccessToken string
	/* How much an operation reports about what it cost.

	- `0` — no statistics event, and no per-fragment counters kept for one.
	- `1` — one statistics event when the operation finishes: a commit reports
	per-action file counts and the fragment, local-store and remote-store
	totals, a storage put or upload call its item counts and the same totals,
	and a push the fragments it deduplicated, copied and put.
	- `2` — also a `FragmentWrite` event per stored fragment, which describes
	the shape of what was written rather than its sums. One event per
	fragment is the cost of this level. A storage put or upload call sends
	none, so this level reports for it what level `1` does.

	A level above the highest known behaves as the highest known. */
	Stats uint32
	/* How often an operation emits progress events, in milliseconds. Applies
	whatever `stats` is set to, statistics being reported once at the end
	rather than on an interval. Zero takes [`DEFAULT_EVENT_INTERVAL_MS`]. */
	EventIntervalMs uint64
	/* Which authentication path to take if the server advertises both its
	gRPC auth service and an OIDC issuer. */
	AuthMode LoreAuthMode
	/* Treat the remote as a trusted source, for a caller within its
	infrastructure where performance comes first: payloads fetched from it
	have only their sizes checked against their length, are never hashed,
	and are decompressed only where their content is read. A storage handle
	takes it from the globals it is opened with. Any non-zero value trusts
	the remote, so a caller zeroes the whole struct, padding included */
	TrustRemote bool
	/* Have the call's flushes write the local stores' index in place, rather than replacing each
	of its files through a temporary file, which is faster where creating files is slow. If the
	process stops or a write fails while a file is being written, the store drops every entry
	that file held, including those of revisions and branches not yet pushed. Eviction and
	compaction replace the files they write whatever it says, and it is independent of
	`sync_data`, which syncs what is written either way. Any non-zero value writes in place */
	FastFlush bool
	/* Fail at once with `LORE_ERROR_CODE_WOULD_BLOCK` where opening the instance would wait for
	another command or process using it; retry later. Once the instance is open, the call runs
	as without it. A write call also fails while an earlier write call of its process on the
	instance still flushes after completing, where that call changed the modified times the
	instance records. Any non-zero value fails rather than waits. */
	NoBlock bool
}

type LoreGlobalArgsFFI

type LoreGlobalArgsFFI struct {
	/* Repository path */
	RepositoryPath LoreString
	/* Directory that relative paths in this call are resolved against. Set it
	when a call may be executed by another process, such as the Lore
	service, whose own working directory is unrelated to the caller's. When
	empty, relative paths resolve against the working directory of the
	process performing the call. */
	WorkingDirectory LoreString
	/* Correlation ID */
	CorrelationId LoreString
	/* Identity to use */
	Identity LoreString
	/* Force the operation if possible */
	Force uint8
	/* Run operation without connecting to server */
	Offline uint8
	/* Use only local data */
	Local uint8
	/* Use only remote data */
	Remote uint8
	/* Dry run mode, only report what would have been changed and perform no changes to local file system */
	DryRun uint8
	/* Number of parallel storage connections for bulk data transfer, 0 for the default of 1.
	At most 10 are opened */
	MaxConnections uint32
	/* Search limit when iterating revisions */
	SearchLimit uint32
	/* Allow matching to the nearest matching revision when a perfect match is not available */
	SearchNearest uint8
	/* Prevent the automatic incremental/step GC for this operation; it otherwise runs in the background on write operations. `repository gc` always runs a full pass regardless */
	NoGc uint8
	/* Use in-memory stores instead of file-backed stores. No store data is
	read from or written to the .urc/immutable/ and .urc/mutable/ directories. */
	InMemory uint8
	/* Leave the local stores' background index writes until the call ends: the delayed flushes
	of their changes, and the writes of eviction passes, which still run and evict in memory.
	The call's own flushes write as they do without it. The call writes what it held back
	before it completes, whether or not it fails, and a call that otherwise succeeds fails if
	that write fails. A storage handle opened with this holds the writes back until its close,
	whose flush writes them. In a process that serves several calls, such as the Lore service,
	a store holds back the background writes of every call on it while a call or handle that
	set this is active. If the process stops meanwhile, the index loses the changes held back:
	content fetched from the remote is fetched again, and content written locally stays in the
	packfiles unindexed until compaction reclaims it. */
	NoBackgroundFlush uint8
	/* Maximum number of files being processed in parallel */
	FileCountLimit uint64
	/* Maximum total size of all files being processed in parallel */
	FileSizeLimit uint64
	/* Maximum number of parallel compression tasks */
	CompressTaskLimit uint64
	/* Keep store references alive after a repository call completes to avoid
	repeated store open/close cycles for consecutive API calls in the same process.
	The stores stay locked meanwhile, so another process using them waits. With
	`LORE_STORE_RETAIN` set to `1` or `true` in the environment of the process running
	the call, the stores are kept after every call whether or not this is set,
	unlocked, and the next call reloads them only if another process changed them. */
	StoreKeepAlive uint8
	/* Duration in seconds to keep store references alive, when `store_keep_alive` or
	`LORE_STORE_RETAIN` is set. 0 means use the default (10 seconds). */
	StoreKeepAliveSeconds uint64
	/* Force sync data to storage media during store flush */
	SyncData uint8
	/* Cache fragment payloads fetched from remote, and those written, in the local store, as
	a repository's `[store] cache_payloads` does for every command. Without either only state
	fragments and fragments flagged for local cache priority are retained */
	Cache uint8
	/* Authentication token to use instead of the one held in the secure token
	store. Authorization tokens are exchanged from it as they are needed.

	Supplying either token puts the call in external-credential mode: `identity`
	must be left empty, since it is read from the token. */
	IdentityToken LoreString
	/* Authorization token to use instead of exchanging one with the auth
	service. If given, will not perform token exchanges.

	Supplying either token puts the call in external-credential mode: `identity`
	must be left empty, since it is read from the token. */
	AccessToken LoreString
	/* How much an operation reports about what it cost.

	- `0` — no statistics event, and no per-fragment counters kept for one.
	- `1` — one statistics event when the operation finishes: a commit reports
	per-action file counts and the fragment, local-store and remote-store
	totals, a storage put or upload call its item counts and the same totals,
	and a push the fragments it deduplicated, copied and put.
	- `2` — also a `FragmentWrite` event per stored fragment, which describes
	the shape of what was written rather than its sums. One event per
	fragment is the cost of this level. A storage put or upload call sends
	none, so this level reports for it what level `1` does.

	A level above the highest known behaves as the highest known. */
	Stats uint32
	/* How often an operation emits progress events, in milliseconds. Applies
	whatever `stats` is set to, statistics being reported once at the end
	rather than on an interval. Zero takes [`DEFAULT_EVENT_INTERVAL_MS`]. */
	EventIntervalMs uint64
	/* Which authentication path to take if the server advertises both its
	gRPC auth service and an OIDC issuer. */
	AuthMode LoreAuthMode
	/* Treat the remote as a trusted source, for a caller within its
	infrastructure where performance comes first: payloads fetched from it
	have only their sizes checked against their length, are never hashed,
	and are decompressed only where their content is read. A storage handle
	takes it from the globals it is opened with. Any non-zero value trusts
	the remote, so a caller zeroes the whole struct, padding included */
	TrustRemote uint8
	/* Have the call's flushes write the local stores' index in place, rather than replacing each
	of its files through a temporary file, which is faster where creating files is slow. If the
	process stops or a write fails while a file is being written, the store drops every entry
	that file held, including those of revisions and branches not yet pushed. Eviction and
	compaction replace the files they write whatever it says, and it is independent of
	`sync_data`, which syncs what is written either way. Any non-zero value writes in place */
	FastFlush uint8
	/* Fail at once with `LORE_ERROR_CODE_WOULD_BLOCK` where opening the instance would wait for
	another command or process using it; retry later. Once the instance is open, the call runs
	as without it. A write call also fails while an earlier write call of its process on the
	instance still flushes after completing, where that call changed the modified times the
	instance records. Any non-zero value fails rather than waits. */
	NoBlock uint8
}

func NewLoreGlobalArgs

func NewLoreGlobalArgs(opts LoreGlobalArgs) (LoreGlobalArgsFFI, func())

type LoreHash

type LoreHash struct {
	Data [32]uint8
}

func (LoreHash) Clone

func (h LoreHash) Clone() LoreHash

func (LoreHash) String

func (h LoreHash) String() string

String returns the hash as a lowercase hexadecimal string Implements fmt.Stringer interface

type LoreInstanceId

type LoreInstanceId struct {
	Data [16]uint8
}

func (LoreInstanceId) Clone

func (c LoreInstanceId) Clone() LoreInstanceId

func (LoreInstanceId) String

func (c LoreInstanceId) String() string

String returns the context as a lowercase hexadecimal string Implements fmt.Stringer interface

type LoreInstanceIdArray

type LoreInstanceIdArray = []LoreInstanceId

type LoreInstanceIdArrayFFI

type LoreInstanceIdArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreInstanceIdArray

func NewLoreInstanceIdArray(arr []LoreInstanceId) (LoreInstanceIdArrayFFI, func())

func (LoreInstanceIdArrayFFI) Clone

func (arr LoreInstanceIdArrayFFI) Clone() []LoreInstanceId

func (LoreInstanceIdArrayFFI) Get

func (arr LoreInstanceIdArrayFFI) Get(index int) LoreInstanceId

func (LoreInstanceIdArrayFFI) Len

func (arr LoreInstanceIdArrayFFI) Len() int

type LoreKeyType added in v0.8.4

type LoreKeyType int32
const (
	LoreKeyType_UNTYPED               LoreKeyType = 0
	LoreKeyType_BRANCH_METADATA       LoreKeyType = 1
	LoreKeyType_BRANCH_ID             LoreKeyType = 2
	LoreKeyType_BRANCH_LATEST_POINTER LoreKeyType = 3
	LoreKeyType_REPOSITORY_METADATA   LoreKeyType = 4
	LoreKeyType_REPOSITORY_ID         LoreKeyType = 5
	LoreKeyType_INSTANCE              LoreKeyType = 6
	LoreKeyType_RESOLVE               LoreKeyType = 7
	LoreKeyType_SCOPE_METADATA        LoreKeyType = 8
	LoreKeyType_SCOPE_ID              LoreKeyType = 9
)

type LoreLayerAddArgs

type LoreLayerAddArgs struct {
	/* Path in the current repository where the layer should be placed */
	TargetPath string
	/* Repository to add as a layer */
	SourceRepository string
	/* Path in the layer repository where the layer should start */
	SourcePath string
	/* Metadata key to use to match revisions */
	Metadata string
}

type LoreLayerAddArgsFFI

type LoreLayerAddArgsFFI struct {
	/* Path in the current repository where the layer should be placed */
	TargetPath LoreString
	/* Repository to add as a layer */
	SourceRepository LoreString
	/* Path in the layer repository where the layer should start */
	SourcePath LoreString
	/* Metadata key to use to match revisions */
	Metadata LoreString
}

func NewLoreLayerAddArgs

func NewLoreLayerAddArgs(opts LoreLayerAddArgs) (LoreLayerAddArgsFFI, func())

type LoreLayerAddEventData

type LoreLayerAddEventData struct {
	/* Path in the outer repository where the layer is placed. */
	TargetPath string
	/* Identifier of the source repository. */
	SourceRepository LoreRepositoryId
	/* Path inside the source repository where the layer starts. */
	SourcePath string
	/* Metadata used to match revisions between the repositories. */
	Metadata string
	/* Revision of the source repository. */
	Revision LoreHash
}

type LoreLayerAddEventDataFFI

type LoreLayerAddEventDataFFI struct {
	/* Path in the outer repository where the layer is placed. */
	TargetPath LoreString
	/* Identifier of the source repository. */
	SourceRepository LoreRepositoryId
	/* Path inside the source repository where the layer starts. */
	SourcePath LoreString
	/* Metadata used to match revisions between the repositories. */
	Metadata LoreString
	/* Revision of the source repository. */
	Revision LoreHash
}

func (*LoreLayerAddEventDataFFI) Clone

type LoreLayerEntryEventData

type LoreLayerEntryEventData struct {
	/* Path in the outer repository where the layer is placed. */
	TargetPath string
	/* Identifier of the source repository. */
	SourceRepository LoreRepositoryId
	/* Path inside the source repository where the layer starts. */
	SourcePath string
	/* Metadata used to match revisions between the repositories. */
	Metadata string
	/* Revision of the source repository. */
	Revision LoreHash
}

type LoreLayerEntryEventDataFFI

type LoreLayerEntryEventDataFFI struct {
	/* Path in the outer repository where the layer is placed. */
	TargetPath LoreString
	/* Identifier of the source repository. */
	SourceRepository LoreRepositoryId
	/* Path inside the source repository where the layer starts. */
	SourcePath LoreString
	/* Metadata used to match revisions between the repositories. */
	Metadata LoreString
	/* Revision of the source repository. */
	Revision LoreHash
}

func (*LoreLayerEntryEventDataFFI) Clone

type LoreLayerListArgs

type LoreLayerListArgs struct {
	Unused int
}

type LoreLayerListArgsFFI

type LoreLayerListArgsFFI struct {
	Unused int
}

func NewLoreLayerListArgs

func NewLoreLayerListArgs(opts LoreLayerListArgs) (LoreLayerListArgsFFI, func())

type LoreLayerRemoveArgs

type LoreLayerRemoveArgs struct {
	/* Path in the current repository where the layer is placed */
	TargetPath string
	/* Repository added as a layer at the given path */
	SourceRepository string
	/* Remove all untracked files and directories inside the layer mount */
	Purge bool
}

type LoreLayerRemoveArgsFFI

type LoreLayerRemoveArgsFFI struct {
	/* Path in the current repository where the layer is placed */
	TargetPath LoreString
	/* Repository added as a layer at the given path */
	SourceRepository LoreString
	/* Remove all untracked files and directories inside the layer mount */
	Purge uint8
}

func NewLoreLayerRemoveArgs

func NewLoreLayerRemoveArgs(opts LoreLayerRemoveArgs) (LoreLayerRemoveArgsFFI, func())

type LoreLayerRemoveEventData

type LoreLayerRemoveEventData struct {
	/* Path in the outer repository where the layer was placed. */
	TargetPath string
	/* Identifier of the source repository. */
	SourceRepository LoreRepositoryId
	/* Path inside the source repository where the layer started. */
	SourcePath string
	/* Revision of the source repository. */
	Revision LoreHash
	/* Set when removal was forced. */
	Forced bool
	/* Set when the layer files were purged from disk. */
	Purged bool
	/* Number of files removed. */
	FileCount uint64
	/* Number of directories removed. */
	DirectoryCount uint64
	/* Number of modified files encountered. */
	ModifiedCount uint64
}

type LoreLayerRemoveEventDataFFI

type LoreLayerRemoveEventDataFFI struct {
	/* Path in the outer repository where the layer was placed. */
	TargetPath LoreString
	/* Identifier of the source repository. */
	SourceRepository LoreRepositoryId
	/* Path inside the source repository where the layer started. */
	SourcePath LoreString
	/* Revision of the source repository. */
	Revision LoreHash
	/* Set when removal was forced. */
	Forced uint8
	/* Set when the layer files were purged from disk. */
	Purged uint8
	/* Number of files removed. */
	FileCount uint64
	/* Number of directories removed. */
	DirectoryCount uint64
	/* Number of modified files encountered. */
	ModifiedCount uint64
}

func (*LoreLayerRemoveEventDataFFI) Clone

type LoreLayerStagedEntryEventData

type LoreLayerStagedEntryEventData struct {
	/* Path in the outer repository where the layer is placed. */
	TargetPath string
	/* Identifier of the source repository. */
	SourceRepository LoreRepositoryId
	/* Number of staged files in the layer. */
	StagedFileCount uint64
}

type LoreLayerStagedEntryEventDataFFI

type LoreLayerStagedEntryEventDataFFI struct {
	/* Path in the outer repository where the layer is placed. */
	TargetPath LoreString
	/* Identifier of the source repository. */
	SourceRepository LoreRepositoryId
	/* Number of staged files in the layer. */
	StagedFileCount uint64
}

func (*LoreLayerStagedEntryEventDataFFI) Clone

type LoreLinkAddArgs

type LoreLinkAddArgs struct {
	/* Name, ID or URL of a repository on this repository's remote */
	Link string
	/* Path within this repository where the link is added */
	LinkPath string
	/* Source path within the linked repository; `/` or `\` means the root */
	SourcePath string
	/* Branch or revision to set the link pin at */
	Pin string
	/* Disable automatic branch creation in the linked repository */
	DisableBranching bool
}

type LoreLinkAddArgsFFI

type LoreLinkAddArgsFFI struct {
	/* Name, ID or URL of a repository on this repository's remote */
	Link LoreString
	/* Path within this repository where the link is added */
	LinkPath LoreString
	/* Source path within the linked repository; `/` or `\` means the root */
	SourcePath LoreString
	/* Branch or revision to set the link pin at */
	Pin LoreString
	/* Disable automatic branch creation in the linked repository */
	DisableBranching uint8
}

func NewLoreLinkAddArgs

func NewLoreLinkAddArgs(opts LoreLinkAddArgs) (LoreLinkAddArgsFFI, func())

type LoreLinkBranchCreateEventData added in v0.9.0

type LoreLinkBranchCreateEventData struct {
	/* Path of the link within the parent repository. */
	LinkPath string
	/* Identifier of the repository the link points to. */
	LinkRepository LoreRepositoryId
	/* Identifier of the branch in the linked repository. */
	Branch LoreBranchId
	/* Hash of the latest revision on that branch. */
	Revision LoreHash
	/* Set when a branch with this identifier was already present and was
	reused rather than created. */
	Reused bool
}

type LoreLinkBranchCreateEventDataFFI added in v0.9.0

type LoreLinkBranchCreateEventDataFFI struct {
	/* Path of the link within the parent repository. */
	LinkPath LoreString
	/* Identifier of the repository the link points to. */
	LinkRepository LoreRepositoryId
	/* Identifier of the branch in the linked repository. */
	Branch LoreBranchId
	/* Hash of the latest revision on that branch. */
	Revision LoreHash
	/* Set when a branch with this identifier was already present and was
	reused rather than created. */
	Reused uint8
}

func (*LoreLinkBranchCreateEventDataFFI) Clone added in v0.9.0

type LoreLinkChangeEventData

type LoreLinkChangeEventData struct {
	/* Path of the link within the parent repository. */
	LinkPath string
	/* Identifier of the repository the link points to. */
	LinkRepository LoreRepositoryId
	/* Identifier of the branch the link is pinned to. */
	Branch LoreBranchId
	/* Hash of the revision the link is pinned to. */
	Revision LoreHash
	/* Kind of change applied to the link. */
	Action LoreFileAction
}

type LoreLinkChangeEventDataFFI

type LoreLinkChangeEventDataFFI struct {
	/* Path of the link within the parent repository. */
	LinkPath LoreString
	/* Identifier of the repository the link points to. */
	LinkRepository LoreRepositoryId
	/* Identifier of the branch the link is pinned to. */
	Branch LoreBranchId
	/* Hash of the revision the link is pinned to. */
	Revision LoreHash
	/* Kind of change applied to the link. */
	Action LoreFileAction
}

func (*LoreLinkChangeEventDataFFI) Clone

type LoreLinkEntryEventData

type LoreLinkEntryEventData struct {
	/* Identifier of the repository the link points to. */
	Link LoreRepositoryId
	/* Identifier of the link node in the parent repository. */
	LinkNode uint32
	/* Path of the link within the parent repository. */
	LinkPath string
	/* Identifier of the source node in the linked repository. */
	SourceNode uint32
	/* Path of the source within the linked repository. */
	SourcePath string
	/* Identifier of the branch the link is pinned to. */
	Branch LoreBranchId
	/* Set when the link follows its parent's branch instead of being pinned to
	an explicit one, in which case `branch` is the branch it resolved to. */
	Tracking bool
	/* Hash of the revision the link is pinned to. */
	Revision LoreHash
	/* Link flags. */
	Flags uint32
}

type LoreLinkEntryEventDataFFI

type LoreLinkEntryEventDataFFI struct {
	/* Identifier of the repository the link points to. */
	Link LoreRepositoryId
	/* Identifier of the link node in the parent repository. */
	LinkNode uint32
	/* Path of the link within the parent repository. */
	LinkPath LoreString
	/* Identifier of the source node in the linked repository. */
	SourceNode uint32
	/* Path of the source within the linked repository. */
	SourcePath LoreString
	/* Identifier of the branch the link is pinned to. */
	Branch LoreBranchId
	/* Set when the link follows its parent's branch instead of being pinned to
	an explicit one, in which case `branch` is the branch it resolved to. */
	Tracking uint8
	/* Hash of the revision the link is pinned to. */
	Revision LoreHash
	/* Link flags. */
	Flags uint32
}

func (*LoreLinkEntryEventDataFFI) Clone

type LoreLinkInfoArgs added in v0.9.0

type LoreLinkInfoArgs struct {
	/* Path within this repository of the link to describe */
	LinkPath string
}

type LoreLinkInfoArgsFFI added in v0.9.0

type LoreLinkInfoArgsFFI struct {
	/* Path within this repository of the link to describe */
	LinkPath LoreString
}

func NewLoreLinkInfoArgs added in v0.9.0

func NewLoreLinkInfoArgs(opts LoreLinkInfoArgs) (LoreLinkInfoArgsFFI, func())

type LoreLinkInfoEventData added in v0.9.0

type LoreLinkInfoEventData struct {
	/* The link as `LinkEntry` reports it. */
	Entry LoreLinkEntryEventData
	/* Hash of the remote latest revision of the pinned branch, zero when the
	remote was not consulted. */
	RemoteRevision LoreHash
	/* Staged change to the link itself. */
	StagedState LoreLinkStagedState
	/* Number of staged files inside the linked repository. */
	StagedFileCount uint64
}

type LoreLinkInfoEventDataFFI added in v0.9.0

type LoreLinkInfoEventDataFFI struct {
	/* The link as `LinkEntry` reports it. */
	Entry LoreLinkEntryEventDataFFI
	/* Hash of the remote latest revision of the pinned branch, zero when the
	remote was not consulted. */
	RemoteRevision LoreHash
	/* Staged change to the link itself. */
	StagedState LoreLinkStagedState
	/* Number of staged files inside the linked repository. */
	StagedFileCount uint64
}

func (*LoreLinkInfoEventDataFFI) Clone added in v0.9.0

type LoreLinkListArgs

type LoreLinkListArgs struct {
	Unused int
}

type LoreLinkListArgsFFI

type LoreLinkListArgsFFI struct {
	Unused int
}

func NewLoreLinkListArgs

func NewLoreLinkListArgs(opts LoreLinkListArgs) (LoreLinkListArgsFFI, func())

type LoreLinkListStagedArgs added in v0.10.1

type LoreLinkListStagedArgs struct {
	Unused int
}

type LoreLinkListStagedArgsFFI added in v0.10.1

type LoreLinkListStagedArgsFFI struct {
	Unused int
}

func NewLoreLinkListStagedArgs added in v0.10.1

func NewLoreLinkListStagedArgs(opts LoreLinkListStagedArgs) (LoreLinkListStagedArgsFFI, func())

type LoreLinkPinResolution added in v0.15.0

type LoreLinkPinResolution int32
const (
	LoreLinkPinResolution_MINE   LoreLinkPinResolution = 0
	LoreLinkPinResolution_THEIRS LoreLinkPinResolution = 1
)

type LoreLinkPinSideData added in v0.15.0

type LoreLinkPinSideData struct {
	/* The branch the row resolves to. */
	Branch LoreBranchId
	/* The revision the row pins. */
	Revision LoreHash
	/* The row's flags: `1` where the link does not follow the parent's branches. */
	Flags uint32
	/* The path in the linked repository the row mounts, empty when it cannot be read. */
	SourcePath string
	/* Message of the revision the row pins, empty when it cannot be read. */
	Message string
}

type LoreLinkPinSideDataFFI added in v0.15.0

type LoreLinkPinSideDataFFI struct {
	/* The branch the row resolves to. */
	Branch LoreBranchId
	/* The revision the row pins. */
	Revision LoreHash
	/* The row's flags: `1` where the link does not follow the parent's branches. */
	Flags uint32
	/* The path in the linked repository the row mounts, empty when it cannot be read. */
	SourcePath LoreString
	/* Message of the revision the row pins, empty when it cannot be read. */
	Message LoreString
}

func NewLoreLinkPinSideData added in v0.15.0

func NewLoreLinkPinSideData(opts LoreLinkPinSideData) (LoreLinkPinSideDataFFI, func())

func (*LoreLinkPinSideDataFFI) Clone added in v0.15.0

type LoreLinkRemoveArgs

type LoreLinkRemoveArgs struct {
	/* Path within this repository where the link is removed */
	LinkPath string
}

type LoreLinkRemoveArgsFFI

type LoreLinkRemoveArgsFFI struct {
	/* Path within this repository where the link is removed */
	LinkPath LoreString
}

func NewLoreLinkRemoveArgs

func NewLoreLinkRemoveArgs(opts LoreLinkRemoveArgs) (LoreLinkRemoveArgsFFI, func())

type LoreLinkStagedEntryEventData

type LoreLinkStagedEntryEventData struct {
	/* Path of the link within the parent repository. */
	Path string
	/* Identifier of the repository the link points to. */
	Repository LoreRepositoryId
	/* Number of staged files inside the link. */
	StagedFileCount uint64
}

type LoreLinkStagedEntryEventDataFFI

type LoreLinkStagedEntryEventDataFFI struct {
	/* Path of the link within the parent repository. */
	Path LoreString
	/* Identifier of the repository the link points to. */
	Repository LoreRepositoryId
	/* Number of staged files inside the link. */
	StagedFileCount uint64
}

func (*LoreLinkStagedEntryEventDataFFI) Clone

type LoreLinkStagedState added in v0.9.0

type LoreLinkStagedState int32
const (
	LoreLinkStagedState_NONE     LoreLinkStagedState = 0
	LoreLinkStagedState_ADDED    LoreLinkStagedState = 1
	LoreLinkStagedState_REMOVED  LoreLinkStagedState = 2
	LoreLinkStagedState_MODIFIED LoreLinkStagedState = 3
)

type LoreLinkUpdateArgs

type LoreLinkUpdateArgs struct {
	/* Path within this repository of the link to update */
	LinkPath string
	/* Branch or specific revision to pin the link to */
	Pin string
}

type LoreLinkUpdateArgsFFI

type LoreLinkUpdateArgsFFI struct {
	/* Path within this repository of the link to update */
	LinkPath LoreString
	/* Branch or specific revision to pin the link to */
	Pin LoreString
}

func NewLoreLinkUpdateArgs

func NewLoreLinkUpdateArgs(opts LoreLinkUpdateArgs) (LoreLinkUpdateArgsFFI, func())

type LoreLockFileAcquireArgs

type LoreLockFileAcquireArgs struct {
	/* Paths to acquire locks on */
	Paths []string
	/* Branch the locks are acquired on */
	Branch string
}

type LoreLockFileAcquireArgsFFI

type LoreLockFileAcquireArgsFFI struct {
	/* Paths to acquire locks on */
	Paths LoreStringArrayFFI
	/* Branch the locks are acquired on */
	Branch LoreString
}

func NewLoreLockFileAcquireArgs

func NewLoreLockFileAcquireArgs(opts LoreLockFileAcquireArgs) (LoreLockFileAcquireArgsFFI, func())

type LoreLockFileAcquireBeginEventData added in v0.8.4

type LoreLockFileAcquireBeginEventData struct {
	/* Number of acquire entries that follow. */
	Count uint64
	/* Whether the entries that follow were already owned. */
	Ignored bool
}

type LoreLockFileAcquireBeginEventDataFFI added in v0.8.4

type LoreLockFileAcquireBeginEventDataFFI struct {
	/* Number of acquire entries that follow. */
	Count uint64
	/* Whether the entries that follow were already owned. */
	Ignored uint8
}

func (*LoreLockFileAcquireBeginEventDataFFI) Clone added in v0.8.4

type LoreLockFileAcquireEventData

type LoreLockFileAcquireEventData struct {
	/* The path whose lock is being acquired. */
	Path string
}

type LoreLockFileAcquireEventDataFFI

type LoreLockFileAcquireEventDataFFI struct {
	/* The path whose lock is being acquired. */
	Path LoreString
}

func (*LoreLockFileAcquireEventDataFFI) Clone

type LoreLockFileQueryArgs

type LoreLockFileQueryArgs struct {
	/* Branch to query locks on; empty queries every branch, or the current branch where `path`
	is given */
	Branch string
	/* Owner filter; empty matches any owner. Can't be combined with `path` */
	Owner string
	/* Path filter; empty matches any path. Can't be combined with `owner` */
	Path string
}

type LoreLockFileQueryArgsFFI

type LoreLockFileQueryArgsFFI struct {
	/* Branch to query locks on; empty queries every branch, or the current branch where `path`
	is given */
	Branch LoreString
	/* Owner filter; empty matches any owner. Can't be combined with `path` */
	Owner LoreString
	/* Path filter; empty matches any path. Can't be combined with `owner` */
	Path LoreString
}

func NewLoreLockFileQueryArgs

func NewLoreLockFileQueryArgs(opts LoreLockFileQueryArgs) (LoreLockFileQueryArgsFFI, func())

type LoreLockFileQueryBeginEventData

type LoreLockFileQueryBeginEventData struct {
	/* Number of query entries that follow. */
	Count uint64
}

type LoreLockFileQueryBeginEventDataFFI

type LoreLockFileQueryBeginEventDataFFI struct {
	/* Number of query entries that follow. */
	Count uint64
}

func (*LoreLockFileQueryBeginEventDataFFI) Clone

type LoreLockFileQueryEventData

type LoreLockFileQueryEventData struct {
	/* Identifier of the branch the lock belongs to. */
	Branch LoreBranchId
	/* Path the lock applies to. */
	Path string
	/* Identifier of the user that holds the lock. */
	Owner string
	/* Timestamp recorded when the lock was acquired. */
	LockedAt uint64
}

type LoreLockFileQueryEventDataFFI

type LoreLockFileQueryEventDataFFI struct {
	/* Identifier of the branch the lock belongs to. */
	Branch LoreBranchId
	/* Path the lock applies to. */
	Path LoreString
	/* Identifier of the user that holds the lock. */
	Owner LoreString
	/* Timestamp recorded when the lock was acquired. */
	LockedAt uint64
}

func (*LoreLockFileQueryEventDataFFI) Clone

type LoreLockFileReleaseArgs

type LoreLockFileReleaseArgs struct {
	/* Paths to release locks on */
	Paths []string
	/* Branch the locks were acquired on */
	Branch string
	/* Owner of the lock */
	Owner string
	/* Owner id of the lock */
	OwnerId string
}

type LoreLockFileReleaseArgsFFI

type LoreLockFileReleaseArgsFFI struct {
	/* Paths to release locks on */
	Paths LoreStringArrayFFI
	/* Branch the locks were acquired on */
	Branch LoreString
	/* Owner of the lock */
	Owner LoreString
	/* Owner id of the lock */
	OwnerId LoreString
}

func NewLoreLockFileReleaseArgs

func NewLoreLockFileReleaseArgs(opts LoreLockFileReleaseArgs) (LoreLockFileReleaseArgsFFI, func())

type LoreLockFileReleaseBeginEventData added in v0.8.4

type LoreLockFileReleaseBeginEventData struct {
	/* Number of release entries that follow. */
	Count uint64
	/* Whether no matching lock was found to release. */
	NotFound bool
}

type LoreLockFileReleaseBeginEventDataFFI added in v0.8.4

type LoreLockFileReleaseBeginEventDataFFI struct {
	/* Number of release entries that follow. */
	Count uint64
	/* Whether no matching lock was found to release. */
	NotFound uint8
}

func (*LoreLockFileReleaseBeginEventDataFFI) Clone added in v0.8.4

type LoreLockFileReleaseEventData

type LoreLockFileReleaseEventData struct {
	/* The path whose lock is being released. */
	Path string
}

type LoreLockFileReleaseEventDataFFI

type LoreLockFileReleaseEventDataFFI struct {
	/* The path whose lock is being released. */
	Path LoreString
}

func (*LoreLockFileReleaseEventDataFFI) Clone

type LoreLockFileStatusArgs

type LoreLockFileStatusArgs struct {
	/* Paths to get the lock status of */
	Paths []string
	/* Branch the locks were acquired on */
	Branch string
}

type LoreLockFileStatusArgsFFI

type LoreLockFileStatusArgsFFI struct {
	/* Paths to get the lock status of */
	Paths LoreStringArrayFFI
	/* Branch the locks were acquired on */
	Branch LoreString
}

func NewLoreLockFileStatusArgs

func NewLoreLockFileStatusArgs(opts LoreLockFileStatusArgs) (LoreLockFileStatusArgsFFI, func())

type LoreLockFileStatusBeginEventData

type LoreLockFileStatusBeginEventData struct {
	/* Number of status entries that follow. */
	Count uint64
}

type LoreLockFileStatusBeginEventDataFFI

type LoreLockFileStatusBeginEventDataFFI struct {
	/* Number of status entries that follow. */
	Count uint64
}

func (*LoreLockFileStatusBeginEventDataFFI) Clone

type LoreLockFileStatusEventData

type LoreLockFileStatusEventData struct {
	/* Path the status applies to. */
	Path string
	/* Identifier of the user that holds the lock. */
	Owner string
	/* Timestamp recorded when the lock was acquired. */
	LockedAt uint64
}

type LoreLockFileStatusEventDataFFI

type LoreLockFileStatusEventDataFFI struct {
	/* Path the status applies to. */
	Path LoreString
	/* Identifier of the user that holds the lock. */
	Owner LoreString
	/* Timestamp recorded when the lock was acquired. */
	LockedAt uint64
}

func (*LoreLockFileStatusEventDataFFI) Clone

type LoreLogConfig

type LoreLogConfig struct {
	/* Enable logging to a file (disabled by default) */
	File bool
	/* Enable daily rolling logfile */
	FileRolling bool
	/* Path to the log file */
	FilePath string
	/* Prefix for log files */
	FilePrefix string
	/* Minimum log level */
	Level LoreLogLevel
	/* Log categories bitflags (local, remote, transport) */
	Categories uint32
	/* Maximum log file size */
	FileMaxSize uint32
	/* Maximum log file count */
	FileMaxCount uint32
}

type LoreLogConfigFFI

type LoreLogConfigFFI struct {
	/* Enable logging to a file (disabled by default) */
	File uint8
	/* Enable daily rolling logfile */
	FileRolling uint8
	/* Path to the log file */
	FilePath LoreString
	/* Prefix for log files */
	FilePrefix LoreString
	/* Minimum log level */
	Level LoreLogLevel
	/* Log categories bitflags (local, remote, transport) */
	Categories uint32
	/* Maximum log file size */
	FileMaxSize uint32
	/* Maximum log file count */
	FileMaxCount uint32
}

func NewLoreLogConfig

func NewLoreLogConfig(opts LoreLogConfig) (LoreLogConfigFFI, func())

func (*LoreLogConfigFFI) Clone

func (e *LoreLogConfigFFI) Clone() LoreLogConfig

type LoreLogEventData

type LoreLogEventData struct {
	/* The severity level of the log message. */
	Level LoreLogLevel
	/* The category of the log message. */
	Category uint32
	/* The time the message was produced. */
	Timestamp uint64
	/* The source location that produced the message. */
	Location string
	/* The log message text. */
	Message string
}

type LoreLogEventDataFFI

type LoreLogEventDataFFI struct {
	/* The severity level of the log message. */
	Level LoreLogLevel
	/* The category of the log message. */
	Category uint32
	/* The time the message was produced. */
	Timestamp uint64
	/* The source location that produced the message. */
	Location LoreString
	/* The log message text. */
	Message LoreString
}

func (*LoreLogEventDataFFI) Clone

type LoreLogLevel

type LoreLogLevel int32
const (
	LoreLogLevel_NONE  LoreLogLevel = 0
	LoreLogLevel_TRACE LoreLogLevel = 1
	LoreLogLevel_DEBUG LoreLogLevel = 2
	LoreLogLevel_INFO  LoreLogLevel = 3
	LoreLogLevel_WARN  LoreLogLevel = 4
	LoreLogLevel_ERROR LoreLogLevel = 5
)

type LoreMaintenanceEventData

type LoreMaintenanceEventData struct {
	/* The maintenance message text. */
	Message string
}

type LoreMaintenanceEventDataFFI

type LoreMaintenanceEventDataFFI struct {
	/* The maintenance message text. */
	Message LoreString
}

func (*LoreMaintenanceEventDataFFI) Clone

type LoreMetadata

type LoreMetadata struct {
	Tag     LoreMetadataType
	Address *LoreAddress
	Boolean *bool
	Binary  *LoreBinary
	Context *LoreContext
	Hash    *LoreHash
	Numeric *uint64
	String  *string
}

LoreMetadata is a Go-compatible representation of lore_metadata_t

type LoreMetadataClearFileEventData

type LoreMetadataClearFileEventData struct {
	/* Path of the file whose metadata was cleared. */
	Path string
}

type LoreMetadataClearFileEventDataFFI

type LoreMetadataClearFileEventDataFFI struct {
	/* Path of the file whose metadata was cleared. */
	Path LoreString
}

func (*LoreMetadataClearFileEventDataFFI) Clone

type LoreMetadataClearRevisionEventData

type LoreMetadataClearRevisionEventData struct {
	/* Hash of the revision whose metadata was cleared. */
	Revision LoreHash
}

type LoreMetadataClearRevisionEventDataFFI

type LoreMetadataClearRevisionEventDataFFI struct {
	/* Hash of the revision whose metadata was cleared. */
	Revision LoreHash
}

func (*LoreMetadataClearRevisionEventDataFFI) Clone

type LoreMetadataEventData

type LoreMetadataEventData struct {
	/* The metadata key. */
	Key string
	/* The metadata value. */
	Value LoreMetadata
}

type LoreMetadataEventDataFFI

type LoreMetadataEventDataFFI struct {
	/* The metadata key. */
	Key LoreString
	/* The metadata value. */
	Value LoreMetadataFFI
}

func (*LoreMetadataEventDataFFI) Clone

type LoreMetadataFFI

type LoreMetadataFFI struct {
	Tag LoreMetadataType
	// contains filtered or unexported fields
}

LoreMetadataFFI is a C-compatible representation of lore_metadata_t

func NewLoreMetadata added in v0.9.0

func NewLoreMetadata(m LoreMetadata) (LoreMetadataFFI, func())

NewLoreMetadata converts a LoreMetadata to LoreMetadataFFI, writing the payload into the union storage under the kind named by Tag. A nil payload pointer is written as that kind's zero value. Panics on a Tag that names no kind, including the zero value, which the C API does not accept.

func (*LoreMetadataFFI) AsBoolean

func (m *LoreMetadataFFI) AsBoolean() bool

AsBoolean returns the metadata value as bool Only valid if Tag == LoreMetadataType_BOOLEAN

func (*LoreMetadataFFI) AsLoreAddress

func (m *LoreMetadataFFI) AsLoreAddress() *LoreAddress

AsAddress returns the metadata value as LoreAddress Only valid if Tag == LoreMetadataType_ADDRESS

func (*LoreMetadataFFI) AsLoreBinary

func (m *LoreMetadataFFI) AsLoreBinary() *LoreBinaryFFI

AsBinary returns the metadata value as LoreBinaryFFI Only valid if Tag == LoreMetadataType_BINARY

func (*LoreMetadataFFI) AsLoreContext

func (m *LoreMetadataFFI) AsLoreContext() *LoreContext

AsContext returns the metadata value as LoreContext Only valid if Tag == LoreMetadataType_CONTEXT

func (*LoreMetadataFFI) AsLoreHash

func (m *LoreMetadataFFI) AsLoreHash() *LoreHash

AsHash returns the metadata value as LoreHash Only valid if Tag == LoreMetadataType_HASH

func (*LoreMetadataFFI) AsLoreString

func (m *LoreMetadataFFI) AsLoreString() *LoreString

AsString returns the metadata value as LoreString Only valid if Tag == LoreMetadataType_STRING

func (*LoreMetadataFFI) AsNumeric

func (m *LoreMetadataFFI) AsNumeric() uint64

AsNumeric returns the metadata value as uint64 Only valid if Tag == LoreMetadataType_NUMERIC

func (*LoreMetadataFFI) Clone

func (m *LoreMetadataFFI) Clone() LoreMetadata

type LoreMetadataType

type LoreMetadataType int32
const (
	LoreMetadataType_ADDRESS LoreMetadataType = 1
	LoreMetadataType_BOOLEAN LoreMetadataType = 2
	LoreMetadataType_CONTEXT LoreMetadataType = 3
	LoreMetadataType_HASH    LoreMetadataType = 4
	LoreMetadataType_NUMERIC LoreMetadataType = 5
	LoreMetadataType_STRING  LoreMetadataType = 6
	LoreMetadataType_BINARY  LoreMetadataType = 255
)

type LoreMetadataTypeArray

type LoreMetadataTypeArray = []LoreMetadataType

type LoreMetadataTypeArrayFFI

type LoreMetadataTypeArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreMetadataTypeArray

func NewLoreMetadataTypeArray(arr []LoreMetadataType) (LoreMetadataTypeArrayFFI, func())

func (LoreMetadataTypeArrayFFI) Clone

func (LoreMetadataTypeArrayFFI) Get

func (LoreMetadataTypeArrayFFI) Len

func (arr LoreMetadataTypeArrayFFI) Len() int

type LoreNodeStagedAction added in v0.9.0

type LoreNodeStagedAction int32
const (
	LoreNodeStagedAction_NONE   LoreNodeStagedAction = 0
	LoreNodeStagedAction_ADD    LoreNodeStagedAction = 1
	LoreNodeStagedAction_MODIFY LoreNodeStagedAction = 2
	LoreNodeStagedAction_DELETE LoreNodeStagedAction = 3
	LoreNodeStagedAction_MOVE   LoreNodeStagedAction = 4
	LoreNodeStagedAction_COPY   LoreNodeStagedAction = 5
)

type LoreNodeType

type LoreNodeType int32
const (
	LoreNodeType_DIRECTORY LoreNodeType = 0
	LoreNodeType_FILE      LoreNodeType = 1
	LoreNodeType_LINK      LoreNodeType = 2
)

type LoreNotificationBranchCreatedEventData

type LoreNotificationBranchCreatedEventData struct {
	/* Identifier of the created branch. */
	Branch LoreBranchId
}

type LoreNotificationBranchCreatedEventDataFFI

type LoreNotificationBranchCreatedEventDataFFI struct {
	/* Identifier of the created branch. */
	Branch LoreBranchId
}

func (*LoreNotificationBranchCreatedEventDataFFI) Clone

type LoreNotificationBranchDeletedEventData

type LoreNotificationBranchDeletedEventData struct {
	/* Identifier of the deleted branch. */
	Branch LoreBranchId
}

type LoreNotificationBranchDeletedEventDataFFI

type LoreNotificationBranchDeletedEventDataFFI struct {
	/* Identifier of the deleted branch. */
	Branch LoreBranchId
}

func (*LoreNotificationBranchDeletedEventDataFFI) Clone

type LoreNotificationBranchPushedEventData

type LoreNotificationBranchPushedEventData struct {
	/* Hash of the pushed revision. */
	Revision LoreHash
	/* Sequence number of the pushed revision. */
	RevisionNumber uint64
	/* Identifier of the branch that received the revision. */
	Branch LoreBranchId
	/* Identifier of the user that pushed the revision. */
	UserId string
}

type LoreNotificationBranchPushedEventDataFFI

type LoreNotificationBranchPushedEventDataFFI struct {
	/* Hash of the pushed revision. */
	Revision LoreHash
	/* Sequence number of the pushed revision. */
	RevisionNumber uint64
	/* Identifier of the branch that received the revision. */
	Branch LoreBranchId
	/* Identifier of the user that pushed the revision. */
	UserId LoreString
}

func (*LoreNotificationBranchPushedEventDataFFI) Clone

type LoreNotificationResourceLockedEventData

type LoreNotificationResourceLockedEventData struct {
	/* Identifier of the user that locked the resources. */
	UserId string
	/* Identifier of the branch the resources belong to. */
	Branch LoreBranchId
	/* Paths of the locked resources. */
	Paths []string
}

type LoreNotificationResourceLockedEventDataFFI

type LoreNotificationResourceLockedEventDataFFI struct {
	/* Identifier of the user that locked the resources. */
	UserId LoreString
	/* Identifier of the branch the resources belong to. */
	Branch LoreBranchId
	/* Paths of the locked resources. */
	Paths LoreStringArrayFFI
}

func (*LoreNotificationResourceLockedEventDataFFI) Clone

type LoreNotificationResourceUnlockedEventData

type LoreNotificationResourceUnlockedEventData struct {
	/* Identifier of the user that unlocked the resources. */
	UserId string
	/* Identifier of the branch the resources belong to. */
	Branch LoreBranchId
	/* Paths of the unlocked resources. */
	Paths []string
}

type LoreNotificationResourceUnlockedEventDataFFI

type LoreNotificationResourceUnlockedEventDataFFI struct {
	/* Identifier of the user that unlocked the resources. */
	UserId LoreString
	/* Identifier of the branch the resources belong to. */
	Branch LoreBranchId
	/* Paths of the unlocked resources. */
	Paths LoreStringArrayFFI
}

func (*LoreNotificationResourceUnlockedEventDataFFI) Clone

type LoreNotificationSubscribeArgs

type LoreNotificationSubscribeArgs struct {
	Unused int
}

type LoreNotificationSubscribeArgsFFI

type LoreNotificationSubscribeArgsFFI struct {
	Unused int
}

func NewLoreNotificationSubscribeArgs

func NewLoreNotificationSubscribeArgs(opts LoreNotificationSubscribeArgs) (LoreNotificationSubscribeArgsFFI, func())

type LoreNotificationSubscribedEventData

type LoreNotificationSubscribedEventData struct {
	/* Identifier of the subscribed repository. */
	Repository LoreRepositoryId
}

type LoreNotificationSubscribedEventDataFFI

type LoreNotificationSubscribedEventDataFFI struct {
	/* Identifier of the subscribed repository. */
	Repository LoreRepositoryId
}

func (*LoreNotificationSubscribedEventDataFFI) Clone

type LoreNotificationUnsubscribeArgs

type LoreNotificationUnsubscribeArgs struct {
	Unused int
}

type LoreNotificationUnsubscribeArgsFFI

type LoreNotificationUnsubscribeArgsFFI struct {
	Unused int
}

type LoreNotificationUnsubscribedEventData

type LoreNotificationUnsubscribedEventData struct {
	/* Identifier of the unsubscribed repository. */
	Repository LoreRepositoryId
}

type LoreNotificationUnsubscribedEventDataFFI

type LoreNotificationUnsubscribedEventDataFFI struct {
	/* Identifier of the unsubscribed repository. */
	Repository LoreRepositoryId
}

func (*LoreNotificationUnsubscribedEventDataFFI) Clone

type LorePartition

type LorePartition struct {
	Data [16]uint8
}

func (LorePartition) Clone

func (c LorePartition) Clone() LorePartition

func (LorePartition) String

func (c LorePartition) String() string

String returns the context as a lowercase hexadecimal string Implements fmt.Stringer interface

type LorePathIgnoreEventData

type LorePathIgnoreEventData struct {
	/* The ignored path */
	Path string
}

type LorePathIgnoreEventDataFFI

type LorePathIgnoreEventDataFFI struct {
	/* The ignored path */
	Path LoreString
}

func (*LorePathIgnoreEventDataFFI) Clone

type LoreProgressEventData

type LoreProgressEventData struct {
	/* Placeholder field; carries no meaningful value. */
	Unused uint32
}

type LoreProgressEventDataFFI

type LoreProgressEventDataFFI struct {
	/* Placeholder field; carries no meaningful value. */
	Unused uint32
}

func (*LoreProgressEventDataFFI) Clone

type LoreRepositoryCloneArgs

type LoreRepositoryCloneArgs struct {
	/* URL to the repository */
	RepositoryUrl string
	/* [Optional] Revision to clone */
	Revision string
	/* [Optional] Client side view filter to use */
	View string
	/* Clone without any files */
	Bare bool
	/* Use direct file write: on Windows, write files past the file cache. A clone writes every
	file at its own path either way */
	DirectFileWrite bool
	/* Which VFS to use, if any */
	Vfs LoreVfsType
	/* (Optional) Layer module */
	Layer string
	/* (Optional) Layer metadata key to link revisions with */
	LayerMetadata string
	/* (Optional) Access recording whose paths a virtual clone warms in the background: one
	repository-relative path per line, a directory ending with `/`, `/` for the root. A
	relative file path resolves against the caller's working directory. */
	Prefetch string
	/* Whether to use the shared store instead of a local immutable store. Zero-initialized
	(`LORE_SHARED_STORE_MODE_INHERIT`) follows the machine's global setting, except where `vfs`
	is a virtual one, which always uses a shared store and refuses
	`LORE_SHARED_STORE_MODE_DISABLED` with `InvalidArguments`. */
	UseSharedStore LoreSharedStoreMode
	/* [Optional] Path to use for the shared store, an empty string means to use the default */
	SharedStorePath string
	/* Clone without local repository tracking (memory-only stores) */
	NoTracking bool
	/* Root files for dependency-based selective clone. A root file inside a link is skipped, and
	error code 9 (not supported) is returned when every root file is. */
	RootFiles []string
	/* Tags to filter dependencies by during resolution */
	DependencyTags []string
	/* Follow transitive dependencies recursively */
	DependencyRecursive bool
	/* Maximum dependency traversal depth. 0 means unlimited. */
	DependencyDepthLimit uint32
	/* Fragments the new instance's store holds before eviction removes some; 0 uses the default
	of 2000000. The periodic eviction pass treats a value below 1048576 as 1048576. Ignored, with
	a warning, where the instance uses a shared store, whose limits are set in its
	`shared_store.toml`, and where `no_tracking`, or the `in_memory` of `lore_global_args_t`, is
	set */
	MaxCapacity uint64
	/* Bytes the new instance's store holds before compaction reclaims space; 0 uses the default of
	10 GiB. Ignored, with a warning, where the instance uses a shared store, whose limits are set
	in its `shared_store.toml`, and where `no_tracking`, or the `in_memory` of
	`lore_global_args_t`, is set */
	MaxSize uint64
}

type LoreRepositoryCloneArgsFFI

type LoreRepositoryCloneArgsFFI struct {
	/* URL to the repository */
	RepositoryUrl LoreString
	/* [Optional] Revision to clone */
	Revision LoreString
	/* [Optional] Client side view filter to use */
	View LoreString
	/* Clone without any files */
	Bare uint8
	/* Use direct file write: on Windows, write files past the file cache. A clone writes every
	file at its own path either way */
	DirectFileWrite uint8
	/* Which VFS to use, if any */
	Vfs LoreVfsType
	/* (Optional) Layer module */
	Layer LoreString
	/* (Optional) Layer metadata key to link revisions with */
	LayerMetadata LoreString
	/* (Optional) Access recording whose paths a virtual clone warms in the background: one
	repository-relative path per line, a directory ending with `/`, `/` for the root. A
	relative file path resolves against the caller's working directory. */
	Prefetch LoreString
	/* Whether to use the shared store instead of a local immutable store. Zero-initialized
	(`LORE_SHARED_STORE_MODE_INHERIT`) follows the machine's global setting, except where `vfs`
	is a virtual one, which always uses a shared store and refuses
	`LORE_SHARED_STORE_MODE_DISABLED` with `InvalidArguments`. */
	UseSharedStore LoreSharedStoreMode
	/* [Optional] Path to use for the shared store, an empty string means to use the default */
	SharedStorePath LoreString
	/* Clone without local repository tracking (memory-only stores) */
	NoTracking uint8
	/* Root files for dependency-based selective clone. A root file inside a link is skipped, and
	error code 9 (not supported) is returned when every root file is. */
	RootFiles LoreStringArrayFFI
	/* Tags to filter dependencies by during resolution */
	DependencyTags LoreStringArrayFFI
	/* Follow transitive dependencies recursively */
	DependencyRecursive uint8
	/* Maximum dependency traversal depth. 0 means unlimited. */
	DependencyDepthLimit uint32
	/* Fragments the new instance's store holds before eviction removes some; 0 uses the default
	of 2000000. The periodic eviction pass treats a value below 1048576 as 1048576. Ignored, with
	a warning, where the instance uses a shared store, whose limits are set in its
	`shared_store.toml`, and where `no_tracking`, or the `in_memory` of `lore_global_args_t`, is
	set */
	MaxCapacity uint64
	/* Bytes the new instance's store holds before compaction reclaims space; 0 uses the default of
	10 GiB. Ignored, with a warning, where the instance uses a shared store, whose limits are set
	in its `shared_store.toml`, and where `no_tracking`, or the `in_memory` of
	`lore_global_args_t`, is set */
	MaxSize uint64
}

func NewLoreRepositoryCloneArgs

func NewLoreRepositoryCloneArgs(opts LoreRepositoryCloneArgs) (LoreRepositoryCloneArgsFFI, func())

type LoreRepositoryCloneBeginEventData

type LoreRepositoryCloneBeginEventData struct {
	/* Identifier of the repository being cloned. */
	Repository LoreRepositoryId
	/* Name of the branch being cloned. */
	Branch string
	/* Revision being cloned. */
	Revision LoreHash
	/* Local path the clone is written to. */
	Path string
}

type LoreRepositoryCloneBeginEventDataFFI

type LoreRepositoryCloneBeginEventDataFFI struct {
	/* Identifier of the repository being cloned. */
	Repository LoreRepositoryId
	/* Name of the branch being cloned. */
	Branch LoreString
	/* Revision being cloned. */
	Revision LoreHash
	/* Local path the clone is written to. */
	Path LoreString
}

func (*LoreRepositoryCloneBeginEventDataFFI) Clone

type LoreRepositoryCloneCountData

type LoreRepositoryCloneCountData struct {
	/* Number of files finished. */
	FileComplete uint64
	/* Number of files kept as they already matched. */
	FileRetain uint64
	/* Number of files replaced. */
	FileReplace uint64
	/* Total number of files discovered to process. */
	FileCount uint64
	/* Number of files currently being processed. */
	FileInflight uint64
	/* Number of fragment fetches currently in flight. */
	FragmentInflight uint64
	/* Number of bytes transferred so far. */
	BytesTransferred uint64
	/* Total number of bytes to transfer. */
	BytesTotal uint64
	/* Non-zero once file discovery has finished. */
	DiscoveryComplete bool
}

type LoreRepositoryCloneCountDataFFI

type LoreRepositoryCloneCountDataFFI struct {
	/* Number of files finished. */
	FileComplete uint64
	/* Number of files kept as they already matched. */
	FileRetain uint64
	/* Number of files replaced. */
	FileReplace uint64
	/* Total number of files discovered to process. */
	FileCount uint64
	/* Number of files currently being processed. */
	FileInflight uint64
	/* Number of fragment fetches currently in flight. */
	FragmentInflight uint64
	/* Number of bytes transferred so far. */
	BytesTransferred uint64
	/* Total number of bytes to transfer. */
	BytesTotal uint64
	/* Non-zero once file discovery has finished. */
	DiscoveryComplete uint8
}

func NewLoreRepositoryCloneCountData

func NewLoreRepositoryCloneCountData(opts LoreRepositoryCloneCountData) (LoreRepositoryCloneCountDataFFI, func())

func (*LoreRepositoryCloneCountDataFFI) Clone

type LoreRepositoryCloneEndEventData

type LoreRepositoryCloneEndEventData struct {
	/* Name of the branch that was cloned. */
	Branch string
	/* Revision that was cloned. */
	Revision LoreHash
	/* Final progress counts. */
	Count LoreRepositoryCloneCountData
}

type LoreRepositoryCloneEndEventDataFFI

type LoreRepositoryCloneEndEventDataFFI struct {
	/* Name of the branch that was cloned. */
	Branch LoreString
	/* Revision that was cloned. */
	Revision LoreHash
	/* Final progress counts. */
	Count LoreRepositoryCloneCountDataFFI
}

func (*LoreRepositoryCloneEndEventDataFFI) Clone

type LoreRepositoryCloneProgressEventData

type LoreRepositoryCloneProgressEventData struct {
	/* Current progress counts. */
	Count LoreRepositoryCloneCountData
}

type LoreRepositoryCloneProgressEventDataFFI

type LoreRepositoryCloneProgressEventDataFFI struct {
	/* Current progress counts. */
	Count LoreRepositoryCloneCountDataFFI
}

func (*LoreRepositoryCloneProgressEventDataFFI) Clone

type LoreRepositoryConfigGetArgs

type LoreRepositoryConfigGetArgs struct {
	/* Config key to read (`remote_url` or `identity`) */
	Key string
}

type LoreRepositoryConfigGetArgsFFI

type LoreRepositoryConfigGetArgsFFI struct {
	/* Config key to read (`remote_url` or `identity`) */
	Key LoreString
}

func NewLoreRepositoryConfigGetArgs

func NewLoreRepositoryConfigGetArgs(opts LoreRepositoryConfigGetArgs) (LoreRepositoryConfigGetArgsFFI, func())

type LoreRepositoryConfigGetEventData

type LoreRepositoryConfigGetEventData struct {
	/* Configuration key. */
	Key string
	/* Configuration value for the key. */
	Value string
}

type LoreRepositoryConfigGetEventDataFFI

type LoreRepositoryConfigGetEventDataFFI struct {
	/* Configuration key. */
	Key LoreString
	/* Configuration value for the key. */
	Value LoreString
}

func (*LoreRepositoryConfigGetEventDataFFI) Clone

type LoreRepositoryCreateArgs

type LoreRepositoryCreateArgs struct {
	/* URL to the repository. Treated as the repository name instead when the call is
	offline or local, where an empty value names it after the directory it is
	created in. A URL naming no host is an error otherwise. */
	RepositoryUrl string
	/* Optional repository description */
	Description string
	/* Optional repository ID, set to empty string to generate a new ID */
	Id string
	/* Which VFS to use, if any */
	Vfs LoreVfsType
	/* Whether to use the shared store instead of a local immutable store. Zero-initialized
	(`LORE_SHARED_STORE_MODE_INHERIT`) follows the machine's global setting, except where `vfs`
	is a virtual one, which always uses a shared store and refuses
	`LORE_SHARED_STORE_MODE_DISABLED` with `InvalidArguments`. */
	UseSharedStore LoreSharedStoreMode
	/* [Optional] Path to use for the shared store, an empty string means to use the default */
	SharedStorePath string
}

type LoreRepositoryCreateArgsFFI

type LoreRepositoryCreateArgsFFI struct {
	/* URL to the repository. Treated as the repository name instead when the call is
	offline or local, where an empty value names it after the directory it is
	created in. A URL naming no host is an error otherwise. */
	RepositoryUrl LoreString
	/* Optional repository description */
	Description LoreString
	/* Optional repository ID, set to empty string to generate a new ID */
	Id LoreString
	/* Which VFS to use, if any */
	Vfs LoreVfsType
	/* Whether to use the shared store instead of a local immutable store. Zero-initialized
	(`LORE_SHARED_STORE_MODE_INHERIT`) follows the machine's global setting, except where `vfs`
	is a virtual one, which always uses a shared store and refuses
	`LORE_SHARED_STORE_MODE_DISABLED` with `InvalidArguments`. */
	UseSharedStore LoreSharedStoreMode
	/* [Optional] Path to use for the shared store, an empty string means to use the default */
	SharedStorePath LoreString
}

func NewLoreRepositoryCreateArgs

func NewLoreRepositoryCreateArgs(opts LoreRepositoryCreateArgs) (LoreRepositoryCreateArgsFFI, func())

type LoreRepositoryCreateEventData

type LoreRepositoryCreateEventData struct {
	/* Identifier of the created repository. */
	Id LoreRepositoryId
	/* Name of the created repository. */
	Name string
	/* Local path of the created repository. */
	Path string
}

type LoreRepositoryCreateEventDataFFI

type LoreRepositoryCreateEventDataFFI struct {
	/* Identifier of the created repository. */
	Id LoreRepositoryId
	/* Name of the created repository. */
	Name LoreString
	/* Local path of the created repository. */
	Path LoreString
}

func (*LoreRepositoryCreateEventDataFFI) Clone

type LoreRepositoryDataEventData

type LoreRepositoryDataEventData struct {
	/* Remote URL of the repository. */
	RemoteUrl string
	/* Repository identifier. */
	Id LoreRepositoryId
	/* Instance identifier. */
	InstanceId LoreInstanceId
	/* Repository name. */
	Name string
	/* Repository description. */
	Description string
	/* Identifier of the default branch. */
	DefaultBranch LoreBranchId
	/* Name of the default branch. */
	DefaultBranchName string
	/* Name of the user who created the repository. */
	Creator string
	/* Creation time of the repository, in milliseconds since the Unix
	epoch. */
	Created uint64
}

type LoreRepositoryDataEventDataFFI

type LoreRepositoryDataEventDataFFI struct {
	/* Remote URL of the repository. */
	RemoteUrl LoreString
	/* Repository identifier. */
	Id LoreRepositoryId
	/* Instance identifier. */
	InstanceId LoreInstanceId
	/* Repository name. */
	Name LoreString
	/* Repository description. */
	Description LoreString
	/* Identifier of the default branch. */
	DefaultBranch LoreBranchId
	/* Name of the default branch. */
	DefaultBranchName LoreString
	/* Name of the user who created the repository. */
	Creator LoreString
	/* Creation time of the repository, in milliseconds since the Unix
	epoch. */
	Created uint64
}

func (*LoreRepositoryDataEventDataFFI) Clone

type LoreRepositoryDeleteArgs added in v0.10.1

type LoreRepositoryDeleteArgs struct {
	/* URL of the remote repository to delete, or a name or ID resolved against the remote of
	the repository at `repository_path` */
	RepositoryUrl string
}

type LoreRepositoryDeleteArgsFFI added in v0.10.1

type LoreRepositoryDeleteArgsFFI struct {
	/* URL of the remote repository to delete, or a name or ID resolved against the remote of
	the repository at `repository_path` */
	RepositoryUrl LoreString
}

func NewLoreRepositoryDeleteArgs added in v0.10.1

func NewLoreRepositoryDeleteArgs(opts LoreRepositoryDeleteArgs) (LoreRepositoryDeleteArgsFFI, func())

type LoreRepositoryDumpArgs

type LoreRepositoryDumpArgs struct {
	/* Revision to dump; empty string uses the current revision */
	Revision string
	/* Repository-relative path to start dumping from; empty dumps the root */
	Path string
	/* Maximum tree traversal depth */
	MaxDepth uintptr
}

type LoreRepositoryDumpArgsFFI

type LoreRepositoryDumpArgsFFI struct {
	/* Revision to dump; empty string uses the current revision */
	Revision LoreString
	/* Repository-relative path to start dumping from; empty dumps the root */
	Path LoreString
	/* Maximum tree traversal depth */
	MaxDepth uintptr
}

func NewLoreRepositoryDumpArgs

func NewLoreRepositoryDumpArgs(opts LoreRepositoryDumpArgs) (LoreRepositoryDumpArgsFFI, func())

type LoreRepositoryDumpBeginEventData

type LoreRepositoryDumpBeginEventData struct {
	/* Repository identifier. */
	Repository LoreRepositoryId
	/* Revision being dumped. */
	Revision LoreHash
}

type LoreRepositoryDumpBeginEventDataFFI

type LoreRepositoryDumpBeginEventDataFFI struct {
	/* Repository identifier. */
	Repository LoreRepositoryId
	/* Revision being dumped. */
	Revision LoreHash
}

func (*LoreRepositoryDumpBeginEventDataFFI) Clone

type LoreRepositoryDumpEndEventData

type LoreRepositoryDumpEndEventData struct {
	/* Placeholder field. The event carries no data. */
	Unused uint32
}

type LoreRepositoryDumpEndEventDataFFI

type LoreRepositoryDumpEndEventDataFFI struct {
	/* Placeholder field. The event carries no data. */
	Unused uint32
}

func (*LoreRepositoryDumpEndEventDataFFI) Clone

type LoreRepositoryFlushArgs

type LoreRepositoryFlushArgs struct {
	Unused int
}

type LoreRepositoryFlushArgsFFI

type LoreRepositoryFlushArgsFFI struct {
	Unused int
}

func NewLoreRepositoryFlushArgs

func NewLoreRepositoryFlushArgs(opts LoreRepositoryFlushArgs) (LoreRepositoryFlushArgsFFI, func())

type LoreRepositoryGcArgs

type LoreRepositoryGcArgs struct {
	Unused int
}

type LoreRepositoryGcArgsFFI

type LoreRepositoryGcArgsFFI struct {
	Unused int
}

func NewLoreRepositoryGcArgs

func NewLoreRepositoryGcArgs(opts LoreRepositoryGcArgs) (LoreRepositoryGcArgsFFI, func())

type LoreRepositoryId

type LoreRepositoryId LorePartition

func (LoreRepositoryId) Clone

func (LoreRepositoryId) String

func (c LoreRepositoryId) String() string

String returns the context as a lowercase hexadecimal string Implements fmt.Stringer interface

type LoreRepositoryInfoArgs

type LoreRepositoryInfoArgs struct {
	/* URL of the remote repository to query */
	RepositoryUrl string
}

type LoreRepositoryInfoArgsFFI

type LoreRepositoryInfoArgsFFI struct {
	/* URL of the remote repository to query */
	RepositoryUrl LoreString
}

func NewLoreRepositoryInfoArgs

func NewLoreRepositoryInfoArgs(opts LoreRepositoryInfoArgs) (LoreRepositoryInfoArgsFFI, func())

type LoreRepositoryInstanceCloneArgs added in v0.14.0

type LoreRepositoryInstanceCloneArgs struct {
	/* Path the clone is created at, which must not exist; a relative path is resolved against
	`globals->working_directory`, or the process's working directory where that is empty */
	TargetPath string
	/* Nonzero to copy the instance's files where the clone cannot share their data blocks;
	zero refuses such a clone */
	AllowCopy bool
}

type LoreRepositoryInstanceCloneArgsFFI added in v0.14.0

type LoreRepositoryInstanceCloneArgsFFI struct {
	/* Path the clone is created at, which must not exist; a relative path is resolved against
	`globals->working_directory`, or the process's working directory where that is empty */
	TargetPath LoreString
	/* Nonzero to copy the instance's files where the clone cannot share their data blocks;
	zero refuses such a clone */
	AllowCopy uint8
}

func NewLoreRepositoryInstanceCloneArgs added in v0.14.0

func NewLoreRepositoryInstanceCloneArgs(opts LoreRepositoryInstanceCloneArgs) (LoreRepositoryInstanceCloneArgsFFI, func())

type LoreRepositoryInstanceCloneBeginEventData added in v0.14.0

type LoreRepositoryInstanceCloneBeginEventData struct {
	/* Identifier of the instance being cloned */
	InstanceId LoreInstanceId
	/* Filesystem path of the instance being cloned */
	SourcePath string
	/* Filesystem path the clone is created at */
	TargetPath string
	/* How the clone is made */
	Method LoreRepositoryInstanceCloneMethod
	/* Filesystem of the volume the clone is created on; empty for
	`LORE_REPOSITORY_INSTANCE_CLONE_METHOD_UNSUPPORTED` */
	Filesystem string
	/* Mount point of the volume the clone is created on; empty for
	`LORE_REPOSITORY_INSTANCE_CLONE_METHOD_UNSUPPORTED` */
	MountPoint string
	/* Bytes the copy takes on that volume, for `LORE_REPOSITORY_INSTANCE_CLONE_METHOD_COPIES_BYTES`;
	zero otherwise */
	Size uint64
	/* Number of files the copy writes, for `LORE_REPOSITORY_INSTANCE_CLONE_METHOD_COPIES_BYTES`;
	zero otherwise */
	FileCount uint64
	/* Bytes free on that volume, for `LORE_REPOSITORY_INSTANCE_CLONE_METHOD_COPIES_BYTES`; zero
	otherwise */
	AvailableSize uint64
	/* Why the clone copies or cannot be made; empty for
	`LORE_REPOSITORY_INSTANCE_CLONE_METHOD_SHARES_BLOCKS` */
	Reason string
}

type LoreRepositoryInstanceCloneBeginEventDataFFI added in v0.14.0

type LoreRepositoryInstanceCloneBeginEventDataFFI struct {
	/* Identifier of the instance being cloned */
	InstanceId LoreInstanceId
	/* Filesystem path of the instance being cloned */
	SourcePath LoreString
	/* Filesystem path the clone is created at */
	TargetPath LoreString
	/* How the clone is made */
	Method LoreRepositoryInstanceCloneMethod
	/* Filesystem of the volume the clone is created on; empty for
	`LORE_REPOSITORY_INSTANCE_CLONE_METHOD_UNSUPPORTED` */
	Filesystem LoreString
	/* Mount point of the volume the clone is created on; empty for
	`LORE_REPOSITORY_INSTANCE_CLONE_METHOD_UNSUPPORTED` */
	MountPoint LoreString
	/* Bytes the copy takes on that volume, for `LORE_REPOSITORY_INSTANCE_CLONE_METHOD_COPIES_BYTES`;
	zero otherwise */
	Size uint64
	/* Number of files the copy writes, for `LORE_REPOSITORY_INSTANCE_CLONE_METHOD_COPIES_BYTES`;
	zero otherwise */
	FileCount uint64
	/* Bytes free on that volume, for `LORE_REPOSITORY_INSTANCE_CLONE_METHOD_COPIES_BYTES`; zero
	otherwise */
	AvailableSize uint64
	/* Why the clone copies or cannot be made; empty for
	`LORE_REPOSITORY_INSTANCE_CLONE_METHOD_SHARES_BLOCKS` */
	Reason LoreString
}

func (*LoreRepositoryInstanceCloneBeginEventDataFFI) Clone added in v0.14.0

type LoreRepositoryInstanceCloneCompleteEventData added in v0.14.0

type LoreRepositoryInstanceCloneCompleteEventData struct {
	/* Identifier of the new instance, zero in a dry run */
	InstanceId LoreInstanceId
	/* Filesystem path of the new instance */
	TargetPath string
	/* Directories cloned as a whole, each with everything in it */
	ClonedDirectoryCount uint64
	/* Files and symbolic links cloned one by one */
	ClonedEntryCount uint64
	/* Files whose data was copied */
	CopiedFileCount uint64
}

type LoreRepositoryInstanceCloneCompleteEventDataFFI added in v0.14.0

type LoreRepositoryInstanceCloneCompleteEventDataFFI struct {
	/* Identifier of the new instance, zero in a dry run */
	InstanceId LoreInstanceId
	/* Filesystem path of the new instance */
	TargetPath LoreString
	/* Directories cloned as a whole, each with everything in it */
	ClonedDirectoryCount uint64
	/* Files and symbolic links cloned one by one */
	ClonedEntryCount uint64
	/* Files whose data was copied */
	CopiedFileCount uint64
}

func (*LoreRepositoryInstanceCloneCompleteEventDataFFI) Clone added in v0.14.0

type LoreRepositoryInstanceCloneMethod added in v0.14.0

type LoreRepositoryInstanceCloneMethod int32
const (
	LoreRepositoryInstanceCloneMethod_SHARES_BLOCKS LoreRepositoryInstanceCloneMethod = 0
	LoreRepositoryInstanceCloneMethod_COPIES_BYTES  LoreRepositoryInstanceCloneMethod = 1
	LoreRepositoryInstanceCloneMethod_UNSUPPORTED   LoreRepositoryInstanceCloneMethod = 2
)

type LoreRepositoryInstanceClonePhase added in v0.14.0

type LoreRepositoryInstanceClonePhase int32
const (
	LoreRepositoryInstanceClonePhase_REMOVING_LEFTOVER LoreRepositoryInstanceClonePhase = 0
	LoreRepositoryInstanceClonePhase_WRITING_RECORDS   LoreRepositoryInstanceClonePhase = 1
	LoreRepositoryInstanceClonePhase_COPYING           LoreRepositoryInstanceClonePhase = 2
	LoreRepositoryInstanceClonePhase_REGISTERING       LoreRepositoryInstanceClonePhase = 3
)

type LoreRepositoryInstanceCloneProgressEventData added in v0.14.0

type LoreRepositoryInstanceCloneProgressEventData struct {
	/* Current phase of the clone operation */
	Phase LoreRepositoryInstanceClonePhase
	/* The directory the phase removes, for `LORE_REPOSITORY_INSTANCE_CLONE_PHASE_REMOVING_LEFTOVER`;
	empty otherwise */
	Path string
	/* Directories cloned as a whole so far, each with everything in it */
	ClonedDirectoryCount uint64
	/* Files and symbolic links cloned one by one so far */
	ClonedEntryCount uint64
	/* Files copied so far */
	CopiedFileCount uint64
}

type LoreRepositoryInstanceCloneProgressEventDataFFI added in v0.14.0

type LoreRepositoryInstanceCloneProgressEventDataFFI struct {
	/* Current phase of the clone operation */
	Phase LoreRepositoryInstanceClonePhase
	/* The directory the phase removes, for `LORE_REPOSITORY_INSTANCE_CLONE_PHASE_REMOVING_LEFTOVER`;
	empty otherwise */
	Path LoreString
	/* Directories cloned as a whole so far, each with everything in it */
	ClonedDirectoryCount uint64
	/* Files and symbolic links cloned one by one so far */
	ClonedEntryCount uint64
	/* Files copied so far */
	CopiedFileCount uint64
}

func (*LoreRepositoryInstanceCloneProgressEventDataFFI) Clone added in v0.14.0

type LoreRepositoryInstanceDeleteArgs added in v0.13.0

type LoreRepositoryInstanceDeleteArgs struct {
	Unused int
}

type LoreRepositoryInstanceDeleteArgsFFI added in v0.13.0

type LoreRepositoryInstanceDeleteArgsFFI struct {
	Unused int
}

func NewLoreRepositoryInstanceDeleteArgs added in v0.13.0

func NewLoreRepositoryInstanceDeleteArgs(opts LoreRepositoryInstanceDeleteArgs) (LoreRepositoryInstanceDeleteArgsFFI, func())

type LoreRepositoryInstanceDeleteBeginEventData added in v0.13.0

type LoreRepositoryInstanceDeleteBeginEventData struct {
	/* Identifier of the instance being deleted */
	InstanceId LoreInstanceId
	/* Filesystem path of the instance */
	Path string
	/* Whether this is a SWFS-backed instance */
	IsSwfs bool
}

type LoreRepositoryInstanceDeleteBeginEventDataFFI added in v0.13.0

type LoreRepositoryInstanceDeleteBeginEventDataFFI struct {
	/* Identifier of the instance being deleted */
	InstanceId LoreInstanceId
	/* Filesystem path of the instance */
	Path LoreString
	/* Whether this is a SWFS-backed instance */
	IsSwfs uint8
}

func (*LoreRepositoryInstanceDeleteBeginEventDataFFI) Clone added in v0.13.0

type LoreRepositoryInstanceDeleteCompleteEventData added in v0.13.0

type LoreRepositoryInstanceDeleteCompleteEventData struct {
	/* Identifier of the deleted instance */
	InstanceId LoreInstanceId
}

type LoreRepositoryInstanceDeleteCompleteEventDataFFI added in v0.13.0

type LoreRepositoryInstanceDeleteCompleteEventDataFFI struct {
	/* Identifier of the deleted instance */
	InstanceId LoreInstanceId
}

func (*LoreRepositoryInstanceDeleteCompleteEventDataFFI) Clone added in v0.13.0

type LoreRepositoryInstanceDeletePhase added in v0.13.0

type LoreRepositoryInstanceDeletePhase int32
const (
	LoreRepositoryInstanceDeletePhase_UNMOUNTING     LoreRepositoryInstanceDeletePhase = 0
	LoreRepositoryInstanceDeletePhase_DEREGISTERING  LoreRepositoryInstanceDeletePhase = 1
	LoreRepositoryInstanceDeletePhase_DELETING_FILES LoreRepositoryInstanceDeletePhase = 2
)

type LoreRepositoryInstanceDeleteProgressEventData added in v0.13.0

type LoreRepositoryInstanceDeleteProgressEventData struct {
	/* Current phase of the delete operation */
	Phase LoreRepositoryInstanceDeletePhase
}

type LoreRepositoryInstanceDeleteProgressEventDataFFI added in v0.13.0

type LoreRepositoryInstanceDeleteProgressEventDataFFI struct {
	/* Current phase of the delete operation */
	Phase LoreRepositoryInstanceDeletePhase
}

func (*LoreRepositoryInstanceDeleteProgressEventDataFFI) Clone added in v0.13.0

type LoreRepositoryInstanceEventData

type LoreRepositoryInstanceEventData struct {
	/* Identifier of the instance */
	InstanceId LoreInstanceId
	/* Filesystem path of the instance */
	Path string
	/* Name of the branch the instance has checked out */
	BranchName string
	/* Identifier of the branch the instance has checked out */
	Branch LoreBranchId
	/* Current revision hash for the instance */
	Revision LoreHash
	/* Non-zero if the registration no longer describes a live checkout: 1 when
	the path no longer exists on disk, 2 when the path holds a repository
	whose `.lore/instance` names a different instance (superseded by a
	re-create or re-clone), 3 when the path holds no readable
	`.lore/instance` at all, 4 when the registration's data is missing from
	the local store or malformed, which leaves every other field zero or empty */
	Stale bool
}

type LoreRepositoryInstanceEventDataFFI

type LoreRepositoryInstanceEventDataFFI struct {
	/* Identifier of the instance */
	InstanceId LoreInstanceId
	/* Filesystem path of the instance */
	Path LoreString
	/* Name of the branch the instance has checked out */
	BranchName LoreString
	/* Identifier of the branch the instance has checked out */
	Branch LoreBranchId
	/* Current revision hash for the instance */
	Revision LoreHash
	/* Non-zero if the registration no longer describes a live checkout: 1 when
	the path no longer exists on disk, 2 when the path holds a repository
	whose `.lore/instance` names a different instance (superseded by a
	re-create or re-clone), 3 when the path holds no readable
	`.lore/instance` at all, 4 when the registration's data is missing from
	the local store or malformed, which leaves every other field zero or empty */
	Stale uint8
}

func (*LoreRepositoryInstanceEventDataFFI) Clone

type LoreRepositoryInstanceListArgs

type LoreRepositoryInstanceListArgs struct {
	Unused int
}

type LoreRepositoryInstanceListArgsFFI

type LoreRepositoryInstanceListArgsFFI struct {
	Unused int
}

type LoreRepositoryInstanceMoveArgs added in v0.13.0

type LoreRepositoryInstanceMoveArgs struct {
	/* Target path for the instance. */
	TargetPath string
}

type LoreRepositoryInstanceMoveArgsFFI added in v0.13.0

type LoreRepositoryInstanceMoveArgsFFI struct {
	/* Target path for the instance. */
	TargetPath LoreString
}

func NewLoreRepositoryInstanceMoveArgs added in v0.13.0

func NewLoreRepositoryInstanceMoveArgs(opts LoreRepositoryInstanceMoveArgs) (LoreRepositoryInstanceMoveArgsFFI, func())

type LoreRepositoryInstanceMoveBeginEventData added in v0.13.0

type LoreRepositoryInstanceMoveBeginEventData struct {
	/* Identifier of the instance being moved */
	InstanceId LoreInstanceId
	/* Original filesystem path of the instance */
	SourcePath string
	/* New filesystem path for the instance */
	TargetPath string
}

type LoreRepositoryInstanceMoveBeginEventDataFFI added in v0.13.0

type LoreRepositoryInstanceMoveBeginEventDataFFI struct {
	/* Identifier of the instance being moved */
	InstanceId LoreInstanceId
	/* Original filesystem path of the instance */
	SourcePath LoreString
	/* New filesystem path for the instance */
	TargetPath LoreString
}

func (*LoreRepositoryInstanceMoveBeginEventDataFFI) Clone added in v0.13.0

type LoreRepositoryInstanceMoveCompleteEventData added in v0.13.0

type LoreRepositoryInstanceMoveCompleteEventData struct {
	/* Identifier of the moved instance */
	InstanceId LoreInstanceId
	/* New filesystem path of the instance */
	TargetPath string
}

type LoreRepositoryInstanceMoveCompleteEventDataFFI added in v0.13.0

type LoreRepositoryInstanceMoveCompleteEventDataFFI struct {
	/* Identifier of the moved instance */
	InstanceId LoreInstanceId
	/* New filesystem path of the instance */
	TargetPath LoreString
}

func (*LoreRepositoryInstanceMoveCompleteEventDataFFI) Clone added in v0.13.0

type LoreRepositoryInstancePruneArgs

type LoreRepositoryInstancePruneArgs struct {
	Unused int
}

type LoreRepositoryInstancePruneArgsFFI

type LoreRepositoryInstancePruneArgsFFI struct {
	Unused int
}

type LoreRepositoryListArgs

type LoreRepositoryListArgs struct {
	/* Remote URL to list repositories from */
	Url string
}

type LoreRepositoryListArgsFFI

type LoreRepositoryListArgsFFI struct {
	/* Remote URL to list repositories from */
	Url LoreString
}

func NewLoreRepositoryListArgs

func NewLoreRepositoryListArgs(opts LoreRepositoryListArgs) (LoreRepositoryListArgsFFI, func())

type LoreRepositoryListEntryEventData

type LoreRepositoryListEntryEventData struct {
	/* Repository identifier. */
	Id LoreRepositoryId
	/* Repository name. */
	Name string
}

type LoreRepositoryListEntryEventDataFFI

type LoreRepositoryListEntryEventDataFFI struct {
	/* Repository identifier. */
	Id LoreRepositoryId
	/* Repository name. */
	Name LoreString
}

func (*LoreRepositoryListEntryEventDataFFI) Clone

type LoreRepositoryMetadataClearArgs

type LoreRepositoryMetadataClearArgs struct {
	/* Keys to clear; empty array clears all user-defined keys */
	Keys []string
}

type LoreRepositoryMetadataClearArgsFFI

type LoreRepositoryMetadataClearArgsFFI struct {
	/* Keys to clear; empty array clears all user-defined keys */
	Keys LoreStringArrayFFI
}

type LoreRepositoryMetadataGetArgs

type LoreRepositoryMetadataGetArgs struct {
	/* Metadata key to fetch; empty string lists all entries */
	Key string
}

type LoreRepositoryMetadataGetArgsFFI

type LoreRepositoryMetadataGetArgsFFI struct {
	/* Metadata key to fetch; empty string lists all entries */
	Key LoreString
}

func NewLoreRepositoryMetadataGetArgs

func NewLoreRepositoryMetadataGetArgs(opts LoreRepositoryMetadataGetArgs) (LoreRepositoryMetadataGetArgsFFI, func())

type LoreRepositoryMetadataSetArgs

type LoreRepositoryMetadataSetArgs struct {
	/* Metadata keys to set, positionally aligned with `values` and `formats` */
	Keys []string
	/* Values to set, one per key, encoded per the matching `formats` entry */
	Values []string
	/* Value format/type for each key-value pair */
	Formats LoreMetadataTypeArray
}

type LoreRepositoryMetadataSetArgsFFI

type LoreRepositoryMetadataSetArgsFFI struct {
	/* Metadata keys to set, positionally aligned with `values` and `formats` */
	Keys LoreStringArrayFFI
	/* Values to set, one per key, encoded per the matching `formats` entry */
	Values LoreStringArrayFFI
	/* Value format/type for each key-value pair */
	Formats LoreMetadataTypeArrayFFI
}

func NewLoreRepositoryMetadataSetArgs

func NewLoreRepositoryMetadataSetArgs(opts LoreRepositoryMetadataSetArgs) (LoreRepositoryMetadataSetArgsFFI, func())

type LoreRepositoryReleaseArgs

type LoreRepositoryReleaseArgs struct {
	Unused int
}

type LoreRepositoryReleaseArgsFFI

type LoreRepositoryReleaseArgsFFI struct {
	Unused int
}

func NewLoreRepositoryReleaseArgs

func NewLoreRepositoryReleaseArgs(opts LoreRepositoryReleaseArgs) (LoreRepositoryReleaseArgsFFI, func())

type LoreRepositoryRenameArgs added in v0.15.0

type LoreRepositoryRenameArgs struct {
	/* URL of the remote repository to rename, or a name or ID resolved against the remote of
	the repository at `repository_path`. Empty renames the repository of the instance at
	`repository_path`. */
	RepositoryUrl string
	/* The new name of the repository. */
	Name string
}

type LoreRepositoryRenameArgsFFI added in v0.15.0

type LoreRepositoryRenameArgsFFI struct {
	/* URL of the remote repository to rename, or a name or ID resolved against the remote of
	the repository at `repository_path`. Empty renames the repository of the instance at
	`repository_path`. */
	RepositoryUrl LoreString
	/* The new name of the repository. */
	Name LoreString
}

func NewLoreRepositoryRenameArgs added in v0.15.0

func NewLoreRepositoryRenameArgs(opts LoreRepositoryRenameArgs) (LoreRepositoryRenameArgsFFI, func())

type LoreRepositoryStateDumpEventData

type LoreRepositoryStateDumpEventData struct {
	/* Sequence number of the revision. */
	RevisionNumber uint64
	/* Hash of the revision. */
	Revision LoreHash
	/* Hash of the state's node tree. */
	TreeHash LoreHash
	/* Size of the node tree in bytes. */
	TreeSize uint64
}

type LoreRepositoryStateDumpEventDataFFI

type LoreRepositoryStateDumpEventDataFFI struct {
	/* Sequence number of the revision. */
	RevisionNumber uint64
	/* Hash of the revision. */
	Revision LoreHash
	/* Hash of the state's node tree. */
	TreeHash LoreHash
	/* Size of the node tree in bytes. */
	TreeSize uint64
}

func (*LoreRepositoryStateDumpEventDataFFI) Clone

type LoreRepositoryStateDumpNodeEventData

type LoreRepositoryStateDumpNodeEventData struct {
	/* Name of the node. */
	Name string
	/* Identifier of the node. */
	Id uint32
	/* Identifier of the parent node. */
	Parent uint32
	/* Identifier of the next sibling node. */
	Sibling uint32
	/* File mode of the node, bits 0 to 12, the caller's. Bits 13 to 15, which Lore reserves,
	read as zero. */
	Mode uint16
	/* Size of the node's content in bytes. */
	Size uint64
	/* Node flags. */
	Flags uint16
	/* Type-specific detail for the node. */
	TypeData string
}

type LoreRepositoryStateDumpNodeEventDataFFI

type LoreRepositoryStateDumpNodeEventDataFFI struct {
	/* Name of the node. */
	Name LoreString
	/* Identifier of the node. */
	Id uint32
	/* Identifier of the parent node. */
	Parent uint32
	/* Identifier of the next sibling node. */
	Sibling uint32
	/* File mode of the node, bits 0 to 12, the caller's. Bits 13 to 15, which Lore reserves,
	read as zero. */
	Mode uint16
	/* Size of the node's content in bytes. */
	Size uint64
	/* Node flags. */
	Flags uint16
	/* Type-specific detail for the node. */
	TypeData LoreString
}

func (*LoreRepositoryStateDumpNodeEventDataFFI) Clone

type LoreRepositoryStatusArgs

type LoreRepositoryStatusArgs struct {
	/* Include staged state in the report */
	Staged bool
	/* Reconcile against the filesystem and refresh dirty tracking.

	By default, status reports the currently tracked state: the
	staged revision (if any) plus any files and directories already
	marked dirty. No filesystem reads are performed beyond the existing
	dirty flags — clean or unmarked files on disk are not inspected even
	if they differ from the current revision.

	When enabled, the filesystem is walked under each requested path, every
	file is reconciled against the current revision, and dirty flags are
	set or cleared accordingly. The refreshed flags are persisted in the
	staged state so subsequent operations (commit, stage, status) see an
	accurate picture without rescanning. */
	Scan bool
	/* Verify dirty flags against the filesystem without a full scan.

	When enabled, files already marked dirty are re-examined individually: a
	dirty file whose on-disk content matches its tracked node (same size,
	and same content when the modification time differs) has its dirty flag
	cleared and is omitted from the report, unless it is also staged.
	Structural dirty actions (add/move/copy/delete) are always reported.
	The refreshed flags are persisted in the staged state. */
	CheckDirty bool
	/* Reset the tracked state before computing status */
	Reset bool
	/* Include the sync point in the report */
	SyncPoint bool
	/* Only emit revision info, skipping all diffs */
	RevisionOnly bool
	/* Count directories and files (view-filtered) in the staged state if
	present, otherwise the current revision */
	Count bool
	/* Repository-relative paths to limit the status check to; empty checks all */
	Paths []string
}

type LoreRepositoryStatusArgsFFI

type LoreRepositoryStatusArgsFFI struct {
	/* Include staged state in the report */
	Staged uint8
	/* Reconcile against the filesystem and refresh dirty tracking.

	By default, status reports the currently tracked state: the
	staged revision (if any) plus any files and directories already
	marked dirty. No filesystem reads are performed beyond the existing
	dirty flags — clean or unmarked files on disk are not inspected even
	if they differ from the current revision.

	When enabled, the filesystem is walked under each requested path, every
	file is reconciled against the current revision, and dirty flags are
	set or cleared accordingly. The refreshed flags are persisted in the
	staged state so subsequent operations (commit, stage, status) see an
	accurate picture without rescanning. */
	Scan uint8
	/* Verify dirty flags against the filesystem without a full scan.

	When enabled, files already marked dirty are re-examined individually: a
	dirty file whose on-disk content matches its tracked node (same size,
	and same content when the modification time differs) has its dirty flag
	cleared and is omitted from the report, unless it is also staged.
	Structural dirty actions (add/move/copy/delete) are always reported.
	The refreshed flags are persisted in the staged state. */
	CheckDirty uint8
	/* Reset the tracked state before computing status */
	Reset uint8
	/* Include the sync point in the report */
	SyncPoint uint8
	/* Only emit revision info, skipping all diffs */
	RevisionOnly uint8
	/* Count directories and files (view-filtered) in the staged state if
	present, otherwise the current revision */
	Count uint8
	/* Repository-relative paths to limit the status check to; empty checks all */
	Paths LoreStringArrayFFI
}

func NewLoreRepositoryStatusArgs

func NewLoreRepositoryStatusArgs(opts LoreRepositoryStatusArgs) (LoreRepositoryStatusArgsFFI, func())

type LoreRepositoryStatusCountEventData

type LoreRepositoryStatusCountEventData struct {
	/* Number of directories in the tree, view-filtered (staged state if
	present, otherwise the current revision) */
	Directories uint64
	/* Number of files in the tree, view-filtered (staged state if present,
	otherwise the current revision) */
	Files uint64
}

type LoreRepositoryStatusCountEventDataFFI

type LoreRepositoryStatusCountEventDataFFI struct {
	/* Number of directories in the tree, view-filtered (staged state if
	present, otherwise the current revision) */
	Directories uint64
	/* Number of files in the tree, view-filtered (staged state if present,
	otherwise the current revision) */
	Files uint64
}

func (*LoreRepositoryStatusCountEventDataFFI) Clone

type LoreRepositoryStatusFileEventData

type LoreRepositoryStatusFileEventData struct {
	/* Path of the file, relative to the root of the working tree. */
	Path string
	/* Size of the file in bytes. */
	Size uint64
	/* Change applied to the file, such as add, modify, delete, or move. */
	Action LoreFileAction
	/* Kind of node: file, directory, or link. */
	Type LoreNodeType
	/* Non-zero when the change is staged. */
	FlagStaged bool
	/* Non-zero when the change comes from a merge. */
	FlagMerged bool
	/* Non-zero when the file is in conflict. */
	FlagConflict bool
	/* Non-zero when the conflict is not yet resolved. */
	FlagConflictUnresolved bool
	/* Non-zero when the conflict was resolved automatically. */
	FlagConflictAutomerged bool
	/* Non-zero when the local side was chosen to resolve the conflict. */
	FlagConflictMine bool
	/* Non-zero when the incoming side was chosen to resolve the conflict. */
	FlagConflictTheirs bool
	/* Non-zero when the file differs from the recorded state. */
	FlagDirty bool
	/* Previous path of the file when it was moved or copied. Empty otherwise. */
	FromPath string
}

type LoreRepositoryStatusFileEventDataFFI

type LoreRepositoryStatusFileEventDataFFI struct {
	/* Path of the file, relative to the root of the working tree. */
	Path LoreString
	/* Size of the file in bytes. */
	Size uint64
	/* Change applied to the file, such as add, modify, delete, or move. */
	Action LoreFileAction
	/* Kind of node: file, directory, or link. */
	Type LoreNodeType
	/* Non-zero when the change is staged. */
	FlagStaged uint8
	/* Non-zero when the change comes from a merge. */
	FlagMerged uint8
	/* Non-zero when the file is in conflict. */
	FlagConflict uint8
	/* Non-zero when the conflict is not yet resolved. */
	FlagConflictUnresolved uint8
	/* Non-zero when the conflict was resolved automatically. */
	FlagConflictAutomerged uint8
	/* Non-zero when the local side was chosen to resolve the conflict. */
	FlagConflictMine uint8
	/* Non-zero when the incoming side was chosen to resolve the conflict. */
	FlagConflictTheirs uint8
	/* Non-zero when the file differs from the recorded state. */
	FlagDirty uint8
	/* Previous path of the file when it was moved or copied. Empty otherwise. */
	FromPath LoreString
}

func (*LoreRepositoryStatusFileEventDataFFI) Clone

type LoreRepositoryStatusRevisionEventData

type LoreRepositoryStatusRevisionEventData struct {
	/* Repository identifier */
	Repository LoreRepositoryId
	/* Current branch identifier */
	Branch LoreBranchId
	/* Current branch name */
	BranchName string
	/* Current revision identifier */
	Revision LoreHash
	/* Current revision number */
	RevisionNumber uint64
	/* Staged revision identifier (zero when nothing is staged) */
	RevisionStaged LoreHash
	/* Incoming revision identifier of a pending merge (zero when none) */
	RevisionMerged LoreHash
	/* Last revision merged in from the parent branch (calculated and reported if sync point option is set). */
	RevisionMergedParentBranch LoreHash
	/* Local branch latest revision identifier */
	RevisionLocal LoreHash
	/* Local branch latest revision number */
	RevisionLocalNumber uint64
	/* Remote branch latest revision identifier (zero if unknown, branch not existing on remote or remote not available) */
	RevisionRemote LoreHash
	/* Remote branch latest revision number (zero if corresponding identifier is zero) */
	RevisionRemoteNumber uint64
	/* Local holds revisions not on the remote history line */
	IsLocalAhead bool
	/* Remote holds revisions not present locally */
	IsRemoteAhead bool
	/* Remote configured and reachable with a local identity; connectivity only, not authorization */
	RemoteAvailable bool
	/* Remote revision query returned an authoritative answer, identity is authorized to access the repository */
	RemoteAuthorized bool
	/* Branch exists on the remote and the query returned a latest revisoin (possibly zero if branch does not exist on remote) */
	RemoteBranchExist bool
	/* No valid login reached the remote: none is stored for its server, it expired and could not
	be refreshed, or the remote rejected the token presented. Set where `remote_available` is
	zero too, since a login refused at the connect leaves the remote unreachable. */
	RemoteUnauthenticated bool
}

type LoreRepositoryStatusRevisionEventDataFFI

type LoreRepositoryStatusRevisionEventDataFFI struct {
	/* Repository identifier */
	Repository LoreRepositoryId
	/* Current branch identifier */
	Branch LoreBranchId
	/* Current branch name */
	BranchName LoreString
	/* Current revision identifier */
	Revision LoreHash
	/* Current revision number */
	RevisionNumber uint64
	/* Staged revision identifier (zero when nothing is staged) */
	RevisionStaged LoreHash
	/* Incoming revision identifier of a pending merge (zero when none) */
	RevisionMerged LoreHash
	/* Last revision merged in from the parent branch (calculated and reported if sync point option is set). */
	RevisionMergedParentBranch LoreHash
	/* Local branch latest revision identifier */
	RevisionLocal LoreHash
	/* Local branch latest revision number */
	RevisionLocalNumber uint64
	/* Remote branch latest revision identifier (zero if unknown, branch not existing on remote or remote not available) */
	RevisionRemote LoreHash
	/* Remote branch latest revision number (zero if corresponding identifier is zero) */
	RevisionRemoteNumber uint64
	/* Local holds revisions not on the remote history line */
	IsLocalAhead uint8
	/* Remote holds revisions not present locally */
	IsRemoteAhead uint8
	/* Remote configured and reachable with a local identity; connectivity only, not authorization */
	RemoteAvailable uint8
	/* Remote revision query returned an authoritative answer, identity is authorized to access the repository */
	RemoteAuthorized uint8
	/* Branch exists on the remote and the query returned a latest revisoin (possibly zero if branch does not exist on remote) */
	RemoteBranchExist uint8
	/* No valid login reached the remote: none is stored for its server, it expired and could not
	be refreshed, or the remote rejected the token presented. Set where `remote_available` is
	zero too, since a login refused at the connect leaves the remote unreachable. */
	RemoteUnauthenticated uint8
}

func (*LoreRepositoryStatusRevisionEventDataFFI) Clone

type LoreRepositoryStatusSummaryEventData

type LoreRepositoryStatusSummaryEventData struct {
	/* Number of files added. */
	Adds uint64
	/* Number of files deleted. */
	Deletes uint64
	/* Number of files modified. */
	Modifies uint64
	/* Number of files moved. */
	Moves uint64
	/* Number of files copied. */
	Copies uint64
	/* Number of files the answer required reading, including any that could not be read. */
	HashChecks uint64
	/* Number of files a recorded modified time answered for, sparing them a hash check. */
	MtimeMatches uint64
}

type LoreRepositoryStatusSummaryEventDataFFI

type LoreRepositoryStatusSummaryEventDataFFI struct {
	/* Number of files added. */
	Adds uint64
	/* Number of files deleted. */
	Deletes uint64
	/* Number of files modified. */
	Modifies uint64
	/* Number of files moved. */
	Moves uint64
	/* Number of files copied. */
	Copies uint64
	/* Number of files the answer required reading, including any that could not be read. */
	HashChecks uint64
	/* Number of files a recorded modified time answered for, sparing them a hash check. */
	MtimeMatches uint64
}

func (*LoreRepositoryStatusSummaryEventDataFFI) Clone

type LoreRepositoryStoreImmutableQueryArgs

type LoreRepositoryStoreImmutableQueryArgs struct {
	/* Fragment address to query */
	Address string
	/* Recurse into and query subfragments */
	Recurse bool
}

type LoreRepositoryStoreImmutableQueryArgsFFI

type LoreRepositoryStoreImmutableQueryArgsFFI struct {
	/* Fragment address to query */
	Address LoreString
	/* Recurse into and query subfragments */
	Recurse uint8
}

type LoreRepositoryStoreImmutableQueryEventData

type LoreRepositoryStoreImmutableQueryEventData struct {
	/* Address of fragment */
	Address LoreAddress
	/* Remote flag, true if results are from remote store, false if local store */
	Remote bool
	/* Status, where
	0 = exact address exist
	1 = hash exist in repository
	2 = hash exist in other repository
	3 = hash does not exist */
	Status uint32
	/* Payload flag, true if payload data is present in the store, false if not */
	Payload bool
	/* Subfragment flag, true if this fragment was a subfragment of the original query, false if not */
	Subfragment bool
	/* Internal flags */
	Flags uint32
	/* Payload size */
	PayloadSize uint32
	/* Content size */
	ContentSize uint64
}

type LoreRepositoryStoreImmutableQueryEventDataFFI

type LoreRepositoryStoreImmutableQueryEventDataFFI struct {
	/* Address of fragment */
	Address LoreAddress
	/* Remote flag, true if results are from remote store, false if local store */
	Remote uint8
	/* Status, where
	0 = exact address exist
	1 = hash exist in repository
	2 = hash exist in other repository
	3 = hash does not exist */
	Status uint32
	/* Payload flag, true if payload data is present in the store, false if not */
	Payload uint8
	/* Subfragment flag, true if this fragment was a subfragment of the original query, false if not */
	Subfragment uint8
	/* Internal flags */
	Flags uint32
	/* Payload size */
	PayloadSize uint32
	/* Content size */
	ContentSize uint64
}

func (*LoreRepositoryStoreImmutableQueryEventDataFFI) Clone

type LoreRepositoryUpdatePathArgs

type LoreRepositoryUpdatePathArgs struct {
	Unused int
}

type LoreRepositoryUpdatePathArgsFFI

type LoreRepositoryUpdatePathArgsFFI struct {
	Unused int
}

func NewLoreRepositoryUpdatePathArgs

func NewLoreRepositoryUpdatePathArgs(opts LoreRepositoryUpdatePathArgs) (LoreRepositoryUpdatePathArgsFFI, func())

type LoreRepositoryVerifyFragmentEventData

type LoreRepositoryVerifyFragmentEventData struct {
	/* Hash of the fragment that was verified. */
	Hash LoreHash
	/* Index of the group the fragment belongs to. */
	GroupIndex uint32
	/* Index of the bucket the fragment belongs to. */
	BucketIndex uint32
	/* Path of the index file examined for the fragment. */
	IndexPath string
	/* Number of entries in the index. */
	EntryCount uint32
	/* Number of entries in the pack file. */
	PackfileEntryCount uint32
	/* Number of stored copies found for the fragment. */
	MatchCount uint32
	/* The stored copies found for the fragment. */
	Matches LoreRepositoryVerifyFragmentMatchEventDataArray
	/* Error message produced during verification. Empty on success. */
	Error string
}

type LoreRepositoryVerifyFragmentEventDataFFI

type LoreRepositoryVerifyFragmentEventDataFFI struct {
	/* Hash of the fragment that was verified. */
	Hash LoreHash
	/* Index of the group the fragment belongs to. */
	GroupIndex uint32
	/* Index of the bucket the fragment belongs to. */
	BucketIndex uint32
	/* Path of the index file examined for the fragment. */
	IndexPath LoreString
	/* Number of entries in the index. */
	EntryCount uint32
	/* Number of entries in the pack file. */
	PackfileEntryCount uint32
	/* Number of stored copies found for the fragment. */
	MatchCount uint32
	/* The stored copies found for the fragment. */
	Matches LoreRepositoryVerifyFragmentMatchEventDataArrayFFI
	/* Error message produced during verification. Empty on success. */
	Error LoreString
}

func (*LoreRepositoryVerifyFragmentEventDataFFI) Clone

type LoreRepositoryVerifyFragmentMatchEventData

type LoreRepositoryVerifyFragmentMatchEventData struct {
	/* Slot the match was found in. */
	Slot uint32
	/* Index of the match within the slot. */
	Index uint32
	/* Identifier of the repository the match belongs to. */
	Repository LoreRepositoryId
	/* Hash part of the fragment address. */
	AddressHash LoreHash
	/* Context part of the fragment address. */
	AddressContext LoreContext
	/* Storage flags recorded for the fragment. */
	Flags uint32
	/* Stored size of the fragment payload in bytes. */
	SizePayload uint32
	/* Size of the fragment content in bytes. */
	SizeContent uint64
	/* Offset of the fragment within its pack file. */
	PackOffset uint32
	/* Index of the pack file holding the fragment. */
	PackFile uint32
	/* Time the fragment was last accessed, in seconds since the Unix epoch. */
	LastAccess uint64
}

type LoreRepositoryVerifyFragmentMatchEventDataArray

type LoreRepositoryVerifyFragmentMatchEventDataArray = []LoreRepositoryVerifyFragmentMatchEventData

type LoreRepositoryVerifyFragmentMatchEventDataArrayFFI

type LoreRepositoryVerifyFragmentMatchEventDataArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func (LoreRepositoryVerifyFragmentMatchEventDataArrayFFI) Clone

func (LoreRepositoryVerifyFragmentMatchEventDataArrayFFI) Get

func (LoreRepositoryVerifyFragmentMatchEventDataArrayFFI) Len

type LoreRepositoryVerifyFragmentMatchEventDataFFI

type LoreRepositoryVerifyFragmentMatchEventDataFFI struct {
	/* Slot the match was found in. */
	Slot uint32
	/* Index of the match within the slot. */
	Index uint32
	/* Identifier of the repository the match belongs to. */
	Repository LoreRepositoryId
	/* Hash part of the fragment address. */
	AddressHash LoreHash
	/* Context part of the fragment address. */
	AddressContext LoreContext
	/* Storage flags recorded for the fragment. */
	Flags uint32
	/* Stored size of the fragment payload in bytes. */
	SizePayload uint32
	/* Size of the fragment content in bytes. */
	SizeContent uint64
	/* Offset of the fragment within its pack file. */
	PackOffset uint32
	/* Index of the pack file holding the fragment. */
	PackFile uint32
	/* Time the fragment was last accessed, in seconds since the Unix epoch. */
	LastAccess uint64
}

func (*LoreRepositoryVerifyFragmentMatchEventDataFFI) Clone

type LoreRepositoryVerifyFragmentRemoteEventData

type LoreRepositoryVerifyFragmentRemoteEventData struct {
	/* Hash part of the fragment address. */
	AddressHash LoreHash
	/* Context part of the fragment address. */
	AddressContext LoreContext
	/* Non-zero when the fragment was found to be corrupted. */
	Corrupted bool
	/* Non-zero when the fragment was healed. */
	Healed bool
	/* Error message produced during verification. Empty on success. */
	Error string
}

type LoreRepositoryVerifyFragmentRemoteEventDataFFI

type LoreRepositoryVerifyFragmentRemoteEventDataFFI struct {
	/* Hash part of the fragment address. */
	AddressHash LoreHash
	/* Context part of the fragment address. */
	AddressContext LoreContext
	/* Non-zero when the fragment was found to be corrupted. */
	Corrupted uint8
	/* Non-zero when the fragment was healed. */
	Healed uint8
	/* Error message produced during verification. Empty on success. */
	Error LoreString
}

func (*LoreRepositoryVerifyFragmentRemoteEventDataFFI) Clone

type LoreRepositoryVerifyStateArgs

type LoreRepositoryVerifyStateArgs struct {
	/* Repository-relative path to verify; empty verifies the whole repository */
	Path string
	/* Heal detected inconsistencies */
	Heal bool
}

type LoreRepositoryVerifyStateArgsFFI

type LoreRepositoryVerifyStateArgsFFI struct {
	/* Repository-relative path to verify; empty verifies the whole repository */
	Path LoreString
	/* Heal detected inconsistencies */
	Heal uint8
}

func NewLoreRepositoryVerifyStateArgs

func NewLoreRepositoryVerifyStateArgs(opts LoreRepositoryVerifyStateArgs) (LoreRepositoryVerifyStateArgsFFI, func())

type LoreRepositoryVerifyStateBeginEventData

type LoreRepositoryVerifyStateBeginEventData struct {
	/* Placeholder field. The event carries no data. */
	Unused uint32
}

type LoreRepositoryVerifyStateBeginEventDataFFI

type LoreRepositoryVerifyStateBeginEventDataFFI struct {
	/* Placeholder field. The event carries no data. */
	Unused uint32
}

func (*LoreRepositoryVerifyStateBeginEventDataFFI) Clone

type LoreRepositoryVerifyStateEndEventData

type LoreRepositoryVerifyStateEndEventData struct {
	/* Identifier of the staged state after healing. Zero when nothing was healed. */
	HealedStagedState LoreHash
}

type LoreRepositoryVerifyStateEndEventDataFFI

type LoreRepositoryVerifyStateEndEventDataFFI struct {
	/* Identifier of the staged state after healing. Zero when nothing was healed. */
	HealedStagedState LoreHash
}

func (*LoreRepositoryVerifyStateEndEventDataFFI) Clone

type LoreRevertAbortBeginEventData

type LoreRevertAbortBeginEventData struct {
	/* Identifier of the staged revision being discarded. */
	StateStagedRevision LoreHash
	/* Identifier of the current revision being restored. */
	StateCurrentRevision LoreHash
}

type LoreRevertAbortBeginEventDataFFI

type LoreRevertAbortBeginEventDataFFI struct {
	/* Identifier of the staged revision being discarded. */
	StateStagedRevision LoreHash
	/* Identifier of the current revision being restored. */
	StateCurrentRevision LoreHash
}

func (*LoreRevertAbortBeginEventDataFFI) Clone

type LoreRevertAbortEndEventData

type LoreRevertAbortEndEventData struct {
	/* Unused placeholder field. */
	Unused uint32
}

type LoreRevertAbortEndEventDataFFI

type LoreRevertAbortEndEventDataFFI struct {
	/* Unused placeholder field. */
	Unused uint32
}

func (*LoreRevertAbortEndEventDataFFI) Clone

type LoreRevertConflictFileEventData

type LoreRevertConflictFileEventData struct {
	/* Path of the file. */
	Path string
}

type LoreRevertConflictFileEventDataFFI

type LoreRevertConflictFileEventDataFFI struct {
	/* Path of the file. */
	Path LoreString
}

func (*LoreRevertConflictFileEventDataFFI) Clone

type LoreRevertResolveFileEventData

type LoreRevertResolveFileEventData struct {
	/* Path of the file. */
	Path string
}

type LoreRevertResolveFileEventDataFFI

type LoreRevertResolveFileEventDataFFI struct {
	/* Path of the file. */
	Path LoreString
}

func (*LoreRevertResolveFileEventDataFFI) Clone

type LoreRevertResolveRevisionEventData

type LoreRevertResolveRevisionEventData struct {
	/* Repository identifier. */
	Repository LoreRepositoryId
	/* Identifier of the revision. */
	Revision LoreHash
}

type LoreRevertResolveRevisionEventDataFFI

type LoreRevertResolveRevisionEventDataFFI struct {
	/* Repository identifier. */
	Repository LoreRepositoryId
	/* Identifier of the revision. */
	Revision LoreHash
}

func (*LoreRevertResolveRevisionEventDataFFI) Clone

type LoreRevertStartBeginEventData

type LoreRevertStartBeginEventData struct {
	/* Branch identifier. */
	Branch LoreBranchId
	/* Identifier of the revision being reverted. */
	Revision LoreHash
	/* Number of the revision being reverted. */
	RevisionNumber uint64
}

type LoreRevertStartBeginEventDataFFI

type LoreRevertStartBeginEventDataFFI struct {
	/* Branch identifier. */
	Branch LoreBranchId
	/* Identifier of the revision being reverted. */
	Revision LoreHash
	/* Number of the revision being reverted. */
	RevisionNumber uint64
}

func (*LoreRevertStartBeginEventDataFFI) Clone

type LoreRevertStartEndEventData

type LoreRevertStartEndEventData struct {
	/* Progress statistics for the applied changes. */
	Stats LoreRevisionSyncProgressEventData
	/* Resulting revision hash signature. */
	Signature LoreHash
	/* Flag indicating the revert produced conflicts. */
	HasConflicts bool
}

type LoreRevertStartEndEventDataFFI

type LoreRevertStartEndEventDataFFI struct {
	/* Progress statistics for the applied changes. */
	Stats LoreRevisionSyncProgressEventDataFFI
	/* Resulting revision hash signature. */
	Signature LoreHash
	/* Flag indicating the revert produced conflicts. */
	HasConflicts uint8
}

func (*LoreRevertStartEndEventDataFFI) Clone

type LoreRevertUnresolveFileEventData

type LoreRevertUnresolveFileEventData struct {
	/* Path of the file. */
	Path string
}

type LoreRevertUnresolveFileEventDataFFI

type LoreRevertUnresolveFileEventDataFFI struct {
	/* Path of the file. */
	Path LoreString
}

func (*LoreRevertUnresolveFileEventDataFFI) Clone

type LoreRevertUnresolveRevisionEventData

type LoreRevertUnresolveRevisionEventData struct {
	/* Repository identifier. */
	Repository LoreRepositoryId
	/* Identifier of the revision. */
	Revision LoreHash
}

type LoreRevertUnresolveRevisionEventDataFFI

type LoreRevertUnresolveRevisionEventDataFFI struct {
	/* Repository identifier. */
	Repository LoreRepositoryId
	/* Identifier of the revision. */
	Revision LoreHash
}

func (*LoreRevertUnresolveRevisionEventDataFFI) Clone

type LoreRevisionAmendArgs

type LoreRevisionAmendArgs struct {
	/* New commit message */
	Message string
}

type LoreRevisionAmendArgsFFI

type LoreRevisionAmendArgsFFI struct {
	/* New commit message */
	Message LoreString
}

func NewLoreRevisionAmendArgs

func NewLoreRevisionAmendArgs(opts LoreRevisionAmendArgs) (LoreRevisionAmendArgsFFI, func())

type LoreRevisionBisectArgs added in v0.10.1

type LoreRevisionBisectArgs struct {
	/* Starting (known-good) revision of the bisect range */
	Start string
	/* Ending (known-bad) revision of the bisect range */
	End string
}

type LoreRevisionBisectArgsFFI added in v0.10.1

type LoreRevisionBisectArgsFFI struct {
	/* Starting (known-good) revision of the bisect range */
	Start LoreString
	/* Ending (known-bad) revision of the bisect range */
	End LoreString
}

func NewLoreRevisionBisectArgs added in v0.10.1

func NewLoreRevisionBisectArgs(opts LoreRevisionBisectArgs) (LoreRevisionBisectArgsFFI, func())

type LoreRevisionBisectEventData

type LoreRevisionBisectEventData struct {
	/* Revision number at the start of the search range. */
	StartRevisionNumber uint64
	/* Revision number selected to test next. */
	TargetRevisionNumber uint64
	/* Revision number at the end of the search range. */
	EndRevisionNumber uint64
	/* Flag indicating the search has finished. */
	Done bool
}

type LoreRevisionBisectEventDataFFI

type LoreRevisionBisectEventDataFFI struct {
	/* Revision number at the start of the search range. */
	StartRevisionNumber uint64
	/* Revision number selected to test next. */
	TargetRevisionNumber uint64
	/* Revision number at the end of the search range. */
	EndRevisionNumber uint64
	/* Flag indicating the search has finished. */
	Done uint8
}

func (*LoreRevisionBisectEventDataFFI) Clone

type LoreRevisionCherryPickArgs added in v0.10.1

type LoreRevisionCherryPickArgs struct {
	/* Revision to cherry pick */
	Revision string
	/* Message to use for an auto-commit if no conflicts arise; empty uses the
	picked revision's message */
	Message string
	/* Disable auto-commit even if no conflicts arise */
	NoCommit bool
	/* Metadata keys to carry from the picked revision onto the revision this
	creates. Empty carries nothing; the single entry `*` carries every key
	that is not reserved to the cherry-pick itself. */
	InheritMetadata []string
}

type LoreRevisionCherryPickArgsFFI added in v0.10.1

type LoreRevisionCherryPickArgsFFI struct {
	/* Revision to cherry pick */
	Revision LoreString
	/* Message to use for an auto-commit if no conflicts arise; empty uses the
	picked revision's message */
	Message LoreString
	/* Disable auto-commit even if no conflicts arise */
	NoCommit uint8
	/* Metadata keys to carry from the picked revision onto the revision this
	creates. Empty carries nothing; the single entry `*` carries every key
	that is not reserved to the cherry-pick itself. */
	InheritMetadata LoreStringArrayFFI
}

func NewLoreRevisionCherryPickArgs added in v0.10.1

func NewLoreRevisionCherryPickArgs(opts LoreRevisionCherryPickArgs) (LoreRevisionCherryPickArgsFFI, func())

type LoreRevisionCommitArgs

type LoreRevisionCommitArgs struct {
	/* Commit message */
	Message string
	/* If set, commit only this linked repository (mount path relative to repo root) */
	Link string
	/* Array of link relative paths that have specific messages */
	LinkPaths []string
	/* Array of messages corresponding to each link path (parallel array with `link_paths`) */
	LinkMessages []string
	/* If set, commit only this layer (mount path relative to repo root) */
	Layer string
	/* Array of layer mount paths that have specific messages */
	LayerPaths []string
	/* Array of messages corresponding to each layer path (parallel array with `layer_paths`) */
	LayerMessages []string
}

type LoreRevisionCommitArgsFFI

type LoreRevisionCommitArgsFFI struct {
	/* Commit message */
	Message LoreString
	/* If set, commit only this linked repository (mount path relative to repo root) */
	Link LoreString
	/* Array of link relative paths that have specific messages */
	LinkPaths LoreStringArrayFFI
	/* Array of messages corresponding to each link path (parallel array with `link_paths`) */
	LinkMessages LoreStringArrayFFI
	/* If set, commit only this layer (mount path relative to repo root) */
	Layer LoreString
	/* Array of layer mount paths that have specific messages */
	LayerPaths LoreStringArrayFFI
	/* Array of messages corresponding to each layer path (parallel array with `layer_paths`) */
	LayerMessages LoreStringArrayFFI
}

func NewLoreRevisionCommitArgs

func NewLoreRevisionCommitArgs(opts LoreRevisionCommitArgs) (LoreRevisionCommitArgsFFI, func())

type LoreRevisionCommitBeginEventData

type LoreRevisionCommitBeginEventData struct {
	/* Unused placeholder field. */
	Unused uint32
}

type LoreRevisionCommitBeginEventDataFFI

type LoreRevisionCommitBeginEventDataFFI struct {
	/* Unused placeholder field. */
	Unused uint32
}

func (*LoreRevisionCommitBeginEventDataFFI) Clone

type LoreRevisionCommitCountData

type LoreRevisionCommitCountData struct {
	/* Number of directories processed so far. */
	DirectoryCount uint64
	/* Total number of directories to process. */
	DirectoryTotal uint64
	/* Number of files processed so far. */
	FileCount uint64
	/* Total number of files to process. */
	FileTotal uint64
	/* Number of directories deleted. */
	DirectoryDeleteCount uint64
	/* Number of files modified. */
	FileModifyCount uint64
	/* Number of files deleted. */
	FileDeleteCount uint64
	/* Number of content bytes transferred so far. */
	BytesTransferred uint64
	/* Total number of content bytes to transfer. */
	BytesTotal uint64
	/* Set when file and directory discovery has finished. */
	DiscoveryComplete bool
}

type LoreRevisionCommitCountDataFFI

type LoreRevisionCommitCountDataFFI struct {
	/* Number of directories processed so far. */
	DirectoryCount uint64
	/* Total number of directories to process. */
	DirectoryTotal uint64
	/* Number of files processed so far. */
	FileCount uint64
	/* Total number of files to process. */
	FileTotal uint64
	/* Number of directories deleted. */
	DirectoryDeleteCount uint64
	/* Number of files modified. */
	FileModifyCount uint64
	/* Number of files deleted. */
	FileDeleteCount uint64
	/* Number of content bytes transferred so far. */
	BytesTransferred uint64
	/* Total number of content bytes to transfer. */
	BytesTotal uint64
	/* Set when file and directory discovery has finished. */
	DiscoveryComplete uint8
}

func NewLoreRevisionCommitCountData

func NewLoreRevisionCommitCountData(opts LoreRevisionCommitCountData) (LoreRevisionCommitCountDataFFI, func())

func (*LoreRevisionCommitCountDataFFI) Clone

type LoreRevisionCommitEndEventData

type LoreRevisionCommitEndEventData struct {
	/* Final progress counters. */
	Count LoreRevisionCommitCountData
}

type LoreRevisionCommitEndEventDataFFI

type LoreRevisionCommitEndEventDataFFI struct {
	/* Final progress counters. */
	Count LoreRevisionCommitCountDataFFI
}

func (*LoreRevisionCommitEndEventDataFFI) Clone

type LoreRevisionCommitProgressEventData

type LoreRevisionCommitProgressEventData struct {
	/* Current progress counters. */
	Count LoreRevisionCommitCountData
}

type LoreRevisionCommitProgressEventDataFFI

type LoreRevisionCommitProgressEventDataFFI struct {
	/* Current progress counters. */
	Count LoreRevisionCommitCountDataFFI
}

func (*LoreRevisionCommitProgressEventDataFFI) Clone

type LoreRevisionCommitRevisionEventData

type LoreRevisionCommitRevisionEventData struct {
	/* Identifier of the repository the revision belongs to. */
	Repository LoreRepositoryId
	/* Identifier of the branch the revision was committed on. */
	Branch LoreBranchId
	/* Signature of the committed revision. */
	Revision LoreHash
	/* Sequential number of the revision. */
	RevisionNumber uint64
	/* Signature of the first parent revision. */
	Parent LoreHash
	/* Signature of the second parent revision, set for a merge. */
	ParentOther LoreHash
}

type LoreRevisionCommitRevisionEventDataFFI

type LoreRevisionCommitRevisionEventDataFFI struct {
	/* Identifier of the repository the revision belongs to. */
	Repository LoreRepositoryId
	/* Identifier of the branch the revision was committed on. */
	Branch LoreBranchId
	/* Signature of the committed revision. */
	Revision LoreHash
	/* Sequential number of the revision. */
	RevisionNumber uint64
	/* Signature of the first parent revision. */
	Parent LoreHash
	/* Signature of the second parent revision, set for a merge. */
	ParentOther LoreHash
}

func (*LoreRevisionCommitRevisionEventDataFFI) Clone

type LoreRevisionCommitStatsEventData added in v0.10.0

type LoreRevisionCommitStatsEventData struct {
	/* Files committed, by action. */
	Files LoreCommitFileStatsData
	/* What the commit's fragment writes cost. */
	Fragments LoreFragmentStatsData
}

type LoreRevisionCommitStatsEventDataFFI added in v0.10.0

type LoreRevisionCommitStatsEventDataFFI struct {
	/* Files committed, by action. */
	Files LoreCommitFileStatsDataFFI
	/* What the commit's fragment writes cost. */
	Fragments LoreFragmentStatsDataFFI
}

func (*LoreRevisionCommitStatsEventDataFFI) Clone added in v0.10.0

type LoreRevisionDiffArgs

type LoreRevisionDiffArgs struct {
	/* Source revision to diff from */
	RevisionSource string
	/* Target revision to diff to; empty for current */
	RevisionTarget string
	/* Repository-relative paths to restrict the diff to; empty for all */
	Paths []string
}

type LoreRevisionDiffArgsFFI

type LoreRevisionDiffArgsFFI struct {
	/* Source revision to diff from */
	RevisionSource LoreString
	/* Target revision to diff to; empty for current */
	RevisionTarget LoreString
	/* Repository-relative paths to restrict the diff to; empty for all */
	Paths LoreStringArrayFFI
}

func NewLoreRevisionDiffArgs

func NewLoreRevisionDiffArgs(opts LoreRevisionDiffArgs) (LoreRevisionDiffArgsFFI, func())

type LoreRevisionDiffFileEventData

type LoreRevisionDiffFileEventData struct {
	/* Path of the file, relative to the root of the working tree. */
	Path string
	/* Action applied to the file. */
	Action LoreFileAction
	/* Flag indicating the entry on the source side is a file rather than a directory. */
	OldIsFile bool
	/* Flag indicating the entry on the target side is a file rather than a directory. */
	NewIsFile bool
	/* Address of the file content on the source side. */
	OldAddress LoreAddress
	/* Address of the file content on the target side. */
	NewAddress LoreAddress
	/* Previous path of the file when it was moved or copied, relative to the root of the
	working tree. Empty otherwise. */
	FromPath string
}

type LoreRevisionDiffFileEventDataFFI

type LoreRevisionDiffFileEventDataFFI struct {
	/* Path of the file, relative to the root of the working tree. */
	Path LoreString
	/* Action applied to the file. */
	Action LoreFileAction
	/* Flag indicating the entry on the source side is a file rather than a directory. */
	OldIsFile uint8
	/* Flag indicating the entry on the target side is a file rather than a directory. */
	NewIsFile uint8
	/* Address of the file content on the source side. */
	OldAddress LoreAddress
	/* Address of the file content on the target side. */
	NewAddress LoreAddress
	/* Previous path of the file when it was moved or copied, relative to the root of the
	working tree. Empty otherwise. */
	FromPath LoreString
}

func (*LoreRevisionDiffFileEventDataFFI) Clone

type LoreRevisionFindArgs

type LoreRevisionFindArgs struct {
	/* Metadata key to search for; non-empty selects key/value search */
	Key string
	/* Metadata value to match against `key` */
	Value string
	/* Revision number to search for when `key` is empty; 0 disables */
	Number uint64
}

type LoreRevisionFindArgsFFI

type LoreRevisionFindArgsFFI struct {
	/* Metadata key to search for; non-empty selects key/value search */
	Key LoreString
	/* Metadata value to match against `key` */
	Value LoreString
	/* Revision number to search for when `key` is empty; 0 disables */
	Number uint64
}

func NewLoreRevisionFindArgs

func NewLoreRevisionFindArgs(opts LoreRevisionFindArgs) (LoreRevisionFindArgsFFI, func())

type LoreRevisionFindEventData

type LoreRevisionFindEventData struct {
	/* Signature of the revision that was found. */
	Signature LoreHash
}

type LoreRevisionFindEventDataFFI

type LoreRevisionFindEventDataFFI struct {
	/* Signature of the revision that was found. */
	Signature LoreHash
}

func (*LoreRevisionFindEventDataFFI) Clone

type LoreRevisionGraphBranchArchiveArgs added in v0.15.0

type LoreRevisionGraphBranchArchiveArgs struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is archived in */
	Repository LorePartition
	/* Branch to archive. Not zero. */
	Branch LoreBranchId
}

type LoreRevisionGraphBranchArchiveArgsFFI added in v0.15.0

type LoreRevisionGraphBranchArchiveArgsFFI struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is archived in */
	Repository LorePartition
	/* Branch to archive. Not zero. */
	Branch LoreBranchId
}

func NewLoreRevisionGraphBranchArchiveArgs added in v0.15.0

func NewLoreRevisionGraphBranchArchiveArgs(opts LoreRevisionGraphBranchArchiveArgs) (LoreRevisionGraphBranchArchiveArgsFFI, func())

type LoreRevisionGraphBranchCreateArgs added in v0.15.0

type LoreRevisionGraphBranchCreateArgs struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is created in */
	Repository LorePartition
	/* Name of the new branch: not empty, at most 1000 bytes, and not a branch id. No live branch
	may hold it, compared regardless of case. */
	Name string
	/* Category of the new branch, at most 1000 bytes. Empty means the default category. */
	Category string
	/* The revision the new branch starts at. A hash makes the revision's own branch the parent,
	and a branch makes that branch the parent, at its latest or at the revision number given. */
	From LoreRevisionIdentifier
	/* The id of the scope the new branch is created in, which the remote must hold live. Zero
	names none, and the remote has the branch inherit its scope. A call that names a scope must
	create the branch at the remote. */
	Scope LoreScopeId
}

type LoreRevisionGraphBranchCreateArgsFFI added in v0.15.0

type LoreRevisionGraphBranchCreateArgsFFI struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is created in */
	Repository LorePartition
	/* Name of the new branch: not empty, at most 1000 bytes, and not a branch id. No live branch
	may hold it, compared regardless of case. */
	Name LoreString
	/* Category of the new branch, at most 1000 bytes. Empty means the default category. */
	Category LoreString
	/* The revision the new branch starts at. A hash makes the revision's own branch the parent,
	and a branch makes that branch the parent, at its latest or at the revision number given. */
	From LoreRevisionIdentifier
	/* The id of the scope the new branch is created in, which the remote must hold live. Zero
	names none, and the remote has the branch inherit its scope. A call that names a scope must
	create the branch at the remote. */
	Scope LoreScopeId
}

func NewLoreRevisionGraphBranchCreateArgs added in v0.15.0

func NewLoreRevisionGraphBranchCreateArgs(opts LoreRevisionGraphBranchCreateArgs) (LoreRevisionGraphBranchCreateArgsFFI, func())

type LoreRevisionGraphBranchEventData added in v0.15.0

type LoreRevisionGraphBranchEventData struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* The location that holds the branch. */
	Location LoreBranchLocation
	/* Branch identifier. */
	Branch LoreBranchId
	/* Branch name. */
	Name string
	/* Branch category. */
	Category string
	/* The branch's latest revision at this location. */
	Latest LoreHash
	/* The branch's branch point, then those of the branches it descends from, nearest first. */
	Stack LoreBranchPointArray
	/* Identifier of the user who created the branch. */
	Creator string
	/* Time the branch was created, in milliseconds since the Unix epoch. */
	Created uint64
	/* Set when the branch is protected. */
	Protect bool
	/* Set when the branch is archived. */
	Archived bool
	/* Set when the local latest isn't known to be on the remote's history line for the branch, the
	remote latest or a revision it reaches along first parents, as after a commit the remote
	doesn't have yet. Zero on a remote record. */
	Divergent bool
}

type LoreRevisionGraphBranchEventDataFFI added in v0.15.0

type LoreRevisionGraphBranchEventDataFFI struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* The location that holds the branch. */
	Location LoreBranchLocation
	/* Branch identifier. */
	Branch LoreBranchId
	/* Branch name. */
	Name LoreString
	/* Branch category. */
	Category LoreString
	/* The branch's latest revision at this location. */
	Latest LoreHash
	/* The branch's branch point, then those of the branches it descends from, nearest first. */
	Stack LoreBranchPointArrayFFI
	/* Identifier of the user who created the branch. */
	Creator LoreString
	/* Time the branch was created, in milliseconds since the Unix epoch. */
	Created uint64
	/* Set when the branch is protected. */
	Protect uint8
	/* Set when the branch is archived. */
	Archived uint8
	/* Set when the local latest isn't known to be on the remote's history line for the branch, the
	remote latest or a revision it reaches along first parents, as after a commit the remote
	doesn't have yet. Zero on a remote record. */
	Divergent uint8
}

func (*LoreRevisionGraphBranchEventDataFFI) Clone added in v0.15.0

type LoreRevisionGraphBranchListArgs added in v0.15.0

type LoreRevisionGraphBranchListArgs struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository whose branches are listed */
	Repository LorePartition
	/* Non-zero to list archived branches too, each with the latest revision it kept when it was
	archived */
	IncludeArchived bool
	/* When non-empty, lists only the branches whose creator equals it exactly, compared
	case-sensitively */
	Creator string
}

type LoreRevisionGraphBranchListArgsFFI added in v0.15.0

type LoreRevisionGraphBranchListArgsFFI struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository whose branches are listed */
	Repository LorePartition
	/* Non-zero to list archived branches too, each with the latest revision it kept when it was
	archived */
	IncludeArchived uint8
	/* When non-empty, lists only the branches whose creator equals it exactly, compared
	case-sensitively */
	Creator LoreString
}

func NewLoreRevisionGraphBranchListArgs added in v0.15.0

func NewLoreRevisionGraphBranchListArgs(opts LoreRevisionGraphBranchListArgs) (LoreRevisionGraphBranchListArgsFFI, func())

type LoreRevisionGraphBranchMetadataEntry added in v0.15.0

type LoreRevisionGraphBranchMetadataEntry struct {
	/* Key to set, replacing the value it holds. Not empty, not a read-only key, and named once
	across `entries` and `remove`. */
	Key string
	/* Value to store, with the type its tag names, which must be a `LORE_METADATA_TYPE_*` tag.
	A `protect` value's tag must be `LORE_METADATA_TYPE_BOOLEAN`. */
	Value LoreMetadata
}

type LoreRevisionGraphBranchMetadataEntryArray added in v0.15.0

type LoreRevisionGraphBranchMetadataEntryArray = []LoreRevisionGraphBranchMetadataEntry

type LoreRevisionGraphBranchMetadataEntryArrayFFI added in v0.15.0

type LoreRevisionGraphBranchMetadataEntryArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreRevisionGraphBranchMetadataEntryArray added in v0.15.0

func NewLoreRevisionGraphBranchMetadataEntryArray(arr []LoreRevisionGraphBranchMetadataEntry) (LoreRevisionGraphBranchMetadataEntryArrayFFI, func())

func (LoreRevisionGraphBranchMetadataEntryArrayFFI) Clone added in v0.15.0

func (LoreRevisionGraphBranchMetadataEntryArrayFFI) Get added in v0.15.0

func (LoreRevisionGraphBranchMetadataEntryArrayFFI) Len added in v0.15.0

type LoreRevisionGraphBranchMetadataEntryFFI added in v0.15.0

type LoreRevisionGraphBranchMetadataEntryFFI struct {
	/* Key to set, replacing the value it holds. Not empty, not a read-only key, and named once
	across `entries` and `remove`. */
	Key LoreString
	/* Value to store, with the type its tag names, which must be a `LORE_METADATA_TYPE_*` tag.
	A `protect` value's tag must be `LORE_METADATA_TYPE_BOOLEAN`. */
	Value LoreMetadataFFI
}

func NewLoreRevisionGraphBranchMetadataEntry added in v0.15.0

func NewLoreRevisionGraphBranchMetadataEntry(opts LoreRevisionGraphBranchMetadataEntry) (LoreRevisionGraphBranchMetadataEntryFFI, func())

func (*LoreRevisionGraphBranchMetadataEntryFFI) Clone added in v0.15.0

type LoreRevisionGraphBranchMetadataEventData added in v0.15.0

type LoreRevisionGraphBranchMetadataEventData struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* The location that holds the entry. */
	Location LoreBranchLocation
	/* Branch identifier. */
	Branch LoreBranchId
	/* The entry's key. */
	Key string
	/* The entry's value, with the type it's stored with. */
	Value LoreMetadata
}

type LoreRevisionGraphBranchMetadataEventDataFFI added in v0.15.0

type LoreRevisionGraphBranchMetadataEventDataFFI struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* The location that holds the entry. */
	Location LoreBranchLocation
	/* Branch identifier. */
	Branch LoreBranchId
	/* The entry's key. */
	Key LoreString
	/* The entry's value, with the type it's stored with. */
	Value LoreMetadataFFI
}

func (*LoreRevisionGraphBranchMetadataEventDataFFI) Clone added in v0.15.0

type LoreRevisionGraphBranchMetadataGetArgs added in v0.15.0

type LoreRevisionGraphBranchMetadataGetArgs struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is in */
	Repository LorePartition
	/* Branch whose metadata is read. Not zero. */
	Branch LoreBranchId
	/* Key of the one entry to report, or empty to report every entry a record can carry; the
	others are left out, with one `LORE_EVENT_LOG` warning from each location that leaves any
	out */
	Key string
}

type LoreRevisionGraphBranchMetadataGetArgsFFI added in v0.15.0

type LoreRevisionGraphBranchMetadataGetArgsFFI struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is in */
	Repository LorePartition
	/* Branch whose metadata is read. Not zero. */
	Branch LoreBranchId
	/* Key of the one entry to report, or empty to report every entry a record can carry; the
	others are left out, with one `LORE_EVENT_LOG` warning from each location that leaves any
	out */
	Key LoreString
}

func NewLoreRevisionGraphBranchMetadataGetArgs added in v0.15.0

func NewLoreRevisionGraphBranchMetadataGetArgs(opts LoreRevisionGraphBranchMetadataGetArgs) (LoreRevisionGraphBranchMetadataGetArgsFFI, func())

type LoreRevisionGraphBranchMetadataSetArgs added in v0.15.0

type LoreRevisionGraphBranchMetadataSetArgs struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is in */
	Repository LorePartition
	/* Branch whose metadata is edited. Not zero. */
	Branch LoreBranchId
	/* Entries to set, each replacing the value its key holds */
	Entries LoreRevisionGraphBranchMetadataEntryArray
	/* Keys to remove. A key the metadata lacks is passed over. */
	Remove []string
}

type LoreRevisionGraphBranchMetadataSetArgsFFI added in v0.15.0

type LoreRevisionGraphBranchMetadataSetArgsFFI struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is in */
	Repository LorePartition
	/* Branch whose metadata is edited. Not zero. */
	Branch LoreBranchId
	/* Entries to set, each replacing the value its key holds */
	Entries LoreRevisionGraphBranchMetadataEntryArrayFFI
	/* Keys to remove. A key the metadata lacks is passed over. */
	Remove LoreStringArrayFFI
}

func NewLoreRevisionGraphBranchMetadataSetArgs added in v0.15.0

func NewLoreRevisionGraphBranchMetadataSetArgs(opts LoreRevisionGraphBranchMetadataSetArgs) (LoreRevisionGraphBranchMetadataSetArgsFFI, func())

type LoreRevisionGraphBranchPushArgs added in v0.15.0

type LoreRevisionGraphBranchPushArgs struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is pushed in */
	Repository LorePartition
	/* Branch whose local history the call publishes. Not zero. */
	Branch LoreBranchId
	/* How the call pushes */
	Options LoreRevisionGraphBranchPushOptions
}

type LoreRevisionGraphBranchPushArgsFFI added in v0.15.0

type LoreRevisionGraphBranchPushArgsFFI struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is pushed in */
	Repository LorePartition
	/* Branch whose local history the call publishes. Not zero. */
	Branch LoreBranchId
	/* How the call pushes */
	Options LoreRevisionGraphBranchPushOptions
}

func NewLoreRevisionGraphBranchPushArgs added in v0.15.0

func NewLoreRevisionGraphBranchPushArgs(opts LoreRevisionGraphBranchPushArgs) (LoreRevisionGraphBranchPushArgsFFI, func())

type LoreRevisionGraphBranchPushOptions added in v0.15.0

type LoreRevisionGraphBranchPushOptions struct {
	/* Non-zero: offer the local history even where the remote latest has moved, which overwrites
	it. Branch protection still applies. */
	Force bool
	/* Non-zero: let the remote merge onto a remote latest that has moved, where the merge has no
	conflicts. */
	FastForwardMerge bool
}

type LoreRevisionGraphBranchPushOptionsFFI added in v0.15.0

type LoreRevisionGraphBranchPushOptionsFFI struct {
	/* Non-zero: offer the local history even where the remote latest has moved, which overwrites
	it. Branch protection still applies. */
	Force uint8
	/* Non-zero: let the remote merge onto a remote latest that has moved, where the merge has no
	conflicts. */
	FastForwardMerge uint8
}

func NewLoreRevisionGraphBranchPushOptions added in v0.15.0

func NewLoreRevisionGraphBranchPushOptions(opts LoreRevisionGraphBranchPushOptions) (LoreRevisionGraphBranchPushOptionsFFI, func())

func (*LoreRevisionGraphBranchPushOptionsFFI) Clone added in v0.15.0

type LoreRevisionGraphBranchPushedEventData added in v0.15.0

type LoreRevisionGraphBranchPushedEventData struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* The branch the call pushes. */
	Branch LoreBranchId
	/* The last revision the call published. Where it published none, the local latest when the
	call succeeds, and zero when it fails. */
	RevisionHash LoreHash
	/* The revision number of `revision_hash` on the remote, zero where `revision_hash` is zero. */
	RevisionNumber uint64
	/* Set where the remote published `revision_hash` as a fast-forward merge onto a remote latest
	that had moved. */
	FastForwardMerged bool
	/* The remote latest when the call finished. */
	RemoteLatest LoreHash
	/* The local latest when the call finished. */
	LocalLatest LoreHash
}

type LoreRevisionGraphBranchPushedEventDataFFI added in v0.15.0

type LoreRevisionGraphBranchPushedEventDataFFI struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* The branch the call pushes. */
	Branch LoreBranchId
	/* The last revision the call published. Where it published none, the local latest when the
	call succeeds, and zero when it fails. */
	RevisionHash LoreHash
	/* The revision number of `revision_hash` on the remote, zero where `revision_hash` is zero. */
	RevisionNumber uint64
	/* Set where the remote published `revision_hash` as a fast-forward merge onto a remote latest
	that had moved. */
	FastForwardMerged uint8
	/* The remote latest when the call finished. */
	RemoteLatest LoreHash
	/* The local latest when the call finished. */
	LocalLatest LoreHash
}

func (*LoreRevisionGraphBranchPushedEventDataFFI) Clone added in v0.15.0

type LoreRevisionGraphBranchResolveArgs added in v0.15.0

type LoreRevisionGraphBranchResolveArgs struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is resolved in */
	Repository LorePartition
	/* Name of the branch to resolve, compared regardless of case. A branch whose id an older
	version derived from its name, and that no name maps to, is found only by that name as
	given. */
	Name string
}

type LoreRevisionGraphBranchResolveArgsFFI added in v0.15.0

type LoreRevisionGraphBranchResolveArgsFFI struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is resolved in */
	Repository LorePartition
	/* Name of the branch to resolve, compared regardless of case. A branch whose id an older
	version derived from its name, and that no name maps to, is found only by that name as
	given. */
	Name LoreString
}

func NewLoreRevisionGraphBranchResolveArgs added in v0.15.0

func NewLoreRevisionGraphBranchResolveArgs(opts LoreRevisionGraphBranchResolveArgs) (LoreRevisionGraphBranchResolveArgsFFI, func())

type LoreRevisionGraphBranchSyncArgs added in v0.15.0

type LoreRevisionGraphBranchSyncArgs struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is synced in */
	Repository LorePartition
	/* Branch whose local latest the call syncs. Not zero. */
	Branch LoreBranchId
	/* The revision to sync the local latest to: a revision on the branch, the branch point the
	branch starts from, or a revision number on the branch or its latest. All zero names the
	branch's latest. */
	Target LoreRevisionIdentifier
	/* How the call syncs */
	Options LoreRevisionGraphBranchSyncOptions
}

type LoreRevisionGraphBranchSyncArgsFFI added in v0.15.0

type LoreRevisionGraphBranchSyncArgsFFI struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the branch is synced in */
	Repository LorePartition
	/* Branch whose local latest the call syncs. Not zero. */
	Branch LoreBranchId
	/* The revision to sync the local latest to: a revision on the branch, the branch point the
	branch starts from, or a revision number on the branch or its latest. All zero names the
	branch's latest. */
	Target LoreRevisionIdentifier
	/* How the call syncs */
	Options LoreRevisionGraphBranchSyncOptions
}

func NewLoreRevisionGraphBranchSyncArgs added in v0.15.0

func NewLoreRevisionGraphBranchSyncArgs(opts LoreRevisionGraphBranchSyncArgs) (LoreRevisionGraphBranchSyncArgsFFI, func())

type LoreRevisionGraphBranchSyncOptions added in v0.15.0

type LoreRevisionGraphBranchSyncOptions struct {
	/* Non-zero: move the local latest to the target even where the target isn't a first-parent
	descendant of it */
	Force bool
	/* Non-zero: sync only while the local latest is this revision. Zero sets no expectation. */
	ExpectedLocalLatest LoreHash
}

type LoreRevisionGraphBranchSyncOptionsFFI added in v0.15.0

type LoreRevisionGraphBranchSyncOptionsFFI struct {
	/* Non-zero: move the local latest to the target even where the target isn't a first-parent
	descendant of it */
	Force uint8
	/* Non-zero: sync only while the local latest is this revision. Zero sets no expectation. */
	ExpectedLocalLatest LoreHash
}

func NewLoreRevisionGraphBranchSyncOptions added in v0.15.0

func NewLoreRevisionGraphBranchSyncOptions(opts LoreRevisionGraphBranchSyncOptions) (LoreRevisionGraphBranchSyncOptionsFFI, func())

func (*LoreRevisionGraphBranchSyncOptionsFFI) Clone added in v0.15.0

type LoreRevisionGraphBranchSyncedEventData added in v0.15.0

type LoreRevisionGraphBranchSyncedEventData struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* The branch the call syncs. */
	Branch LoreBranchId
	/* The local latest the call read. Where the call failed, the local latest it last observed. */
	PreviousLocalLatest LoreHash
	/* The local latest when the call finished. Where the call failed, the local latest it last
	observed, as `previous_local_latest` holds it. */
	LocalLatest LoreHash
}

type LoreRevisionGraphBranchSyncedEventDataFFI added in v0.15.0

type LoreRevisionGraphBranchSyncedEventDataFFI struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* The branch the call syncs. */
	Branch LoreBranchId
	/* The local latest the call read. Where the call failed, the local latest it last observed. */
	PreviousLocalLatest LoreHash
	/* The local latest when the call finished. Where the call failed, the local latest it last
	observed, as `previous_local_latest` holds it. */
	LocalLatest LoreHash
}

func (*LoreRevisionGraphBranchSyncedEventDataFFI) Clone added in v0.15.0

type LoreRevisionGraphInstanceEventData added in v0.15.0

type LoreRevisionGraphInstanceEventData struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* Always `LORE_BRANCH_LOCATION_LOCAL`, since the local store records instances. */
	Location LoreBranchLocation
	/* The instance's id from its registration. */
	InstanceId LoreInstanceId
	/* The instance's working directory, as registered. */
	Path string
	/* The instance's current branch. */
	Branch LoreBranchId
	/* The instance's current revision. */
	Revision LoreHash
	/* 0 when the instance is live, 1 when the registered path no longer exists, 2 when the path
	holds a different instance, which superseded this one, and 3 when the path holds no
	readable checkout. */
	Stale bool
}

type LoreRevisionGraphInstanceEventDataFFI added in v0.15.0

type LoreRevisionGraphInstanceEventDataFFI struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* Always `LORE_BRANCH_LOCATION_LOCAL`, since the local store records instances. */
	Location LoreBranchLocation
	/* The instance's id from its registration. */
	InstanceId LoreInstanceId
	/* The instance's working directory, as registered. */
	Path LoreString
	/* The instance's current branch. */
	Branch LoreBranchId
	/* The instance's current revision. */
	Revision LoreHash
	/* 0 when the instance is live, 1 when the registered path no longer exists, 2 when the path
	holds a different instance, which superseded this one, and 3 when the path holds no
	readable checkout. */
	Stale uint8
}

func (*LoreRevisionGraphInstanceEventDataFFI) Clone added in v0.15.0

type LoreRevisionGraphLocationCompleteEventData added in v0.15.0

type LoreRevisionGraphLocationCompleteEventData struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* The location this outcome is for. */
	Location LoreBranchLocation
	/* The number of record events the call emitted for this location, instance records included. */
	Records uint64
	/* The location's outcome. Code 0 on success, including when the location doesn't hold the
	object. */
	Error LoreErrorDetail
}

type LoreRevisionGraphLocationCompleteEventDataFFI added in v0.15.0

type LoreRevisionGraphLocationCompleteEventDataFFI struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* The location this outcome is for. */
	Location LoreBranchLocation
	/* The number of record events the call emitted for this location, instance records included. */
	Records uint64
	/* The location's outcome. Code 0 on success, including when the location doesn't hold the
	object. */
	Error LoreErrorDetailFFI
}

func (*LoreRevisionGraphLocationCompleteEventDataFFI) Clone added in v0.15.0

type LoreRevisionGraphRevisionEventData added in v0.15.0

type LoreRevisionGraphRevisionEventData struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* The location that resolved the revision. */
	Location LoreBranchLocation
	/* The revision's hash. */
	RevisionHash LoreHash
	/* The revision's number. */
	RevisionNumber uint64
	/* The branch the revision was created on. Zero when the location doesn't record it. */
	Branch LoreBranchId
}

type LoreRevisionGraphRevisionEventDataFFI added in v0.15.0

type LoreRevisionGraphRevisionEventDataFFI struct {
	/* The `id` from the call's arguments. */
	Id uint64
	/* The location that resolved the revision. */
	Location LoreBranchLocation
	/* The revision's hash. */
	RevisionHash LoreHash
	/* The revision's number. */
	RevisionNumber uint64
	/* The branch the revision was created on. Zero when the location doesn't record it. */
	Branch LoreBranchId
}

func (*LoreRevisionGraphRevisionEventDataFFI) Clone added in v0.15.0

type LoreRevisionGraphRevisionResolveArgs added in v0.15.0

type LoreRevisionGraphRevisionResolveArgs struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the revision is resolved in */
	Repository LorePartition
	/* The revision to resolve */
	Revision LoreRevisionIdentifier
}

type LoreRevisionGraphRevisionResolveArgsFFI added in v0.15.0

type LoreRevisionGraphRevisionResolveArgsFFI struct {
	/* Caller-chosen id echoed back in every event this surface defines for the call. Separate
	from `globals.correlation_id`. */
	Id uint64
	/* Open storage handle the call reaches the repository through */
	Store LoreStore
	/* Repository the revision is resolved in */
	Repository LorePartition
	/* The revision to resolve */
	Revision LoreRevisionIdentifier
}

func NewLoreRevisionGraphRevisionResolveArgs added in v0.15.0

func NewLoreRevisionGraphRevisionResolveArgs(opts LoreRevisionGraphRevisionResolveArgs) (LoreRevisionGraphRevisionResolveArgsFFI, func())

type LoreRevisionHistoryArgs

type LoreRevisionHistoryArgs struct {
	/* Start from this revision; empty for current */
	Revision string
	/* Restrict to this branch; empty for current */
	Branch string
	/* Stop at revisions created before this date (milliseconds since the
	Unix epoch; 0 disables) */
	Date uint64
	/* Maximum number of revisions to return; 0 for unlimited */
	Length uint32
	/* Stop when reaching a different branch */
	OnlyBranch bool
}

type LoreRevisionHistoryArgsFFI

type LoreRevisionHistoryArgsFFI struct {
	/* Start from this revision; empty for current */
	Revision LoreString
	/* Restrict to this branch; empty for current */
	Branch LoreString
	/* Stop at revisions created before this date (milliseconds since the
	Unix epoch; 0 disables) */
	Date uint64
	/* Maximum number of revisions to return; 0 for unlimited */
	Length uint32
	/* Stop when reaching a different branch */
	OnlyBranch uint8
}

func NewLoreRevisionHistoryArgs

func NewLoreRevisionHistoryArgs(opts LoreRevisionHistoryArgs) (LoreRevisionHistoryArgsFFI, func())

type LoreRevisionHistoryEntryEventData

type LoreRevisionHistoryEntryEventData struct {
	/* Revision hash signature. */
	Revision LoreHash
	/* Revision number. */
	RevisionNumber uint64
	/* Parent revision hashes; the first is the direct parent and the second
	is the other parent of a merge, or zero when there is none. */
	Parent [2]LoreHash
}

type LoreRevisionHistoryEntryEventDataFFI

type LoreRevisionHistoryEntryEventDataFFI struct {
	/* Revision hash signature. */
	Revision LoreHash
	/* Revision number. */
	RevisionNumber uint64
	/* Parent revision hashes; the first is the direct parent and the second
	is the other parent of a merge, or zero when there is none. */
	Parent [2]LoreHash
}

func (*LoreRevisionHistoryEntryEventDataFFI) Clone

type LoreRevisionHistoryEventData

type LoreRevisionHistoryEventData struct {
	/* Repository identifier the history belongs to. */
	Repository LoreRepositoryId
	/* Branch identifier the history is listed for. */
	Branch LoreBranchId
}

type LoreRevisionHistoryEventDataFFI

type LoreRevisionHistoryEventDataFFI struct {
	/* Repository identifier the history belongs to. */
	Repository LoreRepositoryId
	/* Branch identifier the history is listed for. */
	Branch LoreBranchId
}

func (*LoreRevisionHistoryEventDataFFI) Clone

type LoreRevisionIdentifier added in v0.15.0

type LoreRevisionIdentifier struct {
	/* Non-zero: the revision with this hash. `branch` and `revision_number` must then be zero. */
	Hash LoreHash
	/* With a zero `hash`: the branch whose revision this names. */
	Branch LoreBranchId
	/* With a zero `hash`: the revision number on `branch`; 0 names the branch's latest. */
	RevisionNumber uint64
}

type LoreRevisionIdentifierFFI added in v0.15.0

type LoreRevisionIdentifierFFI struct {
	/* Non-zero: the revision with this hash. `branch` and `revision_number` must then be zero. */
	Hash LoreHash
	/* With a zero `hash`: the branch whose revision this names. */
	Branch LoreBranchId
	/* With a zero `hash`: the revision number on `branch`; 0 names the branch's latest. */
	RevisionNumber uint64
}

func NewLoreRevisionIdentifier added in v0.15.0

func NewLoreRevisionIdentifier(opts LoreRevisionIdentifier) (LoreRevisionIdentifierFFI, func())

func (*LoreRevisionIdentifierFFI) Clone added in v0.15.0

type LoreRevisionInfoArgs

type LoreRevisionInfoArgs struct {
	/* Revision to get info for; empty for current */
	Revision string
	/* Include delta against parent */
	Delta bool
	/* Include file metadata entries */
	Metadata bool
}

type LoreRevisionInfoArgsFFI

type LoreRevisionInfoArgsFFI struct {
	/* Revision to get info for; empty for current */
	Revision LoreString
	/* Include delta against parent */
	Delta uint8
	/* Include file metadata entries */
	Metadata uint8
}

func NewLoreRevisionInfoArgs

func NewLoreRevisionInfoArgs(opts LoreRevisionInfoArgs) (LoreRevisionInfoArgsFFI, func())

type LoreRevisionInfoDeltaEventData

type LoreRevisionInfoDeltaEventData struct {
	/* Path of the file relative to the repository root. */
	Path string
	/* Size of the file in bytes. */
	Size uint64
	/* Action applied to the file. */
	Action LoreFileAction
	/* Flag indicating the file content was modified. */
	FlagModify bool
	/* Flag indicating the change came from a merge. */
	FlagMerged bool
	/* Flag indicating the entry is a file rather than a directory. */
	FlagFile bool
	/* Path the file was moved from in this revision. Empty otherwise. */
	FromPath string
}

type LoreRevisionInfoDeltaEventDataFFI

type LoreRevisionInfoDeltaEventDataFFI struct {
	/* Path of the file relative to the repository root. */
	Path LoreString
	/* Size of the file in bytes. */
	Size uint64
	/* Action applied to the file. */
	Action LoreFileAction
	/* Flag indicating the file content was modified. */
	FlagModify uint8
	/* Flag indicating the change came from a merge. */
	FlagMerged uint8
	/* Flag indicating the entry is a file rather than a directory. */
	FlagFile uint8
	/* Path the file was moved from in this revision. Empty otherwise. */
	FromPath LoreString
}

func (*LoreRevisionInfoDeltaEventDataFFI) Clone

type LoreRevisionInfoEventData

type LoreRevisionInfoEventData struct {
	/* Repository identifier the revision belongs to. */
	Repository LoreRepositoryId
	/* Revision hash signature. */
	Revision LoreHash
	/* Revision number. */
	RevisionNumber uint64
	/* Parent revision hashes; the first is the direct parent and the second
	is the other parent of a merge, or zero when there is none. */
	Parent [2]LoreHash
}

type LoreRevisionInfoEventDataFFI

type LoreRevisionInfoEventDataFFI struct {
	/* Repository identifier the revision belongs to. */
	Repository LoreRepositoryId
	/* Revision hash signature. */
	Revision LoreHash
	/* Revision number. */
	RevisionNumber uint64
	/* Parent revision hashes; the first is the direct parent and the second
	is the other parent of a merge, or zero when there is none. */
	Parent [2]LoreHash
}

func (*LoreRevisionInfoEventDataFFI) Clone

type LoreRevisionMetadataClearArgs

type LoreRevisionMetadataClearArgs struct {
	Unused int
}

type LoreRevisionMetadataClearArgsFFI

type LoreRevisionMetadataClearArgsFFI struct {
	Unused int
}

func NewLoreRevisionMetadataClearArgs

func NewLoreRevisionMetadataClearArgs(opts LoreRevisionMetadataClearArgs) (LoreRevisionMetadataClearArgsFFI, func())

type LoreRevisionMetadataGetArgs

type LoreRevisionMetadataGetArgs struct {
	/* Metadata key to look up */
	Key string
	/* Revision to get metadata for; empty for current */
	Revision string
}

type LoreRevisionMetadataGetArgsFFI

type LoreRevisionMetadataGetArgsFFI struct {
	/* Metadata key to look up */
	Key LoreString
	/* Revision to get metadata for; empty for current */
	Revision LoreString
}

func NewLoreRevisionMetadataGetArgs

func NewLoreRevisionMetadataGetArgs(opts LoreRevisionMetadataGetArgs) (LoreRevisionMetadataGetArgsFFI, func())

type LoreRevisionMetadataListArgs

type LoreRevisionMetadataListArgs struct {
	/* Revision to list metadata for; empty for current */
	Revision string
}

type LoreRevisionMetadataListArgsFFI

type LoreRevisionMetadataListArgsFFI struct {
	/* Revision to list metadata for; empty for current */
	Revision LoreString
}

func NewLoreRevisionMetadataListArgs

func NewLoreRevisionMetadataListArgs(opts LoreRevisionMetadataListArgs) (LoreRevisionMetadataListArgsFFI, func())

type LoreRevisionMetadataSetArgs

type LoreRevisionMetadataSetArgs struct {
	/* Metadata keys (parallel with `values` and `formats`) */
	Keys []string
	/* Metadata values, decoded per the matching format */
	Values []string
	/* Value type for each entry */
	Formats LoreMetadataTypeArray
}

type LoreRevisionMetadataSetArgsFFI

type LoreRevisionMetadataSetArgsFFI struct {
	/* Metadata keys (parallel with `values` and `formats`) */
	Keys LoreStringArrayFFI
	/* Metadata values, decoded per the matching format */
	Values LoreStringArrayFFI
	/* Value type for each entry */
	Formats LoreMetadataTypeArrayFFI
}

func NewLoreRevisionMetadataSetArgs

func NewLoreRevisionMetadataSetArgs(opts LoreRevisionMetadataSetArgs) (LoreRevisionMetadataSetArgsFFI, func())

type LoreRevisionResolveEventData

type LoreRevisionResolveEventData struct {
	/* Repository identifier in which repository */
	Repository LoreRepositoryId
	/* Identifier of the branch on which resolution is being done */
	Branch LoreBranchId
	/* What the specifier names on the branch */
	Target LoreRevisionResolveTarget
	/* The revision number being resolved, zero unless `target` is `Number` */
	RevisionNumber uint64
	/* The revision being resolved, zero unless `target` is `Signature` */
	Revision LoreHash
	/* Resolving using remote data */
	Remote bool
	/* Resolving using local data */
	Local bool
}

type LoreRevisionResolveEventDataFFI

type LoreRevisionResolveEventDataFFI struct {
	/* Repository identifier in which repository */
	Repository LoreRepositoryId
	/* Identifier of the branch on which resolution is being done */
	Branch LoreBranchId
	/* What the specifier names on the branch */
	Target LoreRevisionResolveTarget
	/* The revision number being resolved, zero unless `target` is `Number` */
	RevisionNumber uint64
	/* The revision being resolved, zero unless `target` is `Signature` */
	Revision LoreHash
	/* Resolving using remote data */
	Remote uint8
	/* Resolving using local data */
	Local uint8
}

func (*LoreRevisionResolveEventDataFFI) Clone

type LoreRevisionResolveTarget added in v0.10.0

type LoreRevisionResolveTarget int32
const (
	LoreRevisionResolveTarget_NUMBER    LoreRevisionResolveTarget = 1
	LoreRevisionResolveTarget_LATEST    LoreRevisionResolveTarget = 2
	LoreRevisionResolveTarget_SIGNATURE LoreRevisionResolveTarget = 3
)

type LoreRevisionRestoreArgs

type LoreRevisionRestoreArgs struct {
	/* Commit message for the restored revision */
	Message string
}

type LoreRevisionRestoreArgsFFI

type LoreRevisionRestoreArgsFFI struct {
	/* Commit message for the restored revision */
	Message LoreString
}

func NewLoreRevisionRestoreArgs

func NewLoreRevisionRestoreArgs(opts LoreRevisionRestoreArgs) (LoreRevisionRestoreArgsFFI, func())

type LoreRevisionRestoreFileBeginEventData

type LoreRevisionRestoreFileBeginEventData struct {
	/* Number of files to process. */
	Count uintptr
}

type LoreRevisionRestoreFileBeginEventDataFFI

type LoreRevisionRestoreFileBeginEventDataFFI struct {
	/* Number of files to process. */
	Count uintptr
}

func (*LoreRevisionRestoreFileBeginEventDataFFI) Clone

type LoreRevisionRestoreFileEndEventData

type LoreRevisionRestoreFileEndEventData struct {
	/* Number of files processed. */
	Count uintptr
}

type LoreRevisionRestoreFileEndEventDataFFI

type LoreRevisionRestoreFileEndEventDataFFI struct {
	/* Number of files processed. */
	Count uintptr
}

func (*LoreRevisionRestoreFileEndEventDataFFI) Clone

type LoreRevisionRestoreFileEventData

type LoreRevisionRestoreFileEventData struct {
	/* Path of the file. */
	Path string
	/* Action applied to the file. */
	Action LoreFileAction
	/* Size of the file in bytes. */
	Size uint64
	/* Flag indicating the entry is a file. */
	IsFile bool
	/* Flag indicating the entry is a directory. */
	IsDirectory bool
	/* Flag indicating the entry is a module. */
	IsModule bool
}

type LoreRevisionRestoreFileEventDataFFI

type LoreRevisionRestoreFileEventDataFFI struct {
	/* Path of the file. */
	Path LoreString
	/* Action applied to the file. */
	Action LoreFileAction
	/* Size of the file in bytes. */
	Size uint64
	/* Flag indicating the entry is a file. */
	IsFile uint8
	/* Flag indicating the entry is a directory. */
	IsDirectory uint8
	/* Flag indicating the entry is a module. */
	IsModule uint8
}

func (*LoreRevisionRestoreFileEventDataFFI) Clone

type LoreRevisionRestoreFragmentBeginEventData

type LoreRevisionRestoreFragmentBeginEventData struct {
	/* Number of fragments to transfer. */
	Fragments uint64
}

type LoreRevisionRestoreFragmentBeginEventDataFFI

type LoreRevisionRestoreFragmentBeginEventDataFFI struct {
	/* Number of fragments to transfer. */
	Fragments uint64
}

func (*LoreRevisionRestoreFragmentBeginEventDataFFI) Clone

type LoreRevisionRestoreFragmentEndEventData

type LoreRevisionRestoreFragmentEndEventData struct {
	/* Number of fragments transferred. */
	Fragments uint64
}

type LoreRevisionRestoreFragmentEndEventDataFFI

type LoreRevisionRestoreFragmentEndEventDataFFI struct {
	/* Number of fragments transferred. */
	Fragments uint64
}

func (*LoreRevisionRestoreFragmentEndEventDataFFI) Clone

type LoreRevisionRestoreFragmentProgressEventData

type LoreRevisionRestoreFragmentProgressEventData struct {
	/* Number of fragments completed. */
	Complete uint64
	/* Total number of fragments. */
	Count uint64
}

type LoreRevisionRestoreFragmentProgressEventDataFFI

type LoreRevisionRestoreFragmentProgressEventDataFFI struct {
	/* Number of fragments completed. */
	Complete uint64
	/* Total number of fragments. */
	Count uint64
}

func (*LoreRevisionRestoreFragmentProgressEventDataFFI) Clone

type LoreRevisionRestoreRevisionEventData

type LoreRevisionRestoreRevisionEventData struct {
	/* Resulting revision hash signature. */
	Revision LoreHash
	/* Resulting revision number. */
	RevisionNumber uint64
}

type LoreRevisionRestoreRevisionEventDataFFI

type LoreRevisionRestoreRevisionEventDataFFI struct {
	/* Resulting revision hash signature. */
	Revision LoreHash
	/* Resulting revision number. */
	RevisionNumber uint64
}

func (*LoreRevisionRestoreRevisionEventDataFFI) Clone

type LoreRevisionRestoreSyncBeginEventData

type LoreRevisionRestoreSyncBeginEventData struct {
	/* Number of changes to apply. */
	Count uintptr
}

type LoreRevisionRestoreSyncBeginEventDataFFI

type LoreRevisionRestoreSyncBeginEventDataFFI struct {
	/* Number of changes to apply. */
	Count uintptr
}

func (*LoreRevisionRestoreSyncBeginEventDataFFI) Clone

type LoreRevisionRestoreSyncEndEventData

type LoreRevisionRestoreSyncEndEventData struct {
	/* Number of changes applied. */
	Count uintptr
}

type LoreRevisionRestoreSyncEndEventDataFFI

type LoreRevisionRestoreSyncEndEventDataFFI struct {
	/* Number of changes applied. */
	Count uintptr
}

func (*LoreRevisionRestoreSyncEndEventDataFFI) Clone

type LoreRevisionRevertAbortArgs

type LoreRevisionRevertAbortArgs struct {
	Unused int
}

type LoreRevisionRevertAbortArgsFFI

type LoreRevisionRevertAbortArgsFFI struct {
	Unused int
}

func NewLoreRevisionRevertAbortArgs

func NewLoreRevisionRevertAbortArgs(opts LoreRevisionRevertAbortArgs) (LoreRevisionRevertAbortArgsFFI, func())

type LoreRevisionRevertArgs

type LoreRevisionRevertArgs struct {
	/* Revision to revert */
	Revision string
	/* Message to use for an auto-commit if no conflicts arise */
	Message string
	/* Disable auto-commit even if no conflicts arise */
	NoCommit bool
}

type LoreRevisionRevertArgsFFI

type LoreRevisionRevertArgsFFI struct {
	/* Revision to revert */
	Revision LoreString
	/* Message to use for an auto-commit if no conflicts arise */
	Message LoreString
	/* Disable auto-commit even if no conflicts arise */
	NoCommit uint8
}

func NewLoreRevisionRevertArgs

func NewLoreRevisionRevertArgs(opts LoreRevisionRevertArgs) (LoreRevisionRevertArgsFFI, func())

type LoreRevisionRevertResolveArgs

type LoreRevisionRevertResolveArgs struct {
	/* Repository-relative paths to mark resolved */
	Paths []string
}

type LoreRevisionRevertResolveArgsFFI

type LoreRevisionRevertResolveArgsFFI struct {
	/* Repository-relative paths to mark resolved */
	Paths LoreStringArrayFFI
}

func NewLoreRevisionRevertResolveArgs

func NewLoreRevisionRevertResolveArgs(opts LoreRevisionRevertResolveArgs) (LoreRevisionRevertResolveArgsFFI, func())

type LoreRevisionRevertResolveMineArgs

type LoreRevisionRevertResolveMineArgs struct {
	/* Repository-relative paths to resolve in favor of "mine" */
	Paths []string
}

type LoreRevisionRevertResolveMineArgsFFI

type LoreRevisionRevertResolveMineArgsFFI struct {
	/* Repository-relative paths to resolve in favor of "mine" */
	Paths LoreStringArrayFFI
}

type LoreRevisionRevertResolveTheirsArgs

type LoreRevisionRevertResolveTheirsArgs struct {
	/* Repository-relative paths to resolve in favor of "theirs" */
	Paths []string
}

type LoreRevisionRevertResolveTheirsArgsFFI

type LoreRevisionRevertResolveTheirsArgsFFI struct {
	/* Repository-relative paths to resolve in favor of "theirs" */
	Paths LoreStringArrayFFI
}

type LoreRevisionRevertRestartArgs

type LoreRevisionRevertRestartArgs struct {
	/* Repository-relative paths to re-materialize for resolution */
	Paths []string
}

type LoreRevisionRevertRestartArgsFFI

type LoreRevisionRevertRestartArgsFFI struct {
	/* Repository-relative paths to re-materialize for resolution */
	Paths LoreStringArrayFFI
}

func NewLoreRevisionRevertRestartArgs

func NewLoreRevisionRevertRestartArgs(opts LoreRevisionRevertRestartArgs) (LoreRevisionRevertRestartArgsFFI, func())

type LoreRevisionRevertUnresolveArgs

type LoreRevisionRevertUnresolveArgs struct {
	/* Repository-relative paths to mark unresolved */
	Paths []string
}

type LoreRevisionRevertUnresolveArgsFFI

type LoreRevisionRevertUnresolveArgsFFI struct {
	/* Repository-relative paths to mark unresolved */
	Paths LoreStringArrayFFI
}

type LoreRevisionSyncArgs

type LoreRevisionSyncArgs struct {
	/* Revision to synchronize to; empty for branch tip */
	Revision string
	/* Fast forward and keep local changes when syncing to a local revision */
	ForwardChanges bool
	/* Reset local modified files to match the incoming revision */
	Reset bool
	/* Root files for dependency-based selective sync. A root file inside a link is skipped, and
	error code 9 (not supported) is returned when every root file is. */
	RootFiles []string
	/* Tags to filter dependencies by during resolution */
	DependencyTags []string
	/* Follow transitive dependencies recursively */
	DependencyRecursive bool
	/* Maximum dependency traversal depth; 0 means unlimited */
	DependencyDepthLimit uint32
	/* View filter file to leave the working files materialized under; empty to keep the view the
	instance holds */
	View string
}

type LoreRevisionSyncArgsFFI

type LoreRevisionSyncArgsFFI struct {
	/* Revision to synchronize to; empty for branch tip */
	Revision LoreString
	/* Fast forward and keep local changes when syncing to a local revision */
	ForwardChanges uint8
	/* Reset local modified files to match the incoming revision */
	Reset uint8
	/* Root files for dependency-based selective sync. A root file inside a link is skipped, and
	error code 9 (not supported) is returned when every root file is. */
	RootFiles LoreStringArrayFFI
	/* Tags to filter dependencies by during resolution */
	DependencyTags LoreStringArrayFFI
	/* Follow transitive dependencies recursively */
	DependencyRecursive uint8
	/* Maximum dependency traversal depth; 0 means unlimited */
	DependencyDepthLimit uint32
	/* View filter file to leave the working files materialized under; empty to keep the view the
	instance holds */
	View LoreString
}

func NewLoreRevisionSyncArgs

func NewLoreRevisionSyncArgs(opts LoreRevisionSyncArgs) (LoreRevisionSyncArgsFFI, func())

type LoreRevisionSyncFileEventData

type LoreRevisionSyncFileEventData struct {
	/* Path of the file, relative to the root of the working tree. */
	Path string
	/* Size of the file in bytes. */
	Size uint64
	/* Action applied to the file. */
	Action LoreFileAction
	/* Flag indicating the entry is a file rather than a directory. */
	FlagFile bool
}

type LoreRevisionSyncFileEventDataFFI

type LoreRevisionSyncFileEventDataFFI struct {
	/* Path of the file, relative to the root of the working tree. */
	Path LoreString
	/* Size of the file in bytes. */
	Size uint64
	/* Action applied to the file. */
	Action LoreFileAction
	/* Flag indicating the entry is a file rather than a directory. */
	FlagFile uint8
}

func (*LoreRevisionSyncFileEventDataFFI) Clone

type LoreRevisionSyncProgressEventData

type LoreRevisionSyncProgressEventData struct {
	/* Number of files updated so far. */
	FileUpdate uintptr
	/* Total number of files to update. */
	FileUpdateTotal uintptr
	/* Number of files deleted so far. */
	FileDelete uintptr
	/* Total number of files to delete, which can grow while a sync runs. */
	FileDeleteTotal uintptr
	/* Number of files merged automatically so far. */
	FileAutomerge uintptr
	/* Number of files with conflicts so far. */
	FileConflict uintptr
	/* Number of bytes updated so far. */
	BytesUpdate uint64
	/* Total number of bytes to update. */
	BytesUpdateTotal uint64
	/* Flag indicating discovery of the work to do has finished. */
	DiscoveryComplete bool
}

type LoreRevisionSyncProgressEventDataFFI

type LoreRevisionSyncProgressEventDataFFI struct {
	/* Number of files updated so far. */
	FileUpdate uintptr
	/* Total number of files to update. */
	FileUpdateTotal uintptr
	/* Number of files deleted so far. */
	FileDelete uintptr
	/* Total number of files to delete, which can grow while a sync runs. */
	FileDeleteTotal uintptr
	/* Number of files merged automatically so far. */
	FileAutomerge uintptr
	/* Number of files with conflicts so far. */
	FileConflict uintptr
	/* Number of bytes updated so far. */
	BytesUpdate uint64
	/* Total number of bytes to update. */
	BytesUpdateTotal uint64
	/* Flag indicating discovery of the work to do has finished. */
	DiscoveryComplete uint8
}

func (*LoreRevisionSyncProgressEventDataFFI) Clone

type LoreRevisionSyncRevisionEventData

type LoreRevisionSyncRevisionEventData struct {
	/* Branch (if any) */
	Branch LoreBranchId
	/* Resulting revision hash signature */
	Revision LoreHash
	/* Resulting revision number, or 0 if sync resulted in a merge */
	RevisionNumber uint64
	/* Sync resulted in a staged merge revision */
	FlagMerge bool
	/* Sync resulted in a staged merged revision with conflicts */
	FlagConflict bool
}

type LoreRevisionSyncRevisionEventDataFFI

type LoreRevisionSyncRevisionEventDataFFI struct {
	/* Branch (if any) */
	Branch LoreBranchId
	/* Resulting revision hash signature */
	Revision LoreHash
	/* Resulting revision number, or 0 if sync resulted in a merge */
	RevisionNumber uint64
	/* Sync resulted in a staged merge revision */
	FlagMerge uint8
	/* Sync resulted in a staged merged revision with conflicts */
	FlagConflict uint8
}

func (*LoreRevisionSyncRevisionEventDataFFI) Clone

type LoreRevisionSyncTargetEventData

type LoreRevisionSyncTargetEventData struct {
	/* Remote URL */
	Remote string
	/* Repository identifier */
	Repository LoreRepositoryId
	/* Branch identifier (if any) */
	Branch LoreBranchId
	/* Branch name (if any) */
	BranchName string
	/* Current (source) revision identifier */
	SourceRevision LoreHash
	/* Current (source) revision number */
	SourceRevisionNumber uint64
	/* Target revision identifier */
	TargetRevision LoreHash
	/* Target revision number */
	TargetRevisionNumber uint64
	/* Flag indicating revision is the latest revision of the branch */
	IsLatest bool
	/* Flag indicating revision was from local revision history, not remote */
	Local bool
	/* Remote configured for the repository. */
	RemoteAvailable bool
	/* Remote branch query returned an authoritative answer, identity is authorized to access the repository. */
	RemoteAuthorized bool
	/* No valid login reached the remote: none is stored for its server, it expired and could not
	be refreshed, or the remote rejected the token presented. */
	RemoteUnauthenticated bool
}

type LoreRevisionSyncTargetEventDataFFI

type LoreRevisionSyncTargetEventDataFFI struct {
	/* Remote URL */
	Remote LoreString
	/* Repository identifier */
	Repository LoreRepositoryId
	/* Branch identifier (if any) */
	Branch LoreBranchId
	/* Branch name (if any) */
	BranchName LoreString
	/* Current (source) revision identifier */
	SourceRevision LoreHash
	/* Current (source) revision number */
	SourceRevisionNumber uint64
	/* Target revision identifier */
	TargetRevision LoreHash
	/* Target revision number */
	TargetRevisionNumber uint64
	/* Flag indicating revision is the latest revision of the branch */
	IsLatest uint8
	/* Flag indicating revision was from local revision history, not remote */
	Local uint8
	/* Remote configured for the repository. */
	RemoteAvailable uint8
	/* Remote branch query returned an authoritative answer, identity is authorized to access the repository. */
	RemoteAuthorized uint8
	/* No valid login reached the remote: none is stored for its server, it expired and could not
	be refreshed, or the remote rejected the token presented. */
	RemoteUnauthenticated uint8
}

func (*LoreRevisionSyncTargetEventDataFFI) Clone

type LoreRevisionTree

type LoreRevisionTree struct {
	/* Registry key; `0` is the reserved invalid/unregistered sentinel (zero-init = null handle) */
	HandleId uint64
}

type LoreRevisionTreeAddArgs

type LoreRevisionTreeAddArgs struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to mutate */
	Handle LoreRevisionTree
	/* Nodes to add; each emits its own `ADD_COMPLETE` */
	Entries LoreRevisionTreeAddEntryArray
}

type LoreRevisionTreeAddArgsFFI

type LoreRevisionTreeAddArgsFFI struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to mutate */
	Handle LoreRevisionTree
	/* Nodes to add; each emits its own `ADD_COMPLETE` */
	Entries LoreRevisionTreeAddEntryArrayFFI
}

func NewLoreRevisionTreeAddArgs

func NewLoreRevisionTreeAddArgs(opts LoreRevisionTreeAddArgs) (LoreRevisionTreeAddArgsFFI, func())

type LoreRevisionTreeAddCompleteEventData

type LoreRevisionTreeAddCompleteEventData struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* The newly-added node. */
	NodeId uint32
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeAddCompleteEventDataFFI

type LoreRevisionTreeAddCompleteEventDataFFI struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* The newly-added node. */
	NodeId uint32
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeAddCompleteEventDataFFI) Clone

type LoreRevisionTreeAddEntry added in v0.8.6

type LoreRevisionTreeAddEntry struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `ADD_COMPLETE` */
	EntryId uint64
	/* Parent for the new node; the invalid-node sentinel selects `parent_entry_index` */
	ParentNodeId uint32
	/* Index of an earlier entry in this batch whose new node is the parent;
	read only when `parent_node_id` is the invalid-node sentinel */
	ParentEntryIndex uint32
	/* UTF-8 name of the new child within its parent */
	Name string
	/* `LoreNodeType` encoding: `DIRECTORY = 0`, `FILE = 1`, `LINK = 2` */
	Kind uint32
	/* Mode of the new node. Bits 0 to 12 hold the caller's mode, such as POSIX permission bits,
	of which Lore reads bit 0 as the executable bit. Bits 13 to 15 are reserved for Lore: an
	entry setting any of them is rejected with `LORE_ERROR_CODE_INVALID_ARGUMENTS`, and a node
	the entry restores keeps its own. */
	Mode uint16
	/* Content size in bytes (leaf nodes); `0` for a directory */
	Size uint64
	/* Content address `(hash, file_id context)` of the new node */
	Address LoreAddress
}

type LoreRevisionTreeAddEntryArray added in v0.8.6

type LoreRevisionTreeAddEntryArray = []LoreRevisionTreeAddEntry

type LoreRevisionTreeAddEntryArrayFFI added in v0.8.6

type LoreRevisionTreeAddEntryArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreRevisionTreeAddEntryArray added in v0.8.6

func NewLoreRevisionTreeAddEntryArray(arr []LoreRevisionTreeAddEntry) (LoreRevisionTreeAddEntryArrayFFI, func())

func (LoreRevisionTreeAddEntryArrayFFI) Clone added in v0.8.6

func (LoreRevisionTreeAddEntryArrayFFI) Get added in v0.8.6

func (LoreRevisionTreeAddEntryArrayFFI) Len added in v0.8.6

type LoreRevisionTreeAddEntryFFI added in v0.8.6

type LoreRevisionTreeAddEntryFFI struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `ADD_COMPLETE` */
	EntryId uint64
	/* Parent for the new node; the invalid-node sentinel selects `parent_entry_index` */
	ParentNodeId uint32
	/* Index of an earlier entry in this batch whose new node is the parent;
	read only when `parent_node_id` is the invalid-node sentinel */
	ParentEntryIndex uint32
	/* UTF-8 name of the new child within its parent */
	Name LoreString
	/* `LoreNodeType` encoding: `DIRECTORY = 0`, `FILE = 1`, `LINK = 2` */
	Kind uint32
	/* Mode of the new node. Bits 0 to 12 hold the caller's mode, such as POSIX permission bits,
	of which Lore reads bit 0 as the executable bit. Bits 13 to 15 are reserved for Lore: an
	entry setting any of them is rejected with `LORE_ERROR_CODE_INVALID_ARGUMENTS`, and a node
	the entry restores keeps its own. */
	Mode uint16
	/* Content size in bytes (leaf nodes); `0` for a directory */
	Size uint64
	/* Content address `(hash, file_id context)` of the new node */
	Address LoreAddress
}

func NewLoreRevisionTreeAddEntry added in v0.8.6

func NewLoreRevisionTreeAddEntry(opts LoreRevisionTreeAddEntry) (LoreRevisionTreeAddEntryFFI, func())

func (*LoreRevisionTreeAddEntryFFI) Clone added in v0.8.6

type LoreRevisionTreeBatchCompleteEventData added in v0.8.6

type LoreRevisionTreeBatchCompleteEventData struct {
	/* Correlation id the call was submitted under */
	BatchId uint64
	/* The outcome of the call as a whole */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeBatchCompleteEventDataFFI added in v0.8.6

type LoreRevisionTreeBatchCompleteEventDataFFI struct {
	/* Correlation id the call was submitted under */
	BatchId uint64
	/* The outcome of the call as a whole */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeBatchCompleteEventDataFFI) Clone added in v0.8.6

type LoreRevisionTreeChildEventData

type LoreRevisionTreeChildEventData struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* The child node. */
	NodeId uint32
	/* The name of the child node. */
	Name string
	/* The parent node. */
	ParentId uint32
	/* The kind of node. */
	Kind uint32
	/* The change staged on the node, as a `LoreNodeStagedAction`. A child
	staged for deletion is still listed, carrying the deletion here. */
	StagedAction uint32
	/* The node's mode, bits 0 to 12, the caller's, of which Lore reads bit 0 as the executable
	bit. Bits 13 to 15, which Lore reserves, read as zero. */
	Mode uint16
	/* The size of the node's content in bytes. */
	Size uint64
	/* The address of the node's content. */
	Address LoreAddress
	/* The outcome of the call. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeChildEventDataFFI

type LoreRevisionTreeChildEventDataFFI struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* The child node. */
	NodeId uint32
	/* The name of the child node. */
	Name LoreString
	/* The parent node. */
	ParentId uint32
	/* The kind of node. */
	Kind uint32
	/* The change staged on the node, as a `LoreNodeStagedAction`. A child
	staged for deletion is still listed, carrying the deletion here. */
	StagedAction uint32
	/* The node's mode, bits 0 to 12, the caller's, of which Lore reads bit 0 as the executable
	bit. Bits 13 to 15, which Lore reserves, read as zero. */
	Mode uint16
	/* The size of the node's content in bytes. */
	Size uint64
	/* The address of the node's content. */
	Address LoreAddress
	/* The outcome of the call. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeChildEventDataFFI) Clone

type LoreRevisionTreeCloseArgs

type LoreRevisionTreeCloseArgs struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Revision-tree handle to release */
	Handle LoreRevisionTree
	/* Non-zero to release the handle without flushing the stores of a closed storage handle.
	What no flush has written is lost once nothing holds the stores. */
	SkipFlush bool
}

type LoreRevisionTreeCloseArgsFFI

type LoreRevisionTreeCloseArgsFFI struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Revision-tree handle to release */
	Handle LoreRevisionTree
	/* Non-zero to release the handle without flushing the stores of a closed storage handle.
	What no flush has written is lost once nothing holds the stores. */
	SkipFlush uint8
}

func NewLoreRevisionTreeCloseArgs

func NewLoreRevisionTreeCloseArgs(opts LoreRevisionTreeCloseArgs) (LoreRevisionTreeCloseArgsFFI, func())

type LoreRevisionTreeCloseCompleteEventData

type LoreRevisionTreeCloseCompleteEventData struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* The outcome of the call. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeCloseCompleteEventDataFFI

type LoreRevisionTreeCloseCompleteEventDataFFI struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* The outcome of the call. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeCloseCompleteEventDataFFI) Clone

type LoreRevisionTreeCommitArgs

type LoreRevisionTreeCommitArgs struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Loaded revision-tree handle to freeze and commit */
	Handle LoreRevisionTree
	/* Commit tuneables: the upload and a merge revision's second parent */
	Options LoreRevisionTreeCommitOptions
}

type LoreRevisionTreeCommitArgsFFI

type LoreRevisionTreeCommitArgsFFI struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Loaded revision-tree handle to freeze and commit */
	Handle LoreRevisionTree
	/* Commit tuneables: the upload and a merge revision's second parent */
	Options LoreRevisionTreeCommitOptions
}

func NewLoreRevisionTreeCommitArgs

func NewLoreRevisionTreeCommitArgs(opts LoreRevisionTreeCommitArgs) (LoreRevisionTreeCommitArgsFFI, func())

type LoreRevisionTreeCommitCompleteEventData

type LoreRevisionTreeCommitCompleteEventData struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* The newly-committed revision. */
	RevisionHash LoreHash
	/* The observed branch tip when the branch had advanced. */
	NewTipHash LoreHash
	/* The outcome of the call. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeCommitCompleteEventDataFFI

type LoreRevisionTreeCommitCompleteEventDataFFI struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* The newly-committed revision. */
	RevisionHash LoreHash
	/* The observed branch tip when the branch had advanced. */
	NewTipHash LoreHash
	/* The outcome of the call. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeCommitCompleteEventDataFFI) Clone

type LoreRevisionTreeCommitOptions

type LoreRevisionTreeCommitOptions struct {
	/* Also upload the new revision to remote (local-only by default) */
	RemoteWrite bool
	/* The second parent, the merged revision; zero commits a revision with one parent. The
	revision the handle was loaded from is always the first parent, so a caller that records a
	merge revision loads the handle at the revision the branch continues and names the merged
	revision here. A merge revision needs a first parent: a handle loaded from the zero
	revision takes no second parent. */
	ParentOther LoreHash
}

type LoreRevisionTreeCommitOptionsFFI

type LoreRevisionTreeCommitOptionsFFI struct {
	/* Also upload the new revision to remote (local-only by default) */
	RemoteWrite uint8
	/* The second parent, the merged revision; zero commits a revision with one parent. The
	revision the handle was loaded from is always the first parent, so a caller that records a
	merge revision loads the handle at the revision the branch continues and names the merged
	revision here. A merge revision needs a first parent: a handle loaded from the zero
	revision takes no second parent. */
	ParentOther LoreHash
}

func NewLoreRevisionTreeCommitOptions

func NewLoreRevisionTreeCommitOptions(opts LoreRevisionTreeCommitOptions) (LoreRevisionTreeCommitOptionsFFI, func())

func (*LoreRevisionTreeCommitOptionsFFI) Clone

type LoreRevisionTreeDeleteArgs

type LoreRevisionTreeDeleteArgs struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to mutate */
	Handle LoreRevisionTree
	/* Subtrees to remove; each emits its own `DELETE_COMPLETE` */
	Entries LoreRevisionTreeDeleteEntryArray
}

type LoreRevisionTreeDeleteArgsFFI

type LoreRevisionTreeDeleteArgsFFI struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to mutate */
	Handle LoreRevisionTree
	/* Subtrees to remove; each emits its own `DELETE_COMPLETE` */
	Entries LoreRevisionTreeDeleteEntryArrayFFI
}

func NewLoreRevisionTreeDeleteArgs

func NewLoreRevisionTreeDeleteArgs(opts LoreRevisionTreeDeleteArgs) (LoreRevisionTreeDeleteArgsFFI, func())

type LoreRevisionTreeDeleteCompleteEventData

type LoreRevisionTreeDeleteCompleteEventData struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* How many nodes the entry's subtree removed, staged and discarded
	together. Zero on failure, whatever part of the subtree was removed. */
	NodeCount uint64
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeDeleteCompleteEventDataFFI

type LoreRevisionTreeDeleteCompleteEventDataFFI struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* How many nodes the entry's subtree removed, staged and discarded
	together. Zero on failure, whatever part of the subtree was removed. */
	NodeCount uint64
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeDeleteCompleteEventDataFFI) Clone

type LoreRevisionTreeDeleteEntry added in v0.9.0

type LoreRevisionTreeDeleteEntry struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `DELETE_COMPLETE` */
	EntryId uint64
	/* Root of the subtree to remove, including its transitive children */
	NodeId uint32
}

type LoreRevisionTreeDeleteEntryArray added in v0.9.0

type LoreRevisionTreeDeleteEntryArray = []LoreRevisionTreeDeleteEntry

type LoreRevisionTreeDeleteEntryArrayFFI added in v0.9.0

type LoreRevisionTreeDeleteEntryArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreRevisionTreeDeleteEntryArray added in v0.9.0

func NewLoreRevisionTreeDeleteEntryArray(arr []LoreRevisionTreeDeleteEntry) (LoreRevisionTreeDeleteEntryArrayFFI, func())

func (LoreRevisionTreeDeleteEntryArrayFFI) Clone added in v0.9.0

func (LoreRevisionTreeDeleteEntryArrayFFI) Get added in v0.9.0

func (LoreRevisionTreeDeleteEntryArrayFFI) Len added in v0.9.0

type LoreRevisionTreeDeleteEntryFFI added in v0.9.0

type LoreRevisionTreeDeleteEntryFFI struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `DELETE_COMPLETE` */
	EntryId uint64
	/* Root of the subtree to remove, including its transitive children */
	NodeId uint32
}

func NewLoreRevisionTreeDeleteEntry added in v0.9.0

func NewLoreRevisionTreeDeleteEntry(opts LoreRevisionTreeDeleteEntry) (LoreRevisionTreeDeleteEntryFFI, func())

func (*LoreRevisionTreeDeleteEntryFFI) Clone added in v0.9.0

type LoreRevisionTreeFFI

type LoreRevisionTreeFFI struct {
	/* Registry key; `0` is the reserved invalid/unregistered sentinel (zero-init = null handle) */
	HandleId uint64
}

func NewLoreRevisionTree

func NewLoreRevisionTree(opts LoreRevisionTree) (LoreRevisionTreeFFI, func())

func (*LoreRevisionTreeFFI) Clone

type LoreRevisionTreeInfoArgs added in v0.8.5

type LoreRevisionTreeInfoArgs struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Loaded revision-tree handle whose revision metadata is fetched */
	Handle LoreRevisionTree
}

type LoreRevisionTreeInfoArgsFFI added in v0.8.5

type LoreRevisionTreeInfoArgsFFI struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Loaded revision-tree handle whose revision metadata is fetched */
	Handle LoreRevisionTree
}

func NewLoreRevisionTreeInfoArgs added in v0.8.5

func NewLoreRevisionTreeInfoArgs(opts LoreRevisionTreeInfoArgs) (LoreRevisionTreeInfoArgsFFI, func())

type LoreRevisionTreeInfoEventData added in v0.8.5

type LoreRevisionTreeInfoEventData struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* Repository the revision belongs to. */
	Repository LoreRepositoryId
	/* The loaded revision. */
	Revision LoreHash
	/* The parent revision signatures. */
	Parent [2]LoreHash
	/* The time the revision was created. */
	CreationTimestamp int64
	/* The identity of the revision's author. */
	AuthorIdentity string
	/* The number of metadata keys on the revision. */
	MetadataKeyCount uint32
	/* The outcome: the code of the failure that ended it, while `Complete` reports the
	verb's own code. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeInfoEventDataFFI added in v0.8.5

type LoreRevisionTreeInfoEventDataFFI struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* Repository the revision belongs to. */
	Repository LoreRepositoryId
	/* The loaded revision. */
	Revision LoreHash
	/* The parent revision signatures. */
	Parent [2]LoreHash
	/* The time the revision was created. */
	CreationTimestamp int64
	/* The identity of the revision's author. */
	AuthorIdentity LoreString
	/* The number of metadata keys on the revision. */
	MetadataKeyCount uint32
	/* The outcome: the code of the failure that ended it, while `Complete` reports the
	verb's own code. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeInfoEventDataFFI) Clone added in v0.8.5

type LoreRevisionTreeListChildrenArgs

type LoreRevisionTreeListChildrenArgs struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Loaded revision-tree handle to read from */
	Handle LoreRevisionTree
	/* Directory node whose children are streamed */
	ParentNodeId uint32
}

type LoreRevisionTreeListChildrenArgsFFI

type LoreRevisionTreeListChildrenArgsFFI struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Loaded revision-tree handle to read from */
	Handle LoreRevisionTree
	/* Directory node whose children are streamed */
	ParentNodeId uint32
}

type LoreRevisionTreeListChildrenBeginEventData added in v0.8.5

type LoreRevisionTreeListChildrenBeginEventData struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* Repository the listed children belong to. */
	Repository LoreRepositoryId
	/* Revision the listed children belong to. */
	Revision LoreHash
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeListChildrenBeginEventDataFFI added in v0.8.5

type LoreRevisionTreeListChildrenBeginEventDataFFI struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* Repository the listed children belong to. */
	Repository LoreRepositoryId
	/* Revision the listed children belong to. */
	Revision LoreHash
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeListChildrenBeginEventDataFFI) Clone added in v0.8.5

type LoreRevisionTreeLoadArgs

type LoreRevisionTreeLoadArgs struct {
	/* Open storage handle the revision tree is loaded against */
	Store LoreStore
	/* Repository partition the loaded revision belongs to */
	Repository LorePartition
	/* Revision to open; `0` opens an empty tree for an initial commit */
	RevisionHash LoreHash
}

type LoreRevisionTreeLoadArgsFFI

type LoreRevisionTreeLoadArgsFFI struct {
	/* Open storage handle the revision tree is loaded against */
	Store LoreStore
	/* Repository partition the loaded revision belongs to */
	Repository LorePartition
	/* Revision to open; `0` opens an empty tree for an initial commit */
	RevisionHash LoreHash
}

func NewLoreRevisionTreeLoadArgs

func NewLoreRevisionTreeLoadArgs(opts LoreRevisionTreeLoadArgs) (LoreRevisionTreeLoadArgsFFI, func())

type LoreRevisionTreeLoadedEventData

type LoreRevisionTreeLoadedEventData struct {
	/* Registry id for the loaded revision tree. */
	HandleId uint64
}

type LoreRevisionTreeLoadedEventDataFFI

type LoreRevisionTreeLoadedEventDataFFI struct {
	/* Registry id for the loaded revision tree. */
	HandleId uint64
}

func (*LoreRevisionTreeLoadedEventDataFFI) Clone

type LoreRevisionTreeMetadataClearArgs added in v0.9.0

type LoreRevisionTreeMetadataClearArgs struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to mutate */
	Handle LoreRevisionTree
	/* Keys to remove; each emits its own `METADATA_CLEAR_COMPLETE` */
	Entries LoreRevisionTreeMetadataClearEntryArray
}

type LoreRevisionTreeMetadataClearArgsFFI added in v0.9.0

type LoreRevisionTreeMetadataClearArgsFFI struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to mutate */
	Handle LoreRevisionTree
	/* Keys to remove; each emits its own `METADATA_CLEAR_COMPLETE` */
	Entries LoreRevisionTreeMetadataClearEntryArrayFFI
}

func NewLoreRevisionTreeMetadataClearArgs added in v0.9.0

func NewLoreRevisionTreeMetadataClearArgs(opts LoreRevisionTreeMetadataClearArgs) (LoreRevisionTreeMetadataClearArgsFFI, func())

type LoreRevisionTreeMetadataClearCompleteEventData added in v0.9.0

type LoreRevisionTreeMetadataClearCompleteEventData struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* `1` when the key was present and has been removed, `0` when it was absent
	and the entry was a no-op. */
	Removed bool
	/* The outcome of the call. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeMetadataClearCompleteEventDataFFI added in v0.9.0

type LoreRevisionTreeMetadataClearCompleteEventDataFFI struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* `1` when the key was present and has been removed, `0` when it was absent
	and the entry was a no-op. */
	Removed uint8
	/* The outcome of the call. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeMetadataClearCompleteEventDataFFI) Clone added in v0.9.0

type LoreRevisionTreeMetadataClearEntry added in v0.9.0

type LoreRevisionTreeMetadataClearEntry struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `METADATA_CLEAR_COMPLETE` */
	EntryId uint64
	/* Metadata key to remove; a key that is not set is a no-op */
	Key string
}

type LoreRevisionTreeMetadataClearEntryArray added in v0.9.0

type LoreRevisionTreeMetadataClearEntryArray = []LoreRevisionTreeMetadataClearEntry

type LoreRevisionTreeMetadataClearEntryArrayFFI added in v0.9.0

type LoreRevisionTreeMetadataClearEntryArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreRevisionTreeMetadataClearEntryArray added in v0.9.0

func NewLoreRevisionTreeMetadataClearEntryArray(arr []LoreRevisionTreeMetadataClearEntry) (LoreRevisionTreeMetadataClearEntryArrayFFI, func())

func (LoreRevisionTreeMetadataClearEntryArrayFFI) Clone added in v0.9.0

func (LoreRevisionTreeMetadataClearEntryArrayFFI) Get added in v0.9.0

func (LoreRevisionTreeMetadataClearEntryArrayFFI) Len added in v0.9.0

type LoreRevisionTreeMetadataClearEntryFFI added in v0.9.0

type LoreRevisionTreeMetadataClearEntryFFI struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `METADATA_CLEAR_COMPLETE` */
	EntryId uint64
	/* Metadata key to remove; a key that is not set is a no-op */
	Key LoreString
}

func NewLoreRevisionTreeMetadataClearEntry added in v0.9.0

func NewLoreRevisionTreeMetadataClearEntry(opts LoreRevisionTreeMetadataClearEntry) (LoreRevisionTreeMetadataClearEntryFFI, func())

func (*LoreRevisionTreeMetadataClearEntryFFI) Clone added in v0.9.0

type LoreRevisionTreeMetadataGetArgs

type LoreRevisionTreeMetadataGetArgs struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to read from */
	Handle LoreRevisionTree
	/* `0` reads only the revision being built; `1` also falls back to the
	loaded revision for a key the handle has no entry for */
	IncludeRevision bool
	/* Keys to read; a key that resolves emits its own `METADATA_GET_COMPLETE` */
	Entries LoreRevisionTreeMetadataGetEntryArray
}

type LoreRevisionTreeMetadataGetArgsFFI

type LoreRevisionTreeMetadataGetArgsFFI struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to read from */
	Handle LoreRevisionTree
	/* `0` reads only the revision being built; `1` also falls back to the
	loaded revision for a key the handle has no entry for */
	IncludeRevision uint8
	/* Keys to read; a key that resolves emits its own `METADATA_GET_COMPLETE` */
	Entries LoreRevisionTreeMetadataGetEntryArrayFFI
}

type LoreRevisionTreeMetadataGetCompleteEventData

type LoreRevisionTreeMetadataGetCompleteEventData struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* The metadata key. */
	Key string
	/* The metadata value. */
	Value LoreMetadata
	/* The outcome of the call. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeMetadataGetCompleteEventDataFFI

type LoreRevisionTreeMetadataGetCompleteEventDataFFI struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* The metadata key. */
	Key LoreString
	/* The metadata value. */
	Value LoreMetadataFFI
	/* The outcome of the call. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeMetadataGetCompleteEventDataFFI) Clone

type LoreRevisionTreeMetadataGetEntry added in v0.9.0

type LoreRevisionTreeMetadataGetEntry struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `METADATA_GET_COMPLETE` */
	EntryId uint64
	/* Metadata key to read */
	Key string
}

type LoreRevisionTreeMetadataGetEntryArray added in v0.9.0

type LoreRevisionTreeMetadataGetEntryArray = []LoreRevisionTreeMetadataGetEntry

type LoreRevisionTreeMetadataGetEntryArrayFFI added in v0.9.0

type LoreRevisionTreeMetadataGetEntryArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreRevisionTreeMetadataGetEntryArray added in v0.9.0

func NewLoreRevisionTreeMetadataGetEntryArray(arr []LoreRevisionTreeMetadataGetEntry) (LoreRevisionTreeMetadataGetEntryArrayFFI, func())

func (LoreRevisionTreeMetadataGetEntryArrayFFI) Clone added in v0.9.0

func (LoreRevisionTreeMetadataGetEntryArrayFFI) Get added in v0.9.0

func (LoreRevisionTreeMetadataGetEntryArrayFFI) Len added in v0.9.0

type LoreRevisionTreeMetadataGetEntryFFI added in v0.9.0

type LoreRevisionTreeMetadataGetEntryFFI struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `METADATA_GET_COMPLETE` */
	EntryId uint64
	/* Metadata key to read */
	Key LoreString
}

func NewLoreRevisionTreeMetadataGetEntry added in v0.9.0

func NewLoreRevisionTreeMetadataGetEntry(opts LoreRevisionTreeMetadataGetEntry) (LoreRevisionTreeMetadataGetEntryFFI, func())

func (*LoreRevisionTreeMetadataGetEntryFFI) Clone added in v0.9.0

type LoreRevisionTreeMetadataSetArgs

type LoreRevisionTreeMetadataSetArgs struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to mutate */
	Handle LoreRevisionTree
	/* Pairs to record; each emits its own `METADATA_SET_COMPLETE` */
	Entries LoreRevisionTreeMetadataSetEntryArray
}

type LoreRevisionTreeMetadataSetArgsFFI

type LoreRevisionTreeMetadataSetArgsFFI struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to mutate */
	Handle LoreRevisionTree
	/* Pairs to record; each emits its own `METADATA_SET_COMPLETE` */
	Entries LoreRevisionTreeMetadataSetEntryArrayFFI
}

type LoreRevisionTreeMetadataSetCompleteEventData

type LoreRevisionTreeMetadataSetCompleteEventData struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* The outcome: the code of the failure that ended it, while `Complete` reports the
	verb's own code. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeMetadataSetCompleteEventDataFFI

type LoreRevisionTreeMetadataSetCompleteEventDataFFI struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* The outcome: the code of the failure that ended it, while `Complete` reports the
	verb's own code. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeMetadataSetCompleteEventDataFFI) Clone

type LoreRevisionTreeMetadataSetEntry added in v0.9.0

type LoreRevisionTreeMetadataSetEntry struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `METADATA_SET_COMPLETE` */
	EntryId uint64
	/* Metadata key; a later entry naming it overwrites this one */
	Key string
	/* Value to store, stored under the kind it carries */
	Value LoreMetadata
}

type LoreRevisionTreeMetadataSetEntryArray added in v0.9.0

type LoreRevisionTreeMetadataSetEntryArray = []LoreRevisionTreeMetadataSetEntry

type LoreRevisionTreeMetadataSetEntryArrayFFI added in v0.9.0

type LoreRevisionTreeMetadataSetEntryArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreRevisionTreeMetadataSetEntryArray added in v0.9.0

func NewLoreRevisionTreeMetadataSetEntryArray(arr []LoreRevisionTreeMetadataSetEntry) (LoreRevisionTreeMetadataSetEntryArrayFFI, func())

func (LoreRevisionTreeMetadataSetEntryArrayFFI) Clone added in v0.9.0

func (LoreRevisionTreeMetadataSetEntryArrayFFI) Get added in v0.9.0

func (LoreRevisionTreeMetadataSetEntryArrayFFI) Len added in v0.9.0

type LoreRevisionTreeMetadataSetEntryFFI added in v0.9.0

type LoreRevisionTreeMetadataSetEntryFFI struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `METADATA_SET_COMPLETE` */
	EntryId uint64
	/* Metadata key; a later entry naming it overwrites this one */
	Key LoreString
	/* Value to store, stored under the kind it carries */
	Value LoreMetadataFFI
}

func NewLoreRevisionTreeMetadataSetEntry added in v0.9.0

func NewLoreRevisionTreeMetadataSetEntry(opts LoreRevisionTreeMetadataSetEntry) (LoreRevisionTreeMetadataSetEntryFFI, func())

func (*LoreRevisionTreeMetadataSetEntryFFI) Clone added in v0.9.0

type LoreRevisionTreeModifyArgs

type LoreRevisionTreeModifyArgs struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to mutate */
	Handle LoreRevisionTree
	/* Nodes to rewrite; each emits its own `MODIFY_COMPLETE` */
	Entries LoreRevisionTreeModifyEntryArray
}

type LoreRevisionTreeModifyArgsFFI

type LoreRevisionTreeModifyArgsFFI struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to mutate */
	Handle LoreRevisionTree
	/* Nodes to rewrite; each emits its own `MODIFY_COMPLETE` */
	Entries LoreRevisionTreeModifyEntryArrayFFI
}

func NewLoreRevisionTreeModifyArgs

func NewLoreRevisionTreeModifyArgs(opts LoreRevisionTreeModifyArgs) (LoreRevisionTreeModifyArgsFFI, func())

type LoreRevisionTreeModifyCompleteEventData

type LoreRevisionTreeModifyCompleteEventData struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* The modified node. */
	NodeId uint32
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeModifyCompleteEventDataFFI

type LoreRevisionTreeModifyCompleteEventDataFFI struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* The modified node. */
	NodeId uint32
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeModifyCompleteEventDataFFI) Clone

type LoreRevisionTreeModifyEntry added in v0.9.0

type LoreRevisionTreeModifyEntry struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `MODIFY_COMPLETE` */
	EntryId uint64
	/* Leaf node to rewrite; non-leaf targets are rejected */
	NodeId uint32
	/* New mode. Bits 0 to 12 hold the caller's mode, such as POSIX permission bits, of which Lore
	reads bit 0 as the executable bit. Bits 13 to 15 are reserved for Lore, and the node keeps
	its own: an entry setting any of them is rejected with `LORE_ERROR_CODE_INVALID_ARGUMENTS`. */
	Mode uint16
	/* New content size in bytes */
	Size uint64
	/* New content address; a zero `context` preserves the node's file id */
	Address LoreAddress
}

type LoreRevisionTreeModifyEntryArray added in v0.9.0

type LoreRevisionTreeModifyEntryArray = []LoreRevisionTreeModifyEntry

type LoreRevisionTreeModifyEntryArrayFFI added in v0.9.0

type LoreRevisionTreeModifyEntryArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreRevisionTreeModifyEntryArray added in v0.9.0

func NewLoreRevisionTreeModifyEntryArray(arr []LoreRevisionTreeModifyEntry) (LoreRevisionTreeModifyEntryArrayFFI, func())

func (LoreRevisionTreeModifyEntryArrayFFI) Clone added in v0.9.0

func (LoreRevisionTreeModifyEntryArrayFFI) Get added in v0.9.0

func (LoreRevisionTreeModifyEntryArrayFFI) Len added in v0.9.0

type LoreRevisionTreeModifyEntryFFI added in v0.9.0

type LoreRevisionTreeModifyEntryFFI struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `MODIFY_COMPLETE` */
	EntryId uint64
	/* Leaf node to rewrite; non-leaf targets are rejected */
	NodeId uint32
	/* New mode. Bits 0 to 12 hold the caller's mode, such as POSIX permission bits, of which Lore
	reads bit 0 as the executable bit. Bits 13 to 15 are reserved for Lore, and the node keeps
	its own: an entry setting any of them is rejected with `LORE_ERROR_CODE_INVALID_ARGUMENTS`. */
	Mode uint16
	/* New content size in bytes */
	Size uint64
	/* New content address; a zero `context` preserves the node's file id */
	Address LoreAddress
}

func NewLoreRevisionTreeModifyEntry added in v0.9.0

func NewLoreRevisionTreeModifyEntry(opts LoreRevisionTreeModifyEntry) (LoreRevisionTreeModifyEntryFFI, func())

func (*LoreRevisionTreeModifyEntryFFI) Clone added in v0.9.0

type LoreRevisionTreeMoveArgs

type LoreRevisionTreeMoveArgs struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to mutate */
	Handle LoreRevisionTree
	/* Nodes to move; each emits its own `MOVE_COMPLETE` */
	Entries LoreRevisionTreeMoveEntryArray
}

type LoreRevisionTreeMoveArgsFFI

type LoreRevisionTreeMoveArgsFFI struct {
	/* Caller-chosen id echoed back as `batch_id` on `BATCH_COMPLETE` */
	BatchId uint64
	/* Loaded revision-tree handle to mutate */
	Handle LoreRevisionTree
	/* Nodes to move; each emits its own `MOVE_COMPLETE` */
	Entries LoreRevisionTreeMoveEntryArrayFFI
}

func NewLoreRevisionTreeMoveArgs

func NewLoreRevisionTreeMoveArgs(opts LoreRevisionTreeMoveArgs) (LoreRevisionTreeMoveArgsFFI, func())

type LoreRevisionTreeMoveCompleteEventData

type LoreRevisionTreeMoveCompleteEventData struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* The moved node. */
	NodeId uint32
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeMoveCompleteEventDataFFI

type LoreRevisionTreeMoveCompleteEventDataFFI struct {
	/* Correlation id of the entry this reports, not of the call. */
	EntryId uint64
	/* The moved node. */
	NodeId uint32
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeMoveCompleteEventDataFFI) Clone

type LoreRevisionTreeMoveEntry added in v0.9.0

type LoreRevisionTreeMoveEntry struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `MOVE_COMPLETE` */
	EntryId uint64
	/* Node to move; its `file_id` is preserved across the move */
	NodeId uint32
	/* Parent node the moved node is reparented under; its current parent renames it */
	DestinationParentId uint32
	/* UTF-8 name the moved node takes at the destination */
	DstName string
}

type LoreRevisionTreeMoveEntryArray added in v0.9.0

type LoreRevisionTreeMoveEntryArray = []LoreRevisionTreeMoveEntry

type LoreRevisionTreeMoveEntryArrayFFI added in v0.9.0

type LoreRevisionTreeMoveEntryArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreRevisionTreeMoveEntryArray added in v0.9.0

func NewLoreRevisionTreeMoveEntryArray(arr []LoreRevisionTreeMoveEntry) (LoreRevisionTreeMoveEntryArrayFFI, func())

func (LoreRevisionTreeMoveEntryArrayFFI) Clone added in v0.9.0

func (LoreRevisionTreeMoveEntryArrayFFI) Get added in v0.9.0

func (LoreRevisionTreeMoveEntryArrayFFI) Len added in v0.9.0

type LoreRevisionTreeMoveEntryFFI added in v0.9.0

type LoreRevisionTreeMoveEntryFFI struct {
	/* Caller-chosen id echoed back as `entry_id` on this entry's `MOVE_COMPLETE` */
	EntryId uint64
	/* Node to move; its `file_id` is preserved across the move */
	NodeId uint32
	/* Parent node the moved node is reparented under; its current parent renames it */
	DestinationParentId uint32
	/* UTF-8 name the moved node takes at the destination */
	DstName LoreString
}

func NewLoreRevisionTreeMoveEntry added in v0.9.0

func NewLoreRevisionTreeMoveEntry(opts LoreRevisionTreeMoveEntry) (LoreRevisionTreeMoveEntryFFI, func())

func (*LoreRevisionTreeMoveEntryFFI) Clone added in v0.9.0

type LoreRevisionTreeNodeInfoArgs

type LoreRevisionTreeNodeInfoArgs struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Loaded revision-tree handle to read from */
	Handle LoreRevisionTree
	/* Node whose record is fetched */
	NodeId uint32
}

type LoreRevisionTreeNodeInfoArgsFFI

type LoreRevisionTreeNodeInfoArgsFFI struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Loaded revision-tree handle to read from */
	Handle LoreRevisionTree
	/* Node whose record is fetched */
	NodeId uint32
}

func NewLoreRevisionTreeNodeInfoArgs

func NewLoreRevisionTreeNodeInfoArgs(opts LoreRevisionTreeNodeInfoArgs) (LoreRevisionTreeNodeInfoArgsFFI, func())

type LoreRevisionTreeNodeInfoEventData

type LoreRevisionTreeNodeInfoEventData struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* The queried node. */
	NodeId uint32
	/* Repository the node belongs to. */
	Repository LoreRepositoryId
	/* Revision the node belongs to. */
	Revision LoreHash
	/* The name of the node. */
	Name string
	/* The parent node. */
	ParentId uint32
	/* The kind of node. */
	Kind uint32
	/* The change staged on the node, as a `LoreNodeStagedAction`. A node
	staged for deletion still reports, carrying the deletion here. */
	StagedAction uint32
	/* The node's mode, bits 0 to 12, the caller's, of which Lore reads bit 0 as the executable
	bit. Bits 13 to 15, which Lore reserves, read as zero. */
	Mode uint16
	/* The size of the node's content in bytes. */
	Size uint64
	/* The address of the node's content. */
	Address LoreAddress
	/* The preserved file id of the node. */
	FileId LoreContext
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeNodeInfoEventDataFFI

type LoreRevisionTreeNodeInfoEventDataFFI struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* The queried node. */
	NodeId uint32
	/* Repository the node belongs to. */
	Repository LoreRepositoryId
	/* Revision the node belongs to. */
	Revision LoreHash
	/* The name of the node. */
	Name LoreString
	/* The parent node. */
	ParentId uint32
	/* The kind of node. */
	Kind uint32
	/* The change staged on the node, as a `LoreNodeStagedAction`. A node
	staged for deletion still reports, carrying the deletion here. */
	StagedAction uint32
	/* The node's mode, bits 0 to 12, the caller's, of which Lore reads bit 0 as the executable
	bit. Bits 13 to 15, which Lore reserves, read as zero. */
	Mode uint16
	/* The size of the node's content in bytes. */
	Size uint64
	/* The address of the node's content. */
	Address LoreAddress
	/* The preserved file id of the node. */
	FileId LoreContext
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeNodeInfoEventDataFFI) Clone

type LoreRevisionTreeNodePathArgs

type LoreRevisionTreeNodePathArgs struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Loaded revision-tree handle to read from */
	Handle LoreRevisionTree
	/* Node whose full UTF-8 path is reconstructed by walking parents */
	NodeId uint32
}

type LoreRevisionTreeNodePathArgsFFI

type LoreRevisionTreeNodePathArgsFFI struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Loaded revision-tree handle to read from */
	Handle LoreRevisionTree
	/* Node whose full UTF-8 path is reconstructed by walking parents */
	NodeId uint32
}

func NewLoreRevisionTreeNodePathArgs

func NewLoreRevisionTreeNodePathArgs(opts LoreRevisionTreeNodePathArgs) (LoreRevisionTreeNodePathArgsFFI, func())

type LoreRevisionTreeNodePathEventData

type LoreRevisionTreeNodePathEventData struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* Repository the path was reconstructed in. */
	Repository LoreRepositoryId
	/* Revision the path was reconstructed in. */
	Revision LoreHash
	/* The reconstructed path from the root to the queried node. */
	Path string
	/* The outcome of the call. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeNodePathEventDataFFI

type LoreRevisionTreeNodePathEventDataFFI struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* Repository the path was reconstructed in. */
	Repository LoreRepositoryId
	/* Revision the path was reconstructed in. */
	Revision LoreHash
	/* The reconstructed path from the root to the queried node. */
	Path LoreString
	/* The outcome of the call. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeNodePathEventDataFFI) Clone

type LoreRevisionTreeResolvePathArgs

type LoreRevisionTreeResolvePathArgs struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Loaded revision-tree handle to resolve against */
	Handle LoreRevisionTree
	/* UTF-8 path relative to the tree root; empty resolves to the root node */
	Path string
}

type LoreRevisionTreeResolvePathArgsFFI

type LoreRevisionTreeResolvePathArgsFFI struct {
	/* Per-call correlation id echoed back in events */
	Id uint64
	/* Loaded revision-tree handle to resolve against */
	Handle LoreRevisionTree
	/* UTF-8 path relative to the tree root; empty resolves to the root node */
	Path LoreString
}

type LoreRevisionTreeResolvePathCompleteEventData

type LoreRevisionTreeResolvePathCompleteEventData struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* The resolved node. */
	NodeId uint32
	/* Repository the resolved node belongs to. */
	Repository LoreRepositoryId
	/* Revision the resolved node belongs to. */
	Revision LoreHash
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

type LoreRevisionTreeResolvePathCompleteEventDataFFI

type LoreRevisionTreeResolvePathCompleteEventDataFFI struct {
	/* Correlation id of the originating call. */
	Id uint64
	/* The resolved node. */
	NodeId uint32
	/* Repository the resolved node belongs to. */
	Repository LoreRepositoryId
	/* Revision the resolved node belongs to. */
	Revision LoreHash
	/* The outcome: on a failure of the State, any code of the State's error set, while
	`Complete` reports the verb's own code. */
	ErrorCode LoreErrorCode
}

func (*LoreRevisionTreeResolvePathCompleteEventDataFFI) Clone

type LoreScopeArchiveArgs added in v0.15.0

type LoreScopeArchiveArgs struct {
	/* ID of the scope */
	Id string
}

type LoreScopeArchiveArgsFFI added in v0.15.0

type LoreScopeArchiveArgsFFI struct {
	/* ID of the scope */
	Id LoreString
}

func NewLoreScopeArchiveArgs added in v0.15.0

func NewLoreScopeArchiveArgs(opts LoreScopeArchiveArgs) (LoreScopeArchiveArgsFFI, func())

type LoreScopeCreateArgs added in v0.15.0

type LoreScopeCreateArgs struct {
	/* Name of the scope */
	Name string
	/* ID of the scope, empty for a new ID. An archived scope's ID restores the scope under the
	name */
	Id string
}

type LoreScopeCreateArgsFFI added in v0.15.0

type LoreScopeCreateArgsFFI struct {
	/* Name of the scope */
	Name LoreString
	/* ID of the scope, empty for a new ID. An archived scope's ID restores the scope under the
	name */
	Id LoreString
}

func NewLoreScopeCreateArgs added in v0.15.0

func NewLoreScopeCreateArgs(opts LoreScopeCreateArgs) (LoreScopeCreateArgsFFI, func())

type LoreScopeEventData added in v0.15.0

type LoreScopeEventData struct {
	/* Scope ID. */
	Id LoreScopeId
	/* Scope name, empty for an archived scope. */
	Name string
	/* Identifier of the user who created the scope, empty for the default scope and in a dry run. */
	Creator string
	/* Creation time of the scope, in milliseconds since the Unix epoch, zero for the default
	scope and in a dry run. */
	Created uint64
	/* Set when the scope has been archived. */
	Archived bool
}

type LoreScopeEventDataFFI added in v0.15.0

type LoreScopeEventDataFFI struct {
	/* Scope ID. */
	Id LoreScopeId
	/* Scope name, empty for an archived scope. */
	Name LoreString
	/* Identifier of the user who created the scope, empty for the default scope and in a dry run. */
	Creator LoreString
	/* Creation time of the scope, in milliseconds since the Unix epoch, zero for the default
	scope and in a dry run. */
	Created uint64
	/* Set when the scope has been archived. */
	Archived uint8
}

func (*LoreScopeEventDataFFI) Clone added in v0.15.0

type LoreScopeId added in v0.15.0

type LoreScopeId LoreContext

func (LoreScopeId) Clone added in v0.15.0

func (c LoreScopeId) Clone() LoreScopeId

func (LoreScopeId) String added in v0.15.0

func (c LoreScopeId) String() string

String returns the context as a lowercase hexadecimal string Implements fmt.Stringer interface

type LoreScopeInfoArgs added in v0.15.0

type LoreScopeInfoArgs struct {
	/* ID of the scope, which names an archived scope too, or name of a live scope */
	Scope string
}

type LoreScopeInfoArgsFFI added in v0.15.0

type LoreScopeInfoArgsFFI struct {
	/* ID of the scope, which names an archived scope too, or name of a live scope */
	Scope LoreString
}

func NewLoreScopeInfoArgs added in v0.15.0

func NewLoreScopeInfoArgs(opts LoreScopeInfoArgs) (LoreScopeInfoArgsFFI, func())

type LoreScopeRenameArgs added in v0.15.0

type LoreScopeRenameArgs struct {
	/* ID of the scope */
	Id string
	/* New name of the scope */
	Name string
}

type LoreScopeRenameArgsFFI added in v0.15.0

type LoreScopeRenameArgsFFI struct {
	/* ID of the scope */
	Id LoreString
	/* New name of the scope */
	Name LoreString
}

func NewLoreScopeRenameArgs added in v0.15.0

func NewLoreScopeRenameArgs(opts LoreScopeRenameArgs) (LoreScopeRenameArgsFFI, func())

type LoreServiceMessageEventData added in v0.11.0

type LoreServiceMessageEventData struct {
	/* The severity level of the log message. */
	Level LoreLogLevel
	/* The log message text. */
	Message string
}

type LoreServiceMessageEventDataFFI added in v0.11.0

type LoreServiceMessageEventDataFFI struct {
	/* The severity level of the log message. */
	Level LoreLogLevel
	/* The log message text. */
	Message LoreString
}

func (*LoreServiceMessageEventDataFFI) Clone added in v0.11.0

type LoreServiceSetExecutableArgs added in v0.10.0

type LoreServiceSetExecutableArgs struct {
	/* Path of the executable to start as the service. Empty clears the setting,
	which prevents auto-starting the service but can still can connect to an
	already running service. */
	Executable string
}

type LoreServiceSetExecutableArgsFFI added in v0.10.0

type LoreServiceSetExecutableArgsFFI struct {
	/* Path of the executable to start as the service. Empty clears the setting,
	which prevents auto-starting the service but can still can connect to an
	already running service. */
	Executable LoreString
}

func NewLoreServiceSetExecutableArgs added in v0.10.0

func NewLoreServiceSetExecutableArgs(opts LoreServiceSetExecutableArgs) (LoreServiceSetExecutableArgsFFI, func())

type LoreServiceSetExternalDirectoryArgs added in v0.15.0

type LoreServiceSetExternalDirectoryArgs struct {
	/* The new external root: an absolute path, one relative to the caller's working directory,
	or empty for the default location in the global data directory. */
	Path string
	/* Point the setting at `path`, a root that holds the marker of this global data directory's
	root ID and generation, or any marker where `external-root` is missing, and move nothing. */
	Adopt bool
	/* Give up the unavailable current root for a new, empty one at `path`, and move nothing. */
	Abandon bool
}

type LoreServiceSetExternalDirectoryArgsFFI added in v0.15.0

type LoreServiceSetExternalDirectoryArgsFFI struct {
	/* The new external root: an absolute path, one relative to the caller's working directory,
	or empty for the default location in the global data directory. */
	Path LoreString
	/* Point the setting at `path`, a root that holds the marker of this global data directory's
	root ID and generation, or any marker where `external-root` is missing, and move nothing. */
	Adopt uint8
	/* Give up the unavailable current root for a new, empty one at `path`, and move nothing. */
	Abandon uint8
}

func NewLoreServiceSetExternalDirectoryArgs added in v0.15.0

func NewLoreServiceSetExternalDirectoryArgs(opts LoreServiceSetExternalDirectoryArgs) (LoreServiceSetExternalDirectoryArgsFFI, func())

type LoreServiceSetUseAutomaticallyArgs added in v0.10.0

type LoreServiceSetUseAutomaticallyArgs struct {
	/* Carry out commands in the service rather than in the process that was run */
	Enabled bool
}

type LoreServiceSetUseAutomaticallyArgsFFI added in v0.10.0

type LoreServiceSetUseAutomaticallyArgsFFI struct {
	/* Carry out commands in the service rather than in the process that was run */
	Enabled uint8
}

func NewLoreServiceSetUseAutomaticallyArgs added in v0.10.0

func NewLoreServiceSetUseAutomaticallyArgs(opts LoreServiceSetUseAutomaticallyArgs) (LoreServiceSetUseAutomaticallyArgsFFI, func())

type LoreServiceStartArgs

type LoreServiceStartArgs struct {
	Unused int
}

type LoreServiceStartArgsFFI

type LoreServiceStartArgsFFI struct {
	Unused int
}

func NewLoreServiceStartArgs

func NewLoreServiceStartArgs(opts LoreServiceStartArgs) (LoreServiceStartArgsFFI, func())

type LoreServiceStatusArgs added in v0.11.0

type LoreServiceStatusArgs struct {
	Unused int
}

type LoreServiceStatusArgsFFI added in v0.11.0

type LoreServiceStatusArgsFFI struct {
	Unused int
}

func NewLoreServiceStatusArgs added in v0.11.0

func NewLoreServiceStatusArgs(opts LoreServiceStatusArgs) (LoreServiceStatusArgsFFI, func())

type LoreServiceStatusEventData added in v0.11.0

type LoreServiceStatusEventData struct {
	/* Whether the service is running: 1 for running, 0 for not running. */
	Running bool
	/* Path to the service binary. */
	BinaryPath string
	/* Milliseconds since the service started. */
	UptimeMs uint64
	/* Number of active client connections. */
	ConnectionCount uint32
	/* Number of SWFS mounts currently active. */
	SwfsMountCount uint32
	/* The path of the caller's external root, empty where its setting can't be read or there is
	no global data directory. Reported whether or not the service is running. */
	ExternalRoot string
	/* Whether the external root can be used. Reported whether or not the service is running. */
	ExternalRootState LoreExternalRootState
	/* The number of old external directory roots listed to be removed, 0 where the list can't be
	read. Reported whether or not the service is running. */
	ExternalLeftovers uint32
	/* Whether the service runs inside a program that doesn't serve from its own executable, as the
	Lore CLI does: 1 if so, else 0. */
	Embedded bool
	/* The canonical path of each global data directory the service mounts virtual instances
	for. */
	MountedGlobalDataDirectories []string
	/* The path of each virtual instance the service mounts. */
	MountedPaths []string
	/* The service's process ID. */
	ProcessId uint32
}

type LoreServiceStatusEventDataFFI added in v0.11.0

type LoreServiceStatusEventDataFFI struct {
	/* Whether the service is running: 1 for running, 0 for not running. */
	Running uint8
	/* Path to the service binary. */
	BinaryPath LoreString
	/* Milliseconds since the service started. */
	UptimeMs uint64
	/* Number of active client connections. */
	ConnectionCount uint32
	/* Number of SWFS mounts currently active. */
	SwfsMountCount uint32
	/* The path of the caller's external root, empty where its setting can't be read or there is
	no global data directory. Reported whether or not the service is running. */
	ExternalRoot LoreString
	/* Whether the external root can be used. Reported whether or not the service is running. */
	ExternalRootState LoreExternalRootState
	/* The number of old external directory roots listed to be removed, 0 where the list can't be
	read. Reported whether or not the service is running. */
	ExternalLeftovers uint32
	/* Whether the service runs inside a program that doesn't serve from its own executable, as the
	Lore CLI does: 1 if so, else 0. */
	Embedded uint8
	/* The canonical path of each global data directory the service mounts virtual instances
	for. */
	MountedGlobalDataDirectories LoreStringArrayFFI
	/* The path of each virtual instance the service mounts. */
	MountedPaths LoreStringArrayFFI
	/* The service's process ID. */
	ProcessId uint32
}

func (*LoreServiceStatusEventDataFFI) Clone added in v0.11.0

type LoreServiceStopArgs

type LoreServiceStopArgs struct {
	Unused int
}

type LoreServiceStopArgsFFI

type LoreServiceStopArgsFFI struct {
	Unused int
}

func NewLoreServiceStopArgs

func NewLoreServiceStopArgs(opts LoreServiceStopArgs) (LoreServiceStopArgsFFI, func())

type LoreSharedStoreCreateArgs

type LoreSharedStoreCreateArgs struct {
	/* Remote URL backing the store */
	RemoteUrl string
	/* Path where the store will be created; empty string uses the default location */
	Path string
	/* Set this as the default shared store in the global config */
	MakeDefault bool
	/* Bytes the store holds before compaction reclaims space; 0 uses the default of 10 GiB */
	MaxSize uint64
	/* Fragments the store holds before eviction removes some; 0 uses the default of 2000000. The
	periodic eviction pass treats a value below 1048576 as 1048576 */
	MaxCapacity uint64
}

type LoreSharedStoreCreateArgsFFI

type LoreSharedStoreCreateArgsFFI struct {
	/* Remote URL backing the store */
	RemoteUrl LoreString
	/* Path where the store will be created; empty string uses the default location */
	Path LoreString
	/* Set this as the default shared store in the global config */
	MakeDefault uint8
	/* Bytes the store holds before compaction reclaims space; 0 uses the default of 10 GiB */
	MaxSize uint64
	/* Fragments the store holds before eviction removes some; 0 uses the default of 2000000. The
	periodic eviction pass treats a value below 1048576 as 1048576 */
	MaxCapacity uint64
}

func NewLoreSharedStoreCreateArgs

func NewLoreSharedStoreCreateArgs(opts LoreSharedStoreCreateArgs) (LoreSharedStoreCreateArgsFFI, func())

type LoreSharedStoreCreateEventData

type LoreSharedStoreCreateEventData struct {
	/* Filesystem path of the created shared store. */
	Path string
}

type LoreSharedStoreCreateEventDataFFI

type LoreSharedStoreCreateEventDataFFI struct {
	/* Filesystem path of the created shared store. */
	Path LoreString
}

func (*LoreSharedStoreCreateEventDataFFI) Clone

type LoreSharedStoreInfoArgs

type LoreSharedStoreInfoArgs struct {
	Unused int
}

type LoreSharedStoreInfoArgsFFI

type LoreSharedStoreInfoArgsFFI struct {
	Unused int
}

func NewLoreSharedStoreInfoArgs

func NewLoreSharedStoreInfoArgs(opts LoreSharedStoreInfoArgs) (LoreSharedStoreInfoArgsFFI, func())

type LoreSharedStoreInfoEventData

type LoreSharedStoreInfoEventData struct {
	/* Nonzero when a shared store is used automatically for the repository. */
	UseAutomatically bool
	/* Remote URLs of the shared stores. */
	RemoteUrls []string
	/* Filesystem paths of the shared stores. */
	Paths []string
	/* Per-store flag, nonzero when the store exists on disk. */
	Exists []bool
}

type LoreSharedStoreInfoEventDataFFI

type LoreSharedStoreInfoEventDataFFI struct {
	/* Nonzero when a shared store is used automatically for the repository. */
	UseAutomatically uint8
	/* Remote URLs of the shared stores. */
	RemoteUrls LoreStringArrayFFI
	/* Filesystem paths of the shared stores. */
	Paths LoreStringArrayFFI
	/* Per-store flag, nonzero when the store exists on disk. */
	Exists LoreUint8ArrayFFI
}

func (*LoreSharedStoreInfoEventDataFFI) Clone

type LoreSharedStoreListArgs added in v0.10.1

type LoreSharedStoreListArgs struct {
	/* Whether to load each shared store to search for each instance using it. A store another
	process still holds after the listing's wait is listed without its instances. */
	IncludeInstances bool
}

type LoreSharedStoreListArgsFFI added in v0.10.1

type LoreSharedStoreListArgsFFI struct {
	/* Whether to load each shared store to search for each instance using it. A store another
	process still holds after the listing's wait is listed without its instances. */
	IncludeInstances uint8
}

func NewLoreSharedStoreListArgs added in v0.10.1

func NewLoreSharedStoreListArgs(opts LoreSharedStoreListArgs) (LoreSharedStoreListArgsFFI, func())

type LoreSharedStoreListEventData added in v0.10.0

type LoreSharedStoreListEventData struct {
	/* All stores from the registry. */
	Stores LoreSharedStoreListItemArray
}

type LoreSharedStoreListEventDataFFI added in v0.10.0

type LoreSharedStoreListEventDataFFI struct {
	/* All stores from the registry. */
	Stores LoreSharedStoreListItemArrayFFI
}

func (*LoreSharedStoreListEventDataFFI) Clone added in v0.10.0

type LoreSharedStoreListItem added in v0.10.0

type LoreSharedStoreListItem struct {
	/* Remote URL the shared store is for. */
	RemoteUrl string
	/* Path to the shared store on disk. */
	StorePath string
	/* Paths to instances using the shared store, empty for a store listed without its instances. */
	InstancePaths []string
	/* Ids of instances using the shared store, empty for a store listed without its instances. */
	InstanceIds LoreInstanceIdArray
}

type LoreSharedStoreListItemArray added in v0.10.0

type LoreSharedStoreListItemArray = []LoreSharedStoreListItem

type LoreSharedStoreListItemArrayFFI added in v0.10.0

type LoreSharedStoreListItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreSharedStoreListItemArray added in v0.10.0

func NewLoreSharedStoreListItemArray(arr []LoreSharedStoreListItem) (LoreSharedStoreListItemArrayFFI, func())

func (LoreSharedStoreListItemArrayFFI) Clone added in v0.10.0

func (LoreSharedStoreListItemArrayFFI) Get added in v0.10.0

func (LoreSharedStoreListItemArrayFFI) Len added in v0.10.0

type LoreSharedStoreListItemFFI added in v0.10.0

type LoreSharedStoreListItemFFI struct {
	/* Remote URL the shared store is for. */
	RemoteUrl LoreString
	/* Path to the shared store on disk. */
	StorePath LoreString
	/* Paths to instances using the shared store, empty for a store listed without its instances. */
	InstancePaths LoreStringArrayFFI
	/* Ids of instances using the shared store, empty for a store listed without its instances. */
	InstanceIds LoreInstanceIdArrayFFI
}

func NewLoreSharedStoreListItem added in v0.10.0

func NewLoreSharedStoreListItem(opts LoreSharedStoreListItem) (LoreSharedStoreListItemFFI, func())

func (*LoreSharedStoreListItemFFI) Clone added in v0.10.0

type LoreSharedStoreMode added in v0.9.0

type LoreSharedStoreMode int32
const (
	LoreSharedStoreMode_INHERIT  LoreSharedStoreMode = 0
	LoreSharedStoreMode_ENABLED  LoreSharedStoreMode = 1
	LoreSharedStoreMode_DISABLED LoreSharedStoreMode = 2
)

type LoreSharedStoreSetUseAutomaticallyArgs

type LoreSharedStoreSetUseAutomaticallyArgs struct {
	/* Automatically use the shared store */
	Enabled bool
}

type LoreSharedStoreSetUseAutomaticallyArgsFFI

type LoreSharedStoreSetUseAutomaticallyArgsFFI struct {
	/* Automatically use the shared store */
	Enabled uint8
}

type LoreStorageCloseArgs

type LoreStorageCloseArgs struct {
	/* Handle to release; from `LORE_EVENT_STORAGE_OPENED` */
	Handle LoreStore
	/* Non-zero to release the handle without flushing its stores. What the handle, and the
	revision trees closed while it was open, wrote that no flush has written is lost once
	nothing holds the stores. */
	SkipFlush bool
}

type LoreStorageCloseArgsFFI

type LoreStorageCloseArgsFFI struct {
	/* Handle to release; from `LORE_EVENT_STORAGE_OPENED` */
	Handle LoreStore
	/* Non-zero to release the handle without flushing its stores. What the handle, and the
	revision trees closed while it was open, wrote that no flush has written is lost once
	nothing holds the stores. */
	SkipFlush uint8
}

func NewLoreStorageCloseArgs

func NewLoreStorageCloseArgs(opts LoreStorageCloseArgs) (LoreStorageCloseArgsFFI, func())

type LoreStorageCopyArgs

type LoreStorageCopyArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Copy requests; each runs independently and emits its own `COPY_ITEM_COMPLETE` */
	Items LoreStorageCopyItemArray
}

type LoreStorageCopyArgsFFI

type LoreStorageCopyArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Copy requests; each runs independently and emits its own `COPY_ITEM_COMPLETE` */
	Items LoreStorageCopyItemArrayFFI
}

func NewLoreStorageCopyArgs

func NewLoreStorageCopyArgs(opts LoreStorageCopyArgs) (LoreStorageCopyArgsFFI, func())

type LoreStorageCopyItem

type LoreStorageCopyItem struct {
	/* Caller-chosen id echoed back in `COPY_ITEM_COMPLETE` */
	Id uint64
	/* Source partition; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	SourcePartition LorePartition
	/* Destination partition; zero/default rejects, as does an exact `(source_partition, source
	context)` match (no-op) — a different `target_context` enables in-partition duplication */
	TargetPartition LorePartition
	/* Source content address; its `hash` carries over to the destination address unchanged */
	SourceAddress LoreAddress
	/* Dedup tag for the destination address `(target_partition, source_address.hash,
	target_context)`; may match the source tag or re-tag the payload */
	TargetContext LoreContext
}

type LoreStorageCopyItemArray

type LoreStorageCopyItemArray = []LoreStorageCopyItem

type LoreStorageCopyItemArrayFFI

type LoreStorageCopyItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStorageCopyItemArray

func NewLoreStorageCopyItemArray(arr []LoreStorageCopyItem) (LoreStorageCopyItemArrayFFI, func())

func (LoreStorageCopyItemArrayFFI) Clone

func (LoreStorageCopyItemArrayFFI) Get

func (LoreStorageCopyItemArrayFFI) Len

func (arr LoreStorageCopyItemArrayFFI) Len() int

type LoreStorageCopyItemCompleteEventData

type LoreStorageCopyItemCompleteEventData struct {
	/* Correlation id of the item. */
	Id uint64
	/* The partition the item was copied from. */
	SourcePartition LorePartition
	/* The partition the item was copied to. */
	TargetPartition LorePartition
	/* The address of the item in the source. */
	SourceAddress LoreAddress
	/* The context of the item in the target. */
	TargetContext LoreContext
	/* The outcome for the item. */
	Error LoreErrorDetail
}

type LoreStorageCopyItemCompleteEventDataFFI

type LoreStorageCopyItemCompleteEventDataFFI struct {
	/* Correlation id of the item. */
	Id uint64
	/* The partition the item was copied from. */
	SourcePartition LorePartition
	/* The partition the item was copied to. */
	TargetPartition LorePartition
	/* The address of the item in the source. */
	SourceAddress LoreAddress
	/* The context of the item in the target. */
	TargetContext LoreContext
	/* The outcome for the item. */
	Error LoreErrorDetailFFI
}

func (*LoreStorageCopyItemCompleteEventDataFFI) Clone

type LoreStorageCopyItemFFI

type LoreStorageCopyItemFFI struct {
	/* Caller-chosen id echoed back in `COPY_ITEM_COMPLETE` */
	Id uint64
	/* Source partition; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	SourcePartition LorePartition
	/* Destination partition; zero/default rejects, as does an exact `(source_partition, source
	context)` match (no-op) — a different `target_context` enables in-partition duplication */
	TargetPartition LorePartition
	/* Source content address; its `hash` carries over to the destination address unchanged */
	SourceAddress LoreAddress
	/* Dedup tag for the destination address `(target_partition, source_address.hash,
	target_context)`; may match the source tag or re-tag the payload */
	TargetContext LoreContext
}

func NewLoreStorageCopyItem

func NewLoreStorageCopyItem(opts LoreStorageCopyItem) (LoreStorageCopyItemFFI, func())

func (*LoreStorageCopyItemFFI) Clone

type LoreStorageFlushArgs

type LoreStorageFlushArgs struct {
	/* Open handle whose pending writes to flush */
	Handle LoreStore
}

type LoreStorageFlushArgsFFI

type LoreStorageFlushArgsFFI struct {
	/* Open handle whose pending writes to flush */
	Handle LoreStore
}

func NewLoreStorageFlushArgs

func NewLoreStorageFlushArgs(opts LoreStorageFlushArgs) (LoreStorageFlushArgsFFI, func())

type LoreStorageGetArgs

type LoreStorageGetArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Addresses to read; each runs independently and emits its own event sequence */
	Items LoreStorageGetItemArray
}

type LoreStorageGetArgsFFI

type LoreStorageGetArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Addresses to read; each runs independently and emits its own event sequence */
	Items LoreStorageGetItemArrayFFI
}

func NewLoreStorageGetArgs

func NewLoreStorageGetArgs(opts LoreStorageGetArgs) (LoreStorageGetArgsFFI, func())

type LoreStorageGetDataEventData

type LoreStorageGetDataEventData struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* The byte offset of this payload within the item's content. */
	Offset uint64
	/* The payload bytes for this part of the item. */
	Bytes LoreBytes
}

type LoreStorageGetDataEventDataFFI

type LoreStorageGetDataEventDataFFI struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* The byte offset of this payload within the item's content. */
	Offset uint64
	/* The payload bytes for this part of the item. */
	Bytes LoreBytesFFI
}

func (*LoreStorageGetDataEventDataFFI) Clone

type LoreStorageGetFileArgs

type LoreStorageGetFileArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Addresses and destination paths; each runs independently */
	Items LoreStorageGetFileItemArray
}

type LoreStorageGetFileArgsFFI

type LoreStorageGetFileArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Addresses and destination paths; each runs independently */
	Items LoreStorageGetFileItemArrayFFI
}

func NewLoreStorageGetFileArgs

func NewLoreStorageGetFileArgs(opts LoreStorageGetFileArgs) (LoreStorageGetFileArgsFFI, func())

type LoreStorageGetFileItem

type LoreStorageGetFileItem struct {
	/* Caller-chosen id echoed back in `GET_ITEM_COMPLETE` */
	Id uint64
	/* Partition to read from; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Content address to read; `hash == Hash::default()` truncates `path` to zero bytes */
	Address LoreAddress
	/* Destination path, which takes one get at a time; empty rejects with `INVALID_ARGUMENTS`.
	Multi-fragment writes go through `<path>.loretmp`, renamed into place atomically */
	Path string
	/* First content byte to write, counted from the start of the decompressed content.
	Past the end of the content rejects with `INVALID_ARGUMENTS` */
	Offset uint64
	/* Content bytes to write from `offset`; `0` writes to the end. The file holds exactly the
	requested range starting at its own first byte, and is sized to it */
	Length uint64
	/* Cache fetched fragments in the local store, not just write them to `path`, as they always
	are for a fragment written with `PayloadLocalCachePriority` or one of revision state. A
	fetched fragment that is not cached is still written to the local store as an entry
	without its payload, so a put of the same content uploads nothing. Either is marked stored
	durable */
	LocalCache bool
}

type LoreStorageGetFileItemArray

type LoreStorageGetFileItemArray = []LoreStorageGetFileItem

type LoreStorageGetFileItemArrayFFI

type LoreStorageGetFileItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStorageGetFileItemArray

func NewLoreStorageGetFileItemArray(arr []LoreStorageGetFileItem) (LoreStorageGetFileItemArrayFFI, func())

func (LoreStorageGetFileItemArrayFFI) Clone

func (LoreStorageGetFileItemArrayFFI) Get

func (LoreStorageGetFileItemArrayFFI) Len

type LoreStorageGetFileItemFFI

type LoreStorageGetFileItemFFI struct {
	/* Caller-chosen id echoed back in `GET_ITEM_COMPLETE` */
	Id uint64
	/* Partition to read from; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Content address to read; `hash == Hash::default()` truncates `path` to zero bytes */
	Address LoreAddress
	/* Destination path, which takes one get at a time; empty rejects with `INVALID_ARGUMENTS`.
	Multi-fragment writes go through `<path>.loretmp`, renamed into place atomically */
	Path LoreString
	/* First content byte to write, counted from the start of the decompressed content.
	Past the end of the content rejects with `INVALID_ARGUMENTS` */
	Offset uint64
	/* Content bytes to write from `offset`; `0` writes to the end. The file holds exactly the
	requested range starting at its own first byte, and is sized to it */
	Length uint64
	/* Cache fetched fragments in the local store, not just write them to `path`, as they always
	are for a fragment written with `PayloadLocalCachePriority` or one of revision state. A
	fetched fragment that is not cached is still written to the local store as an entry
	without its payload, so a put of the same content uploads nothing. Either is marked stored
	durable */
	LocalCache uint8
}

func NewLoreStorageGetFileItem

func NewLoreStorageGetFileItem(opts LoreStorageGetFileItem) (LoreStorageGetFileItemFFI, func())

func (*LoreStorageGetFileItemFFI) Clone

type LoreStorageGetFileResolvedArgs added in v0.10.0

type LoreStorageGetFileResolvedArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Keys to resolve and destination paths; each runs independently and emits its own
	`GET_ITEM_COMPLETE` */
	Items LoreStorageGetFileResolvedItemArray
}

type LoreStorageGetFileResolvedArgsFFI added in v0.10.0

type LoreStorageGetFileResolvedArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Keys to resolve and destination paths; each runs independently and emits its own
	`GET_ITEM_COMPLETE` */
	Items LoreStorageGetFileResolvedItemArrayFFI
}

func NewLoreStorageGetFileResolvedArgs added in v0.10.0

func NewLoreStorageGetFileResolvedArgs(opts LoreStorageGetFileResolvedArgs) (LoreStorageGetFileResolvedArgsFFI, func())

type LoreStorageGetFileResolvedItem added in v0.10.0

type LoreStorageGetFileResolvedItem struct {
	/* Caller-chosen id echoed back in `GET_ITEM_COMPLETE` */
	Id uint64
	/* Partition to resolve and read within; the zero/default partition rejects with
	`INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Mutable key to resolve, always read as `KeyType::Resolve`; a zero key rejects with
	`INVALID_ARGUMENTS` */
	Key LoreHash
	/* Paired with the resolved hash to address the immutable read; the mutable store yields only
	a hash */
	Context LoreContext
	/* Destination path, which takes one get at a time; empty rejects with `INVALID_ARGUMENTS`.
	Multi-fragment writes go through `<path>.loretmp`, renamed into place atomically */
	Path string
	/* First content byte to write, counted from the start of the decompressed content. Past the
	end of the content rejects with `INVALID_ARGUMENTS` */
	Offset uint64
	/* Content bytes to write from `offset`; `0` writes to the end. The file holds exactly the
	requested range starting at its own first byte, and is sized to it */
	Length uint64
	/* Cache fetched fragments and the mapping in the local store, not just write the content to
	`path`, as fragments written with `PayloadLocalCachePriority`, and those of revision state,
	always are. A fetched fragment that is not cached is still written to the local store as an
	entry without its payload, so a put of the same content uploads nothing. Either is marked
	stored durable */
	LocalCache bool
}

type LoreStorageGetFileResolvedItemArray added in v0.10.0

type LoreStorageGetFileResolvedItemArray = []LoreStorageGetFileResolvedItem

type LoreStorageGetFileResolvedItemArrayFFI added in v0.10.0

type LoreStorageGetFileResolvedItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStorageGetFileResolvedItemArray added in v0.10.0

func NewLoreStorageGetFileResolvedItemArray(arr []LoreStorageGetFileResolvedItem) (LoreStorageGetFileResolvedItemArrayFFI, func())

func (LoreStorageGetFileResolvedItemArrayFFI) Clone added in v0.10.0

func (LoreStorageGetFileResolvedItemArrayFFI) Get added in v0.10.0

func (LoreStorageGetFileResolvedItemArrayFFI) Len added in v0.10.0

type LoreStorageGetFileResolvedItemFFI added in v0.10.0

type LoreStorageGetFileResolvedItemFFI struct {
	/* Caller-chosen id echoed back in `GET_ITEM_COMPLETE` */
	Id uint64
	/* Partition to resolve and read within; the zero/default partition rejects with
	`INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Mutable key to resolve, always read as `KeyType::Resolve`; a zero key rejects with
	`INVALID_ARGUMENTS` */
	Key LoreHash
	/* Paired with the resolved hash to address the immutable read; the mutable store yields only
	a hash */
	Context LoreContext
	/* Destination path, which takes one get at a time; empty rejects with `INVALID_ARGUMENTS`.
	Multi-fragment writes go through `<path>.loretmp`, renamed into place atomically */
	Path LoreString
	/* First content byte to write, counted from the start of the decompressed content. Past the
	end of the content rejects with `INVALID_ARGUMENTS` */
	Offset uint64
	/* Content bytes to write from `offset`; `0` writes to the end. The file holds exactly the
	requested range starting at its own first byte, and is sized to it */
	Length uint64
	/* Cache fetched fragments and the mapping in the local store, not just write the content to
	`path`, as fragments written with `PayloadLocalCachePriority`, and those of revision state,
	always are. A fetched fragment that is not cached is still written to the local store as an
	entry without its payload, so a put of the same content uploads nothing. Either is marked
	stored durable */
	LocalCache uint8
}

func NewLoreStorageGetFileResolvedItem added in v0.10.0

func NewLoreStorageGetFileResolvedItem(opts LoreStorageGetFileResolvedItem) (LoreStorageGetFileResolvedItemFFI, func())

func (*LoreStorageGetFileResolvedItemFFI) Clone added in v0.10.0

type LoreStorageGetFragmentEventData added in v0.11.0

type LoreStorageGetFragmentEventData struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* The byte offset of this leaf within the item's content. */
	Offset uint64
	/* The leaf's fragment, describing `bytes`: the compression among its flags, the payload size
	and the content size the payload expands to. A hole of the content arrives as a
	`LORE_EVENT_STORAGE_GET_FRAGMENT` whose fragment has a `size_payload` of zero and no
	payload, covering `size_content` bytes that read as zeros. */
	Fragment LoreFragment
	/* The leaf's payload, compressed as `fragment` states. */
	Bytes LoreBytes
}

type LoreStorageGetFragmentEventDataFFI added in v0.11.0

type LoreStorageGetFragmentEventDataFFI struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* The byte offset of this leaf within the item's content. */
	Offset uint64
	/* The leaf's fragment, describing `bytes`: the compression among its flags, the payload size
	and the content size the payload expands to. A hole of the content arrives as a
	`LORE_EVENT_STORAGE_GET_FRAGMENT` whose fragment has a `size_payload` of zero and no
	payload, covering `size_content` bytes that read as zeros. */
	Fragment LoreFragmentFFI
	/* The leaf's payload, compressed as `fragment` states. */
	Bytes LoreBytesFFI
}

func (*LoreStorageGetFragmentEventDataFFI) Clone added in v0.11.0

type LoreStorageGetHeaderEventData

type LoreStorageGetHeaderEventData struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* The total reassembled content size in bytes. */
	SizeContent uint64
}

type LoreStorageGetHeaderEventDataFFI

type LoreStorageGetHeaderEventDataFFI struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* The total reassembled content size in bytes. */
	SizeContent uint64
}

func (*LoreStorageGetHeaderEventDataFFI) Clone

type LoreStorageGetItem

type LoreStorageGetItem struct {
	/* Caller-chosen id echoed back in every event for this item */
	Id uint64
	/* Partition to read from; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Content address to read; `hash == Hash::default()` short-circuits to an empty buffer */
	Address LoreAddress
	/* First content byte to read, counted from the start of the decompressed content.
	Past the end of the content rejects with `INVALID_ARGUMENTS` */
	Offset uint64
	/* Content bytes to read from `offset`; `0` reads to the end. A range reaching past the
	end is clamped to it, so `GET_DATA` may carry fewer bytes than asked for */
	Length uint64
	/* Stream one `GET_DATA` per leaf fragment instead of a single reassembled buffer. A read
	that fails partway reports the failure on `GET_ITEM_COMPLETE` rather than ending short
	with a success code */
	Streaming bool
	/* Cache fetched bytes in the local store, as they always are for a fragment written with
	`PayloadLocalCachePriority` or one of revision state. A fetched fragment whose bytes are not
	cached is still written to the local store as an entry without its payload, so a put of
	the same content uploads nothing. Either is marked stored durable */
	LocalCache bool
	/* Writable buffer receiving the requested range, `len` stating its capacity. Zero-initialized
	selects `GET_DATA` delivery.

	The capacity is the limit: a range exceeding it fails the item with
	`Oversized` rather than truncating. `GET_HEADER` reports the whole
	content's size, which with `offset` and `length` gives the bytes written; no `GET_DATA`
	follows, and `streaming` is ignored. The buffer holds unspecified bytes when the item fails. */
	DataOut LoreBytesMut
}

type LoreStorageGetItemArray

type LoreStorageGetItemArray = []LoreStorageGetItem

type LoreStorageGetItemArrayFFI

type LoreStorageGetItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStorageGetItemArray

func NewLoreStorageGetItemArray(arr []LoreStorageGetItem) (LoreStorageGetItemArrayFFI, func())

func (LoreStorageGetItemArrayFFI) Clone

func (LoreStorageGetItemArrayFFI) Get

func (LoreStorageGetItemArrayFFI) Len

func (arr LoreStorageGetItemArrayFFI) Len() int

type LoreStorageGetItemCompleteEventData

type LoreStorageGetItemCompleteEventData struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* The outcome for the item. */
	Error LoreErrorDetail
}

type LoreStorageGetItemCompleteEventDataFFI

type LoreStorageGetItemCompleteEventDataFFI struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* The outcome for the item. */
	Error LoreErrorDetailFFI
}

func (*LoreStorageGetItemCompleteEventDataFFI) Clone

type LoreStorageGetItemFFI

type LoreStorageGetItemFFI struct {
	/* Caller-chosen id echoed back in every event for this item */
	Id uint64
	/* Partition to read from; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Content address to read; `hash == Hash::default()` short-circuits to an empty buffer */
	Address LoreAddress
	/* First content byte to read, counted from the start of the decompressed content.
	Past the end of the content rejects with `INVALID_ARGUMENTS` */
	Offset uint64
	/* Content bytes to read from `offset`; `0` reads to the end. A range reaching past the
	end is clamped to it, so `GET_DATA` may carry fewer bytes than asked for */
	Length uint64
	/* Stream one `GET_DATA` per leaf fragment instead of a single reassembled buffer. A read
	that fails partway reports the failure on `GET_ITEM_COMPLETE` rather than ending short
	with a success code */
	Streaming uint8
	/* Cache fetched bytes in the local store, as they always are for a fragment written with
	`PayloadLocalCachePriority` or one of revision state. A fetched fragment whose bytes are not
	cached is still written to the local store as an entry without its payload, so a put of
	the same content uploads nothing. Either is marked stored durable */
	LocalCache uint8
	/* Writable buffer receiving the requested range, `len` stating its capacity. Zero-initialized
	selects `GET_DATA` delivery.

	The capacity is the limit: a range exceeding it fails the item with
	`Oversized` rather than truncating. `GET_HEADER` reports the whole
	content's size, which with `offset` and `length` gives the bytes written; no `GET_DATA`
	follows, and `streaming` is ignored. The buffer holds unspecified bytes when the item fails. */
	DataOut LoreBytesMutFFI
}

func NewLoreStorageGetItem

func NewLoreStorageGetItem(opts LoreStorageGetItem) (LoreStorageGetItemFFI, func())

func (*LoreStorageGetItemFFI) Clone

type LoreStorageGetMetadataArgs

type LoreStorageGetMetadataArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Addresses to look up; each runs independently and emits its own `GET_METADATA_ITEM_COMPLETE` */
	Items LoreStorageGetMetadataItemArray
}

type LoreStorageGetMetadataArgsFFI

type LoreStorageGetMetadataArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Addresses to look up; each runs independently and emits its own `GET_METADATA_ITEM_COMPLETE` */
	Items LoreStorageGetMetadataItemArrayFFI
}

func NewLoreStorageGetMetadataArgs

func NewLoreStorageGetMetadataArgs(opts LoreStorageGetMetadataArgs) (LoreStorageGetMetadataArgsFFI, func())

type LoreStorageGetMetadataItem

type LoreStorageGetMetadataItem struct {
	/* Caller-chosen id echoed back in `GET_METADATA_ITEM_COMPLETE` */
	Id uint64
	/* Partition to look up; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Content address to look up; `hash == Hash::default()` short-circuits to an empty fragment */
	Address LoreAddress
}

type LoreStorageGetMetadataItemArray

type LoreStorageGetMetadataItemArray = []LoreStorageGetMetadataItem

type LoreStorageGetMetadataItemArrayFFI

type LoreStorageGetMetadataItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStorageGetMetadataItemArray

func NewLoreStorageGetMetadataItemArray(arr []LoreStorageGetMetadataItem) (LoreStorageGetMetadataItemArrayFFI, func())

func (LoreStorageGetMetadataItemArrayFFI) Clone

func (LoreStorageGetMetadataItemArrayFFI) Get

func (LoreStorageGetMetadataItemArrayFFI) Len

type LoreStorageGetMetadataItemCompleteEventData

type LoreStorageGetMetadataItemCompleteEventData struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* The metadata fragment for the item. */
	Fragment LoreFragment
	/* The outcome for the item. */
	Error LoreErrorDetail
}

type LoreStorageGetMetadataItemCompleteEventDataFFI

type LoreStorageGetMetadataItemCompleteEventDataFFI struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* The metadata fragment for the item. */
	Fragment LoreFragmentFFI
	/* The outcome for the item. */
	Error LoreErrorDetailFFI
}

func (*LoreStorageGetMetadataItemCompleteEventDataFFI) Clone

type LoreStorageGetMetadataItemFFI

type LoreStorageGetMetadataItemFFI struct {
	/* Caller-chosen id echoed back in `GET_METADATA_ITEM_COMPLETE` */
	Id uint64
	/* Partition to look up; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Content address to look up; `hash == Hash::default()` short-circuits to an empty fragment */
	Address LoreAddress
}

func NewLoreStorageGetMetadataItem

func NewLoreStorageGetMetadataItem(opts LoreStorageGetMetadataItem) (LoreStorageGetMetadataItemFFI, func())

func (*LoreStorageGetMetadataItemFFI) Clone

type LoreStorageGetResolvedArgs added in v0.9.0

type LoreStorageGetResolvedArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Keys to resolve and read; each runs independently and emits its own event sequence */
	Items LoreStorageGetResolvedItemArray
}

type LoreStorageGetResolvedArgsFFI added in v0.9.0

type LoreStorageGetResolvedArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Keys to resolve and read; each runs independently and emits its own event sequence */
	Items LoreStorageGetResolvedItemArrayFFI
}

func NewLoreStorageGetResolvedArgs added in v0.9.0

func NewLoreStorageGetResolvedArgs(opts LoreStorageGetResolvedArgs) (LoreStorageGetResolvedArgsFFI, func())

type LoreStorageGetResolvedItem added in v0.9.0

type LoreStorageGetResolvedItem struct {
	/* Caller-chosen id echoed back in every event for this item */
	Id uint64
	/* Partition to resolve and read within; the zero/default partition rejects with
	`INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Mutable key to resolve, always read as `KeyType::Resolve` */
	Key LoreHash
	/* Paired with the resolved hash to address the immutable read; the mutable store yields
	only a hash. */
	Context LoreContext
	/* Stream one `GET_DATA` per leaf fragment instead of a single reassembled buffer, as
	`lore_storage_get` does. Peak memory then follows the fragment size rather than the
	content size, which is what makes a key naming something large usable. A read that fails
	partway reports the failure on `GET_ITEM_COMPLETE` rather than ending short with a
	success code */
	Streaming bool
	/* Cache fetched bytes in the local store, as they always are for a fragment written with
	`PayloadLocalCachePriority` or one of revision state. A fetched fragment whose bytes are not
	cached is still written to the local store as an entry without its payload, so a put of
	the same content uploads nothing. Either is marked stored durable */
	LocalCache bool
	/* Deliver one `GET_FRAGMENT` per leaf fragment in content order in place of `GET_DATA`, each
	carrying the leaf's fragment and its payload as stored, with `streaming` ignored. No leaf
	is expanded or checked against its hash. A hole of the content arrives as a `GET_FRAGMENT`
	whose fragment has a `size_payload` of zero and no payload, covering `size_content` bytes
	that read as zeros. An item with `data_out` supplied rejects with `INVALID_ARGUMENTS` */
	Fragments bool
	/* Writable buffer receiving the content, `len` stating its capacity. Zero-initialized selects
	delivery in events.

	The capacity is the limit: content exceeding it fails the item with
	`Oversized` rather than truncating. `GET_HEADER` reports the content
	size, no `GET_DATA` follows, and `streaming` is ignored. The buffer holds unspecified bytes
	when the item fails. */
	DataOut LoreBytesMut
}

type LoreStorageGetResolvedItemArray added in v0.9.0

type LoreStorageGetResolvedItemArray = []LoreStorageGetResolvedItem

type LoreStorageGetResolvedItemArrayFFI added in v0.9.0

type LoreStorageGetResolvedItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStorageGetResolvedItemArray added in v0.9.0

func NewLoreStorageGetResolvedItemArray(arr []LoreStorageGetResolvedItem) (LoreStorageGetResolvedItemArrayFFI, func())

func (LoreStorageGetResolvedItemArrayFFI) Clone added in v0.9.0

func (LoreStorageGetResolvedItemArrayFFI) Get added in v0.9.0

func (LoreStorageGetResolvedItemArrayFFI) Len added in v0.9.0

type LoreStorageGetResolvedItemFFI added in v0.9.0

type LoreStorageGetResolvedItemFFI struct {
	/* Caller-chosen id echoed back in every event for this item */
	Id uint64
	/* Partition to resolve and read within; the zero/default partition rejects with
	`INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Mutable key to resolve, always read as `KeyType::Resolve` */
	Key LoreHash
	/* Paired with the resolved hash to address the immutable read; the mutable store yields
	only a hash. */
	Context LoreContext
	/* Stream one `GET_DATA` per leaf fragment instead of a single reassembled buffer, as
	`lore_storage_get` does. Peak memory then follows the fragment size rather than the
	content size, which is what makes a key naming something large usable. A read that fails
	partway reports the failure on `GET_ITEM_COMPLETE` rather than ending short with a
	success code */
	Streaming uint8
	/* Cache fetched bytes in the local store, as they always are for a fragment written with
	`PayloadLocalCachePriority` or one of revision state. A fetched fragment whose bytes are not
	cached is still written to the local store as an entry without its payload, so a put of
	the same content uploads nothing. Either is marked stored durable */
	LocalCache uint8
	/* Deliver one `GET_FRAGMENT` per leaf fragment in content order in place of `GET_DATA`, each
	carrying the leaf's fragment and its payload as stored, with `streaming` ignored. No leaf
	is expanded or checked against its hash. A hole of the content arrives as a `GET_FRAGMENT`
	whose fragment has a `size_payload` of zero and no payload, covering `size_content` bytes
	that read as zeros. An item with `data_out` supplied rejects with `INVALID_ARGUMENTS` */
	Fragments uint8
	/* Writable buffer receiving the content, `len` stating its capacity. Zero-initialized selects
	delivery in events.

	The capacity is the limit: content exceeding it fails the item with
	`Oversized` rather than truncating. `GET_HEADER` reports the content
	size, no `GET_DATA` follows, and `streaming` is ignored. The buffer holds unspecified bytes
	when the item fails. */
	DataOut LoreBytesMutFFI
}

func NewLoreStorageGetResolvedItem added in v0.9.0

func NewLoreStorageGetResolvedItem(opts LoreStorageGetResolvedItem) (LoreStorageGetResolvedItemFFI, func())

func (*LoreStorageGetResolvedItemFFI) Clone added in v0.9.0

type LoreStorageMutableCompareAndSwapArgs added in v0.8.4

type LoreStorageMutableCompareAndSwapArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Swaps to perform; each runs independently and emits its own `MUTABLE_COMPARE_AND_SWAP_ITEM_COMPLETE` */
	Items LoreStorageMutableCompareAndSwapItemArray
}

type LoreStorageMutableCompareAndSwapArgsFFI added in v0.8.4

type LoreStorageMutableCompareAndSwapArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Swaps to perform; each runs independently and emits its own `MUTABLE_COMPARE_AND_SWAP_ITEM_COMPLETE` */
	Items LoreStorageMutableCompareAndSwapItemArrayFFI
}

func NewLoreStorageMutableCompareAndSwapArgs added in v0.8.4

func NewLoreStorageMutableCompareAndSwapArgs(opts LoreStorageMutableCompareAndSwapArgs) (LoreStorageMutableCompareAndSwapArgsFFI, func())

type LoreStorageMutableCompareAndSwapItem added in v0.8.4

type LoreStorageMutableCompareAndSwapItem struct {
	/* Caller-chosen id echoed back in `MUTABLE_COMPARE_AND_SWAP_ITEM_COMPLETE` */
	Id uint64
	/* Partition (repository) to act on; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Key to swap */
	Key LoreHash
	/* Value the key must currently hold for the swap to take effect (null matches an absent key) */
	Expected LoreHash
	/* Value to store when the swap takes effect; the null value removes the key */
	Value LoreHash
	/* Kind of value the key refers to */
	KeyType LoreKeyType
}

type LoreStorageMutableCompareAndSwapItemArray added in v0.8.4

type LoreStorageMutableCompareAndSwapItemArray = []LoreStorageMutableCompareAndSwapItem

type LoreStorageMutableCompareAndSwapItemArrayFFI added in v0.8.4

type LoreStorageMutableCompareAndSwapItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStorageMutableCompareAndSwapItemArray added in v0.8.4

func NewLoreStorageMutableCompareAndSwapItemArray(arr []LoreStorageMutableCompareAndSwapItem) (LoreStorageMutableCompareAndSwapItemArrayFFI, func())

func (LoreStorageMutableCompareAndSwapItemArrayFFI) Clone added in v0.8.4

func (LoreStorageMutableCompareAndSwapItemArrayFFI) Get added in v0.8.4

func (LoreStorageMutableCompareAndSwapItemArrayFFI) Len added in v0.8.4

type LoreStorageMutableCompareAndSwapItemCompleteEventData added in v0.8.4

type LoreStorageMutableCompareAndSwapItemCompleteEventData struct {
	/* Correlation id of the item. */
	Id uint64
	/* The value the key held before the swap. */
	Previous LoreHash
	/* The outcome for the item. */
	Error LoreErrorDetail
}

type LoreStorageMutableCompareAndSwapItemCompleteEventDataFFI added in v0.8.4

type LoreStorageMutableCompareAndSwapItemCompleteEventDataFFI struct {
	/* Correlation id of the item. */
	Id uint64
	/* The value the key held before the swap. */
	Previous LoreHash
	/* The outcome for the item. */
	Error LoreErrorDetailFFI
}

func (*LoreStorageMutableCompareAndSwapItemCompleteEventDataFFI) Clone added in v0.8.4

type LoreStorageMutableCompareAndSwapItemFFI added in v0.8.4

type LoreStorageMutableCompareAndSwapItemFFI struct {
	/* Caller-chosen id echoed back in `MUTABLE_COMPARE_AND_SWAP_ITEM_COMPLETE` */
	Id uint64
	/* Partition (repository) to act on; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Key to swap */
	Key LoreHash
	/* Value the key must currently hold for the swap to take effect (null matches an absent key) */
	Expected LoreHash
	/* Value to store when the swap takes effect; the null value removes the key */
	Value LoreHash
	/* Kind of value the key refers to */
	KeyType LoreKeyType
}

func NewLoreStorageMutableCompareAndSwapItem added in v0.8.4

func NewLoreStorageMutableCompareAndSwapItem(opts LoreStorageMutableCompareAndSwapItem) (LoreStorageMutableCompareAndSwapItemFFI, func())

func (*LoreStorageMutableCompareAndSwapItemFFI) Clone added in v0.8.4

type LoreStorageMutableListArgs added in v0.8.4

type LoreStorageMutableListArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Listings to perform; each runs independently and emits its own entries and terminal event */
	Items LoreStorageMutableListItemArray
}

type LoreStorageMutableListArgsFFI added in v0.8.4

type LoreStorageMutableListArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Listings to perform; each runs independently and emits its own entries and terminal event */
	Items LoreStorageMutableListItemArrayFFI
}

func NewLoreStorageMutableListArgs added in v0.8.4

func NewLoreStorageMutableListArgs(opts LoreStorageMutableListArgs) (LoreStorageMutableListArgsFFI, func())

type LoreStorageMutableListEntryEventData added in v0.8.4

type LoreStorageMutableListEntryEventData struct {
	/* Correlation id of the listing item. */
	Id uint64
	/* The key of this entry. */
	Key LoreHash
	/* The value stored for the key. */
	Value LoreHash
}

type LoreStorageMutableListEntryEventDataFFI added in v0.8.4

type LoreStorageMutableListEntryEventDataFFI struct {
	/* Correlation id of the listing item. */
	Id uint64
	/* The key of this entry. */
	Key LoreHash
	/* The value stored for the key. */
	Value LoreHash
}

func (*LoreStorageMutableListEntryEventDataFFI) Clone added in v0.8.4

type LoreStorageMutableListItem added in v0.8.4

type LoreStorageMutableListItem struct {
	/* Caller-chosen id echoed back on every entry and the terminal event */
	Id uint64
	/* Partition (repository) to list; the zero/default partition lists every accessible partition */
	Partition LorePartition
	/* Kind of value to list */
	KeyType LoreKeyType
}

type LoreStorageMutableListItemArray added in v0.8.4

type LoreStorageMutableListItemArray = []LoreStorageMutableListItem

type LoreStorageMutableListItemArrayFFI added in v0.8.4

type LoreStorageMutableListItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStorageMutableListItemArray added in v0.8.4

func NewLoreStorageMutableListItemArray(arr []LoreStorageMutableListItem) (LoreStorageMutableListItemArrayFFI, func())

func (LoreStorageMutableListItemArrayFFI) Clone added in v0.8.4

func (LoreStorageMutableListItemArrayFFI) Get added in v0.8.4

func (LoreStorageMutableListItemArrayFFI) Len added in v0.8.4

type LoreStorageMutableListItemCompleteEventData added in v0.8.4

type LoreStorageMutableListItemCompleteEventData struct {
	/* Correlation id of the listing item. */
	Id uint64
	/* The outcome for the item. */
	Error LoreErrorDetail
}

type LoreStorageMutableListItemCompleteEventDataFFI added in v0.8.4

type LoreStorageMutableListItemCompleteEventDataFFI struct {
	/* Correlation id of the listing item. */
	Id uint64
	/* The outcome for the item. */
	Error LoreErrorDetailFFI
}

func (*LoreStorageMutableListItemCompleteEventDataFFI) Clone added in v0.8.4

type LoreStorageMutableListItemFFI added in v0.8.4

type LoreStorageMutableListItemFFI struct {
	/* Caller-chosen id echoed back on every entry and the terminal event */
	Id uint64
	/* Partition (repository) to list; the zero/default partition lists every accessible partition */
	Partition LorePartition
	/* Kind of value to list */
	KeyType LoreKeyType
}

func NewLoreStorageMutableListItem added in v0.8.4

func NewLoreStorageMutableListItem(opts LoreStorageMutableListItem) (LoreStorageMutableListItemFFI, func())

func (*LoreStorageMutableListItemFFI) Clone added in v0.8.4

type LoreStorageMutableLoadArgs added in v0.8.4

type LoreStorageMutableLoadArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Keys to read; each runs independently and emits its own `MUTABLE_LOAD_ITEM_COMPLETE` */
	Items LoreStorageMutableLoadItemArray
}

type LoreStorageMutableLoadArgsFFI added in v0.8.4

type LoreStorageMutableLoadArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Keys to read; each runs independently and emits its own `MUTABLE_LOAD_ITEM_COMPLETE` */
	Items LoreStorageMutableLoadItemArrayFFI
}

func NewLoreStorageMutableLoadArgs added in v0.8.4

func NewLoreStorageMutableLoadArgs(opts LoreStorageMutableLoadArgs) (LoreStorageMutableLoadArgsFFI, func())

type LoreStorageMutableLoadItem added in v0.8.4

type LoreStorageMutableLoadItem struct {
	/* Caller-chosen id echoed back in `MUTABLE_LOAD_ITEM_COMPLETE` */
	Id uint64
	/* Partition (repository) to read from; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Key to read */
	Key LoreHash
	/* Kind of value the key refers to */
	KeyType LoreKeyType
}

type LoreStorageMutableLoadItemArray added in v0.8.4

type LoreStorageMutableLoadItemArray = []LoreStorageMutableLoadItem

type LoreStorageMutableLoadItemArrayFFI added in v0.8.4

type LoreStorageMutableLoadItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStorageMutableLoadItemArray added in v0.8.4

func NewLoreStorageMutableLoadItemArray(arr []LoreStorageMutableLoadItem) (LoreStorageMutableLoadItemArrayFFI, func())

func (LoreStorageMutableLoadItemArrayFFI) Clone added in v0.8.4

func (LoreStorageMutableLoadItemArrayFFI) Get added in v0.8.4

func (LoreStorageMutableLoadItemArrayFFI) Len added in v0.8.4

type LoreStorageMutableLoadItemCompleteEventData added in v0.8.4

type LoreStorageMutableLoadItemCompleteEventData struct {
	/* Correlation id of the item. */
	Id uint64
	/* The value stored for the key. */
	Value LoreHash
	/* The outcome for the item. */
	Error LoreErrorDetail
}

type LoreStorageMutableLoadItemCompleteEventDataFFI added in v0.8.4

type LoreStorageMutableLoadItemCompleteEventDataFFI struct {
	/* Correlation id of the item. */
	Id uint64
	/* The value stored for the key. */
	Value LoreHash
	/* The outcome for the item. */
	Error LoreErrorDetailFFI
}

func (*LoreStorageMutableLoadItemCompleteEventDataFFI) Clone added in v0.8.4

type LoreStorageMutableLoadItemFFI added in v0.8.4

type LoreStorageMutableLoadItemFFI struct {
	/* Caller-chosen id echoed back in `MUTABLE_LOAD_ITEM_COMPLETE` */
	Id uint64
	/* Partition (repository) to read from; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Key to read */
	Key LoreHash
	/* Kind of value the key refers to */
	KeyType LoreKeyType
}

func NewLoreStorageMutableLoadItem added in v0.8.4

func NewLoreStorageMutableLoadItem(opts LoreStorageMutableLoadItem) (LoreStorageMutableLoadItemFFI, func())

func (*LoreStorageMutableLoadItemFFI) Clone added in v0.8.4

type LoreStorageMutableStoreArgs added in v0.8.4

type LoreStorageMutableStoreArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Key-value pairs to write; each runs independently and emits its own `MUTABLE_STORE_ITEM_COMPLETE` */
	Items LoreStorageMutableStoreItemArray
}

type LoreStorageMutableStoreArgsFFI added in v0.8.4

type LoreStorageMutableStoreArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Key-value pairs to write; each runs independently and emits its own `MUTABLE_STORE_ITEM_COMPLETE` */
	Items LoreStorageMutableStoreItemArrayFFI
}

func NewLoreStorageMutableStoreArgs added in v0.8.4

func NewLoreStorageMutableStoreArgs(opts LoreStorageMutableStoreArgs) (LoreStorageMutableStoreArgsFFI, func())

type LoreStorageMutableStoreItem added in v0.8.4

type LoreStorageMutableStoreItem struct {
	/* Caller-chosen id echoed back in `MUTABLE_STORE_ITEM_COMPLETE` */
	Id uint64
	/* Partition (repository) to write to; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Key to write */
	Key LoreHash
	/* Value to store; the null value (`Hash::default()`) removes the key */
	Value LoreHash
	/* Kind of value the key refers to */
	KeyType LoreKeyType
}

type LoreStorageMutableStoreItemArray added in v0.8.4

type LoreStorageMutableStoreItemArray = []LoreStorageMutableStoreItem

type LoreStorageMutableStoreItemArrayFFI added in v0.8.4

type LoreStorageMutableStoreItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStorageMutableStoreItemArray added in v0.8.4

func NewLoreStorageMutableStoreItemArray(arr []LoreStorageMutableStoreItem) (LoreStorageMutableStoreItemArrayFFI, func())

func (LoreStorageMutableStoreItemArrayFFI) Clone added in v0.8.4

func (LoreStorageMutableStoreItemArrayFFI) Get added in v0.8.4

func (LoreStorageMutableStoreItemArrayFFI) Len added in v0.8.4

type LoreStorageMutableStoreItemCompleteEventData added in v0.8.4

type LoreStorageMutableStoreItemCompleteEventData struct {
	/* Correlation id of the item. */
	Id uint64
	/* The outcome for the item. */
	Error LoreErrorDetail
}

type LoreStorageMutableStoreItemCompleteEventDataFFI added in v0.8.4

type LoreStorageMutableStoreItemCompleteEventDataFFI struct {
	/* Correlation id of the item. */
	Id uint64
	/* The outcome for the item. */
	Error LoreErrorDetailFFI
}

func (*LoreStorageMutableStoreItemCompleteEventDataFFI) Clone added in v0.8.4

type LoreStorageMutableStoreItemFFI added in v0.8.4

type LoreStorageMutableStoreItemFFI struct {
	/* Caller-chosen id echoed back in `MUTABLE_STORE_ITEM_COMPLETE` */
	Id uint64
	/* Partition (repository) to write to; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Key to write */
	Key LoreHash
	/* Value to store; the null value (`Hash::default()`) removes the key */
	Value LoreHash
	/* Kind of value the key refers to */
	KeyType LoreKeyType
}

func NewLoreStorageMutableStoreItem added in v0.8.4

func NewLoreStorageMutableStoreItem(opts LoreStorageMutableStoreItem) (LoreStorageMutableStoreItemFFI, func())

func (*LoreStorageMutableStoreItemFFI) Clone added in v0.8.4

type LoreStorageObliterateArgs

type LoreStorageObliterateArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Addresses to delete; each runs independently and emits its own `OBLITERATE_ITEM_COMPLETE` */
	Items LoreStorageObliterateItemArray
}

type LoreStorageObliterateArgsFFI

type LoreStorageObliterateArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Addresses to delete; each runs independently and emits its own `OBLITERATE_ITEM_COMPLETE` */
	Items LoreStorageObliterateItemArrayFFI
}

func NewLoreStorageObliterateArgs

func NewLoreStorageObliterateArgs(opts LoreStorageObliterateArgs) (LoreStorageObliterateArgsFFI, func())

type LoreStorageObliterateItem

type LoreStorageObliterateItem struct {
	/* Caller-chosen id echoed back in `OBLITERATE_ITEM_COMPLETE` */
	Id uint64
	/* Partition to delete from; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Content address to delete; absence on a side is idempotent success for that side */
	Address LoreAddress
}

type LoreStorageObliterateItemArray

type LoreStorageObliterateItemArray = []LoreStorageObliterateItem

type LoreStorageObliterateItemArrayFFI

type LoreStorageObliterateItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStorageObliterateItemArray

func NewLoreStorageObliterateItemArray(arr []LoreStorageObliterateItem) (LoreStorageObliterateItemArrayFFI, func())

func (LoreStorageObliterateItemArrayFFI) Clone

func (LoreStorageObliterateItemArrayFFI) Get

func (LoreStorageObliterateItemArrayFFI) Len

type LoreStorageObliterateItemCompleteEventData

type LoreStorageObliterateItemCompleteEventData struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* 1 when the local side completed without error. */
	LocalSuccess bool
	/* 1 when the remote side completed without error. */
	RemoteSuccess bool
	/* 1 when the local side was skipped. */
	LocalSkipped bool
	/* 1 when the remote side was skipped. */
	RemoteSkipped bool
	/* The outcome for the item. */
	Error LoreErrorDetail
}

type LoreStorageObliterateItemCompleteEventDataFFI

type LoreStorageObliterateItemCompleteEventDataFFI struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* 1 when the local side completed without error. */
	LocalSuccess uint8
	/* 1 when the remote side completed without error. */
	RemoteSuccess uint8
	/* 1 when the local side was skipped. */
	LocalSkipped uint8
	/* 1 when the remote side was skipped. */
	RemoteSkipped uint8
	/* The outcome for the item. */
	Error LoreErrorDetailFFI
}

func (*LoreStorageObliterateItemCompleteEventDataFFI) Clone

type LoreStorageObliterateItemFFI

type LoreStorageObliterateItemFFI struct {
	/* Caller-chosen id echoed back in `OBLITERATE_ITEM_COMPLETE` */
	Id uint64
	/* Partition to delete from; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Content address to delete; absence on a side is idempotent success for that side */
	Address LoreAddress
}

func NewLoreStorageObliterateItem

func NewLoreStorageObliterateItem(opts LoreStorageObliterateItem) (LoreStorageObliterateItemFFI, func())

func (*LoreStorageObliterateItemFFI) Clone

type LoreStorageOpenArgs

type LoreStorageOpenArgs struct {
	/* Path to an existing lore repository; must be empty when `in_memory` is set */
	RepositoryPath string
	/* Open a fresh in-memory store; `repository_path` must then be empty */
	InMemory bool
	/* Remote endpoint binding for ops that consult a peer; honored only when `has_remote_config` is set */
	RemoteConfig LoreStorageRemoteConfig
	/* Activate `remote_config`; otherwise the handle has no remote */
	HasRemoteConfig bool
	/* Alias of `globals.trust_remote` for this handle: the handle trusts its remote when either is
	set, so payloads fetched from it have only their sizes checked against their length and are
	never hashed. Payloads the local store holds are never hashed either way. */
	SkipVerify bool
	/* Soft cap on total immutable-store bytes (compactor target). A non-zero cache target enables
	incremental background GC for the handle; `0` then selects the default. A store this
	process already has open takes these targets; a shared store keeps its own instead */
	CacheTargetBytes uint64
	/* Soft cap on immutable-store fragment count (evictor target). A non-zero cache target enables
	incremental background GC for the handle; `0` then selects the default. A store this
	process already has open takes these targets; a shared store keeps its own instead */
	CacheTargetFragments uint64
}

type LoreStorageOpenArgsFFI

type LoreStorageOpenArgsFFI struct {
	/* Path to an existing lore repository; must be empty when `in_memory` is set */
	RepositoryPath LoreString
	/* Open a fresh in-memory store; `repository_path` must then be empty */
	InMemory uint8
	/* Remote endpoint binding for ops that consult a peer; honored only when `has_remote_config` is set */
	RemoteConfig LoreStorageRemoteConfig
	/* Activate `remote_config`; otherwise the handle has no remote */
	HasRemoteConfig uint8
	/* Alias of `globals.trust_remote` for this handle: the handle trusts its remote when either is
	set, so payloads fetched from it have only their sizes checked against their length and are
	never hashed. Payloads the local store holds are never hashed either way. */
	SkipVerify uint8
	/* Soft cap on total immutable-store bytes (compactor target). A non-zero cache target enables
	incremental background GC for the handle; `0` then selects the default. A store this
	process already has open takes these targets; a shared store keeps its own instead */
	CacheTargetBytes uint64
	/* Soft cap on immutable-store fragment count (evictor target). A non-zero cache target enables
	incremental background GC for the handle; `0` then selects the default. A store this
	process already has open takes these targets; a shared store keeps its own instead */
	CacheTargetFragments uint64
}

func NewLoreStorageOpenArgs

func NewLoreStorageOpenArgs(opts LoreStorageOpenArgs) (LoreStorageOpenArgsFFI, func())

type LoreStorageOpenedEventData

type LoreStorageOpenedEventData struct {
	/* Handle id for the opened store. */
	HandleId uint64
}

type LoreStorageOpenedEventDataFFI

type LoreStorageOpenedEventDataFFI struct {
	/* Handle id for the opened store. */
	HandleId uint64
}

func (*LoreStorageOpenedEventDataFFI) Clone

type LoreStoragePutArgs

type LoreStoragePutArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Buffers to store; each runs independently and emits its own `PUT_ITEM_COMPLETE` */
	Items LoreStoragePutItemArray
}

type LoreStoragePutArgsFFI

type LoreStoragePutArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Buffers to store; each runs independently and emits its own `PUT_ITEM_COMPLETE` */
	Items LoreStoragePutItemArrayFFI
}

func NewLoreStoragePutArgs

func NewLoreStoragePutArgs(opts LoreStoragePutArgs) (LoreStoragePutArgsFFI, func())

type LoreStoragePutFileArgs

type LoreStoragePutFileArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Files to store; each runs independently and emits its own `PUT_ITEM_COMPLETE` */
	Items LoreStoragePutFileItemArray
}

type LoreStoragePutFileArgsFFI

type LoreStoragePutFileArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Files to store; each runs independently and emits its own `PUT_ITEM_COMPLETE` */
	Items LoreStoragePutFileItemArrayFFI
}

func NewLoreStoragePutFileArgs

func NewLoreStoragePutFileArgs(opts LoreStoragePutFileArgs) (LoreStoragePutFileArgsFFI, func())

type LoreStoragePutFileItem

type LoreStoragePutFileItem struct {
	/* Caller-chosen id echoed back in `PUT_ITEM_COMPLETE` */
	Id uint64
	/* Target partition; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Dedup tag stored alongside the content hash in the resulting address */
	Context LoreContext
	/* Source path; empty, missing, or non-file rejects with `INVALID_ARGUMENTS`; a zero-length
	file maps to the zero-hash address */
	Path string
	/* Opt into remote upload — honored on the remote path, ignored local-only */
	RemoteWrite bool
	/* Tag the resulting fragment with `PayloadLocalCachePriority` so future remote reads always cache it locally */
	LocalCache bool
	/* Ask the remote whether it already holds each fragment at its exact address before
	compressing and uploading it, and upload none it holds. With `local_cache`, a fragment the
	remote holds is still compressed for the local copy, and only its upload is spared. Costs a
	round trip per fragment the local store does not know as stored remotely. A fragment it
	knows under another context the remote holds is copied from there first, and asked about
	only if the remote refuses the copy. Takes effect only where `remote_write` does. The field
	sits in what was padding, so zero the whole item with `memset`, or give it static storage,
	before setting its fields: a non-zero padding byte from a caller built against an older
	header turns the query on */
	RemoteQuery bool
	/* Read only the ranges of the file the file system holds data for, and store each hole between
	them as a hole in the fragment list: never read, hashed or stored. A hole is a range holding
	no data, never written, or allocated and never written (an unwritten extent), as the file
	system's extent map tells on Linux and `SEEK_DATA` on macOS, each with the file synced
	first. APFS allocates a hole of under 16 MiB beside data as zeros when it writes that data
	out, so such a range is data there. On Windows, on NTFS, everything at or past the
	file's valid data length was never written and is a hole, in a file that is sparse or not;
	below it, and on any other file system, a hole is a range a sparse file leaves unallocated,
	and every allocated range is data. Where the put cannot write the file's data out first, as
	for a read-only file or while another handle to it shares no write access, the whole file
	is data, with no hole, and so is a file whose data its file system may keep elsewhere until
	it is read, as a cloud placeholder, an offline file or one behind a reparse point. Without
	this field the file is read whole, and nothing here applies.
	Zeros written to the file are data and stored as such: a file with a hole and the same file
	with zeros written over it get different addresses, unless the file system itself leaves
	those zeros unallocated, as NTFS can for a small write of zeros alone in an allocation unit
	of a sparse file: then they are a hole. A file larger than one fragment that has holes gets
	a different address than it gets without this; one without holes gets the same.
	`lore_storage_get_file` leaves each hole unwritten, a hole of the file it writes. The field
	sits in what was padding, after `remote_query`, so zero the whole item before setting its
	fields, as for `remote_query` */
	SkipHoles bool
	/* Leaf fragment size cap for large files; `0` lets `write_content` choose */
	FixedSizeChunk uint64
}

type LoreStoragePutFileItemArray

type LoreStoragePutFileItemArray = []LoreStoragePutFileItem

type LoreStoragePutFileItemArrayFFI

type LoreStoragePutFileItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStoragePutFileItemArray

func NewLoreStoragePutFileItemArray(arr []LoreStoragePutFileItem) (LoreStoragePutFileItemArrayFFI, func())

func (LoreStoragePutFileItemArrayFFI) Clone

func (LoreStoragePutFileItemArrayFFI) Get

func (LoreStoragePutFileItemArrayFFI) Len

type LoreStoragePutFileItemFFI

type LoreStoragePutFileItemFFI struct {
	/* Caller-chosen id echoed back in `PUT_ITEM_COMPLETE` */
	Id uint64
	/* Target partition; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Dedup tag stored alongside the content hash in the resulting address */
	Context LoreContext
	/* Source path; empty, missing, or non-file rejects with `INVALID_ARGUMENTS`; a zero-length
	file maps to the zero-hash address */
	Path LoreString
	/* Opt into remote upload — honored on the remote path, ignored local-only */
	RemoteWrite uint8
	/* Tag the resulting fragment with `PayloadLocalCachePriority` so future remote reads always cache it locally */
	LocalCache uint8
	/* Ask the remote whether it already holds each fragment at its exact address before
	compressing and uploading it, and upload none it holds. With `local_cache`, a fragment the
	remote holds is still compressed for the local copy, and only its upload is spared. Costs a
	round trip per fragment the local store does not know as stored remotely. A fragment it
	knows under another context the remote holds is copied from there first, and asked about
	only if the remote refuses the copy. Takes effect only where `remote_write` does. The field
	sits in what was padding, so zero the whole item with `memset`, or give it static storage,
	before setting its fields: a non-zero padding byte from a caller built against an older
	header turns the query on */
	RemoteQuery uint8
	/* Read only the ranges of the file the file system holds data for, and store each hole between
	them as a hole in the fragment list: never read, hashed or stored. A hole is a range holding
	no data, never written, or allocated and never written (an unwritten extent), as the file
	system's extent map tells on Linux and `SEEK_DATA` on macOS, each with the file synced
	first. APFS allocates a hole of under 16 MiB beside data as zeros when it writes that data
	out, so such a range is data there. On Windows, on NTFS, everything at or past the
	file's valid data length was never written and is a hole, in a file that is sparse or not;
	below it, and on any other file system, a hole is a range a sparse file leaves unallocated,
	and every allocated range is data. Where the put cannot write the file's data out first, as
	for a read-only file or while another handle to it shares no write access, the whole file
	is data, with no hole, and so is a file whose data its file system may keep elsewhere until
	it is read, as a cloud placeholder, an offline file or one behind a reparse point. Without
	this field the file is read whole, and nothing here applies.
	Zeros written to the file are data and stored as such: a file with a hole and the same file
	with zeros written over it get different addresses, unless the file system itself leaves
	those zeros unallocated, as NTFS can for a small write of zeros alone in an allocation unit
	of a sparse file: then they are a hole. A file larger than one fragment that has holes gets
	a different address than it gets without this; one without holes gets the same.
	`lore_storage_get_file` leaves each hole unwritten, a hole of the file it writes. The field
	sits in what was padding, after `remote_query`, so zero the whole item before setting its
	fields, as for `remote_query` */
	SkipHoles uint8
	/* Leaf fragment size cap for large files; `0` lets `write_content` choose */
	FixedSizeChunk uint64
}

func NewLoreStoragePutFileItem

func NewLoreStoragePutFileItem(opts LoreStoragePutFileItem) (LoreStoragePutFileItemFFI, func())

func (*LoreStoragePutFileItemFFI) Clone

type LoreStoragePutFileResolvedArgs added in v0.10.0

type LoreStoragePutFileResolvedArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Files to store and publish; each runs independently and emits its own `PUT_ITEM_COMPLETE` */
	Items LoreStoragePutFileResolvedItemArray
}

type LoreStoragePutFileResolvedArgsFFI added in v0.10.0

type LoreStoragePutFileResolvedArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Files to store and publish; each runs independently and emits its own `PUT_ITEM_COMPLETE` */
	Items LoreStoragePutFileResolvedItemArrayFFI
}

func NewLoreStoragePutFileResolvedArgs added in v0.10.0

func NewLoreStoragePutFileResolvedArgs(opts LoreStoragePutFileResolvedArgs) (LoreStoragePutFileResolvedArgsFFI, func())

type LoreStoragePutFileResolvedItem added in v0.10.0

type LoreStoragePutFileResolvedItem struct {
	/* Caller-chosen id echoed back in `PUT_ITEM_COMPLETE` */
	Id uint64
	/* Target partition; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Mutable key to publish the stored hash under; a zero key rejects with `INVALID_ARGUMENTS` */
	Key LoreHash
	/* Dedup tag stored alongside the content hash in the resulting address, and the context a
	later `get_file_resolved` must read the key at */
	Context LoreContext
	/* Source path; empty, missing, or non-file rejects with `INVALID_ARGUMENTS`. A zero-length
	file removes the key's mapping instead of publishing one */
	Path string
	/* Also publish the content and the mapping to the remote; ignored when the handle has no
	remote or the call is offline/local */
	RemoteWrite bool
	/* Tag the fragments with `PayloadLocalCachePriority` so future remote reads always cache them
	locally */
	LocalCache bool
	/* Ask the remote whether it already holds each fragment at its exact address before
	compressing and uploading it, and upload none it holds. With `local_cache`, a fragment the
	remote holds is still compressed for the local copy, and only its upload is spared. Costs a
	round trip per fragment the local store does not know as stored remotely. A fragment it
	knows under another context the remote holds is copied from there first, and asked about
	only if the remote refuses the copy. Takes effect only where `remote_write` does. The field
	sits in what was padding, so zero the whole item with `memset`, or give it static storage,
	before setting its fields: a non-zero padding byte from a caller built against an older
	header turns the query on */
	RemoteQuery bool
	/* Store each hole of the file as a hole in the fragment list rather than reading it, as
	`lore_storage_put_file` does. The field sits in what was padding, after `remote_query`, so
	zero the whole item before setting its fields, as for `remote_query` */
	SkipHoles bool
	/* Leaf fragment size cap for large files; `0` lets the writer choose. Ignored for files under
	`FRAGMENT_SIZE_THRESHOLD` */
	FixedSizeChunk uint64
}

type LoreStoragePutFileResolvedItemArray added in v0.10.0

type LoreStoragePutFileResolvedItemArray = []LoreStoragePutFileResolvedItem

type LoreStoragePutFileResolvedItemArrayFFI added in v0.10.0

type LoreStoragePutFileResolvedItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStoragePutFileResolvedItemArray added in v0.10.0

func NewLoreStoragePutFileResolvedItemArray(arr []LoreStoragePutFileResolvedItem) (LoreStoragePutFileResolvedItemArrayFFI, func())

func (LoreStoragePutFileResolvedItemArrayFFI) Clone added in v0.10.0

func (LoreStoragePutFileResolvedItemArrayFFI) Get added in v0.10.0

func (LoreStoragePutFileResolvedItemArrayFFI) Len added in v0.10.0

type LoreStoragePutFileResolvedItemFFI added in v0.10.0

type LoreStoragePutFileResolvedItemFFI struct {
	/* Caller-chosen id echoed back in `PUT_ITEM_COMPLETE` */
	Id uint64
	/* Target partition; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Mutable key to publish the stored hash under; a zero key rejects with `INVALID_ARGUMENTS` */
	Key LoreHash
	/* Dedup tag stored alongside the content hash in the resulting address, and the context a
	later `get_file_resolved` must read the key at */
	Context LoreContext
	/* Source path; empty, missing, or non-file rejects with `INVALID_ARGUMENTS`. A zero-length
	file removes the key's mapping instead of publishing one */
	Path LoreString
	/* Also publish the content and the mapping to the remote; ignored when the handle has no
	remote or the call is offline/local */
	RemoteWrite uint8
	/* Tag the fragments with `PayloadLocalCachePriority` so future remote reads always cache them
	locally */
	LocalCache uint8
	/* Ask the remote whether it already holds each fragment at its exact address before
	compressing and uploading it, and upload none it holds. With `local_cache`, a fragment the
	remote holds is still compressed for the local copy, and only its upload is spared. Costs a
	round trip per fragment the local store does not know as stored remotely. A fragment it
	knows under another context the remote holds is copied from there first, and asked about
	only if the remote refuses the copy. Takes effect only where `remote_write` does. The field
	sits in what was padding, so zero the whole item with `memset`, or give it static storage,
	before setting its fields: a non-zero padding byte from a caller built against an older
	header turns the query on */
	RemoteQuery uint8
	/* Store each hole of the file as a hole in the fragment list rather than reading it, as
	`lore_storage_put_file` does. The field sits in what was padding, after `remote_query`, so
	zero the whole item before setting its fields, as for `remote_query` */
	SkipHoles uint8
	/* Leaf fragment size cap for large files; `0` lets the writer choose. Ignored for files under
	`FRAGMENT_SIZE_THRESHOLD` */
	FixedSizeChunk uint64
}

func NewLoreStoragePutFileResolvedItem added in v0.10.0

func NewLoreStoragePutFileResolvedItem(opts LoreStoragePutFileResolvedItem) (LoreStoragePutFileResolvedItemFFI, func())

func (*LoreStoragePutFileResolvedItemFFI) Clone added in v0.10.0

type LoreStoragePutItem

type LoreStoragePutItem struct {
	/* Caller-chosen id echoed back in `PUT_ITEM_COMPLETE` */
	Id uint64
	/* Target partition; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Dedup tag stored alongside the content hash in the resulting address */
	Context LoreContext
	/* Borrowed view into caller memory; bytes must live until `Complete` fires */
	Data LoreBytes
	/* Opt into remote upload — honored on the remote path, ignored local-only */
	RemoteWrite bool
	/* Tag the fragment with `PayloadLocalCachePriority` so future remote reads always cache it locally */
	LocalCache bool
	/* Ask the remote whether it already holds each fragment at its exact address before
	compressing and uploading it, and upload none it holds. With `local_cache`, a fragment the
	remote holds is still compressed for the local copy, and only its upload is spared. Costs a
	round trip per fragment the local store does not know as stored remotely. A fragment it
	knows under another context the remote holds is copied from there first, and asked about
	only if the remote refuses the copy. Takes effect only where `remote_write` does. The field
	sits in what was padding, so zero the whole item with `memset`, or give it static storage,
	before setting its fields: a non-zero padding byte from a caller built against an older
	header turns the query on */
	RemoteQuery bool
	/* Leaf fragment size cap for large buffers; `0` lets `write_content` choose. Ignored
	for buffers under `FRAGMENT_SIZE_THRESHOLD` */
	FixedSizeChunk uint64
}

type LoreStoragePutItemArray

type LoreStoragePutItemArray = []LoreStoragePutItem

type LoreStoragePutItemArrayFFI

type LoreStoragePutItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStoragePutItemArray

func NewLoreStoragePutItemArray(arr []LoreStoragePutItem) (LoreStoragePutItemArrayFFI, func())

func (LoreStoragePutItemArrayFFI) Clone

func (LoreStoragePutItemArrayFFI) Get

func (LoreStoragePutItemArrayFFI) Len

func (arr LoreStoragePutItemArrayFFI) Len() int

type LoreStoragePutItemCompleteEventData

type LoreStoragePutItemCompleteEventData struct {
	/* Correlation id of the item. */
	Id uint64
	/* The computed content address of the stored item. */
	Address LoreAddress
	/* The outcome for the item. */
	Error LoreErrorDetail
	/* Non-zero when the local store holds the content. */
	StoredLocal bool
	/* Non-zero when the content reached the remote, or was already durable there. A remote
	write that fails still reports success if the local write succeeded — this is how a
	caller tells the two apart. For fragmented content it is the intersection across every
	fragment, so it is set only when the whole tree is remote. */
	StoredRemote bool
}

type LoreStoragePutItemCompleteEventDataFFI

type LoreStoragePutItemCompleteEventDataFFI struct {
	/* Correlation id of the item. */
	Id uint64
	/* The computed content address of the stored item. */
	Address LoreAddress
	/* The outcome for the item. */
	Error LoreErrorDetailFFI
	/* Non-zero when the local store holds the content. */
	StoredLocal uint8
	/* Non-zero when the content reached the remote, or was already durable there. A remote
	write that fails still reports success if the local write succeeded — this is how a
	caller tells the two apart. For fragmented content it is the intersection across every
	fragment, so it is set only when the whole tree is remote. */
	StoredRemote uint8
}

func (*LoreStoragePutItemCompleteEventDataFFI) Clone

type LoreStoragePutItemFFI

type LoreStoragePutItemFFI struct {
	/* Caller-chosen id echoed back in `PUT_ITEM_COMPLETE` */
	Id uint64
	/* Target partition; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Dedup tag stored alongside the content hash in the resulting address */
	Context LoreContext
	/* Borrowed view into caller memory; bytes must live until `Complete` fires */
	Data LoreBytesFFI
	/* Opt into remote upload — honored on the remote path, ignored local-only */
	RemoteWrite uint8
	/* Tag the fragment with `PayloadLocalCachePriority` so future remote reads always cache it locally */
	LocalCache uint8
	/* Ask the remote whether it already holds each fragment at its exact address before
	compressing and uploading it, and upload none it holds. With `local_cache`, a fragment the
	remote holds is still compressed for the local copy, and only its upload is spared. Costs a
	round trip per fragment the local store does not know as stored remotely. A fragment it
	knows under another context the remote holds is copied from there first, and asked about
	only if the remote refuses the copy. Takes effect only where `remote_write` does. The field
	sits in what was padding, so zero the whole item with `memset`, or give it static storage,
	before setting its fields: a non-zero padding byte from a caller built against an older
	header turns the query on */
	RemoteQuery uint8
	/* Leaf fragment size cap for large buffers; `0` lets `write_content` choose. Ignored
	for buffers under `FRAGMENT_SIZE_THRESHOLD` */
	FixedSizeChunk uint64
}

func NewLoreStoragePutItem

func NewLoreStoragePutItem(opts LoreStoragePutItem) (LoreStoragePutItemFFI, func())

func (*LoreStoragePutItemFFI) Clone

type LoreStoragePutResolvedArgs added in v0.9.0

type LoreStoragePutResolvedArgs struct {
	/* Open storage handle */
	Handle LoreStore
	/* Buffers to store and publish; each runs independently and emits its own
	`PUT_ITEM_COMPLETE` */
	Items LoreStoragePutResolvedItemArray
}

type LoreStoragePutResolvedArgsFFI added in v0.9.0

type LoreStoragePutResolvedArgsFFI struct {
	/* Open storage handle */
	Handle LoreStore
	/* Buffers to store and publish; each runs independently and emits its own
	`PUT_ITEM_COMPLETE` */
	Items LoreStoragePutResolvedItemArrayFFI
}

func NewLoreStoragePutResolvedArgs added in v0.9.0

func NewLoreStoragePutResolvedArgs(opts LoreStoragePutResolvedArgs) (LoreStoragePutResolvedArgsFFI, func())

type LoreStoragePutResolvedItem added in v0.9.0

type LoreStoragePutResolvedItem struct {
	/* Caller-chosen id echoed back in `PUT_ITEM_COMPLETE` */
	Id uint64
	/* Target partition; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Mutable key to publish the stored hash under; a zero key rejects with `INVALID_ARGUMENTS` */
	Key LoreHash
	/* Dedup tag stored alongside the content hash in the resulting address, and the context a
	later `get_resolved` must read the key at */
	Context LoreContext
	/* Borrowed view into caller memory; bytes must live until `Complete` fires. A zero-length
	buffer removes the key's mapping instead of publishing one */
	Data LoreBytes
	/* Also publish the content and the mapping to the remote; ignored when the handle has no
	remote or the call is offline/local */
	RemoteWrite bool
	/* Tag the fragment with `PayloadLocalCachePriority` so future remote reads always cache it
	locally */
	LocalCache bool
	/* Ask the remote whether it already holds each fragment at its exact address before
	compressing and uploading it, and upload none it holds. With `local_cache`, a fragment the
	remote holds is still compressed for the local copy, and only its upload is spared. Costs a
	round trip per fragment the local store does not know as stored remotely. A fragment it
	knows under another context the remote holds is copied from there first, and asked about
	only if the remote refuses the copy. Takes effect only where `remote_write` does. The field
	sits in what was padding, so zero the whole item with `memset`, or give it static storage,
	before setting its fields: a non-zero padding byte from a caller built against an older
	header turns the query on */
	RemoteQuery bool
	/* Leaf fragment size cap for large buffers; `0` lets the writer choose. Ignored for buffers
	under `FRAGMENT_SIZE_THRESHOLD` */
	FixedSizeChunk uint64
}

type LoreStoragePutResolvedItemArray added in v0.9.0

type LoreStoragePutResolvedItemArray = []LoreStoragePutResolvedItem

type LoreStoragePutResolvedItemArrayFFI added in v0.9.0

type LoreStoragePutResolvedItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStoragePutResolvedItemArray added in v0.9.0

func NewLoreStoragePutResolvedItemArray(arr []LoreStoragePutResolvedItem) (LoreStoragePutResolvedItemArrayFFI, func())

func (LoreStoragePutResolvedItemArrayFFI) Clone added in v0.9.0

func (LoreStoragePutResolvedItemArrayFFI) Get added in v0.9.0

func (LoreStoragePutResolvedItemArrayFFI) Len added in v0.9.0

type LoreStoragePutResolvedItemFFI added in v0.9.0

type LoreStoragePutResolvedItemFFI struct {
	/* Caller-chosen id echoed back in `PUT_ITEM_COMPLETE` */
	Id uint64
	/* Target partition; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Mutable key to publish the stored hash under; a zero key rejects with `INVALID_ARGUMENTS` */
	Key LoreHash
	/* Dedup tag stored alongside the content hash in the resulting address, and the context a
	later `get_resolved` must read the key at */
	Context LoreContext
	/* Borrowed view into caller memory; bytes must live until `Complete` fires. A zero-length
	buffer removes the key's mapping instead of publishing one */
	Data LoreBytesFFI
	/* Also publish the content and the mapping to the remote; ignored when the handle has no
	remote or the call is offline/local */
	RemoteWrite uint8
	/* Tag the fragment with `PayloadLocalCachePriority` so future remote reads always cache it
	locally */
	LocalCache uint8
	/* Ask the remote whether it already holds each fragment at its exact address before
	compressing and uploading it, and upload none it holds. With `local_cache`, a fragment the
	remote holds is still compressed for the local copy, and only its upload is spared. Costs a
	round trip per fragment the local store does not know as stored remotely. A fragment it
	knows under another context the remote holds is copied from there first, and asked about
	only if the remote refuses the copy. Takes effect only where `remote_write` does. The field
	sits in what was padding, so zero the whole item with `memset`, or give it static storage,
	before setting its fields: a non-zero padding byte from a caller built against an older
	header turns the query on */
	RemoteQuery uint8
	/* Leaf fragment size cap for large buffers; `0` lets the writer choose. Ignored for buffers
	under `FRAGMENT_SIZE_THRESHOLD` */
	FixedSizeChunk uint64
}

func NewLoreStoragePutResolvedItem added in v0.9.0

func NewLoreStoragePutResolvedItem(opts LoreStoragePutResolvedItem) (LoreStoragePutResolvedItemFFI, func())

func (*LoreStoragePutResolvedItemFFI) Clone added in v0.9.0

type LoreStoragePutStatsEventData added in v0.15.0

type LoreStoragePutStatsEventData struct {
	/* Items the call ran. */
	Items uint64
	/* Of `items`, those that failed. */
	ItemsFailed uint64
	/* What the call's fragment writes cost. */
	Fragments LoreFragmentStatsData
}

type LoreStoragePutStatsEventDataFFI added in v0.15.0

type LoreStoragePutStatsEventDataFFI struct {
	/* Items the call ran. */
	Items uint64
	/* Of `items`, those that failed. */
	ItemsFailed uint64
	/* What the call's fragment writes cost. */
	Fragments LoreFragmentStatsDataFFI
}

func (*LoreStoragePutStatsEventDataFFI) Clone added in v0.15.0

type LoreStorageRemoteConfig

type LoreStorageRemoteConfig struct {
	/* gRPC endpoint of the peer storage service; authenticated with the open call's `globals.identity` */
	RemoteUrl string
}

type LoreStorageRemoteConfigFFI

type LoreStorageRemoteConfigFFI struct {
	/* gRPC endpoint of the peer storage service; authenticated with the open call's `globals.identity` */
	RemoteUrl LoreString
}

func NewLoreStorageRemoteConfig

func NewLoreStorageRemoteConfig(opts LoreStorageRemoteConfig) (LoreStorageRemoteConfigFFI, func())

func (*LoreStorageRemoteConfigFFI) Clone

type LoreStorageUploadArgs

type LoreStorageUploadArgs struct {
	/* Open storage handle; must have been opened with `remote_config` */
	Handle LoreStore
	/* Addresses to push to remote; each runs independently and emits its own `UPLOAD_ITEM_COMPLETE` */
	Items LoreStorageUploadItemArray
}

type LoreStorageUploadArgsFFI

type LoreStorageUploadArgsFFI struct {
	/* Open storage handle; must have been opened with `remote_config` */
	Handle LoreStore
	/* Addresses to push to remote; each runs independently and emits its own `UPLOAD_ITEM_COMPLETE` */
	Items LoreStorageUploadItemArrayFFI
}

func NewLoreStorageUploadArgs

func NewLoreStorageUploadArgs(opts LoreStorageUploadArgs) (LoreStorageUploadArgsFFI, func())

type LoreStorageUploadItem

type LoreStorageUploadItem struct {
	/* Caller-chosen id echoed back in `UPLOAD_ITEM_COMPLETE` */
	Id uint64
	/* Partition of the local content to push; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Local content address to push; `hash == Hash::default()` is no-op success with `already_durable=1` */
	Address LoreAddress
}

type LoreStorageUploadItemArray

type LoreStorageUploadItemArray = []LoreStorageUploadItem

type LoreStorageUploadItemArrayFFI

type LoreStorageUploadItemArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreStorageUploadItemArray

func NewLoreStorageUploadItemArray(arr []LoreStorageUploadItem) (LoreStorageUploadItemArrayFFI, func())

func (LoreStorageUploadItemArrayFFI) Clone

func (LoreStorageUploadItemArrayFFI) Get

func (LoreStorageUploadItemArrayFFI) Len

type LoreStorageUploadItemCompleteEventData

type LoreStorageUploadItemCompleteEventData struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* 1 when the item was already durable and no upload was performed. */
	AlreadyDurable bool
	/* The outcome for the item. */
	Error LoreErrorDetail
}

type LoreStorageUploadItemCompleteEventDataFFI

type LoreStorageUploadItemCompleteEventDataFFI struct {
	/* Correlation id of the item. */
	Id uint64
	/* The content address of the item. */
	Address LoreAddress
	/* 1 when the item was already durable and no upload was performed. */
	AlreadyDurable uint8
	/* The outcome for the item. */
	Error LoreErrorDetailFFI
}

func (*LoreStorageUploadItemCompleteEventDataFFI) Clone

type LoreStorageUploadItemFFI

type LoreStorageUploadItemFFI struct {
	/* Caller-chosen id echoed back in `UPLOAD_ITEM_COMPLETE` */
	Id uint64
	/* Partition of the local content to push; the zero/default partition rejects with `INVALID_ARGUMENTS` */
	Partition LorePartition
	/* Local content address to push; `hash == Hash::default()` is no-op success with `already_durable=1` */
	Address LoreAddress
}

func NewLoreStorageUploadItem

func NewLoreStorageUploadItem(opts LoreStorageUploadItem) (LoreStorageUploadItemFFI, func())

func (*LoreStorageUploadItemFFI) Clone

type LoreStore

type LoreStore struct {
	/* Registry key; `0` is the reserved invalid/unregistered sentinel (zero-init = null handle) */
	HandleId uint64
}

type LoreStoreFFI

type LoreStoreFFI struct {
	/* Registry key; `0` is the reserved invalid/unregistered sentinel (zero-init = null handle) */
	HandleId uint64
}

func NewLoreStore

func NewLoreStore(opts LoreStore) (LoreStoreFFI, func())

func (*LoreStoreFFI) Clone

func (e *LoreStoreFFI) Clone() LoreStore

type LoreString

type LoreString struct {
	Length uint64 // uintptr_t
	// contains filtered or unexported fields
}

LoreString is a C-compatible string representation

func NewLoreString

func NewLoreString(s string) (LoreString, func())

NewLoreString converts a Go string to LoreString

func (LoreString) Clone

func (u LoreString) Clone() string

Clone converts LoreString from FFI memory to Go string

func (LoreString) String

func (u LoreString) String() string

String converts LoreString to a Go string Returns empty string if the pointer is null or length is 0 Implements fmt.Stringer interface

type LoreStringArrayFFI

type LoreStringArrayFFI struct {
	Ptr   uintptr // pointer to array of LoreString
	Count uint64  // uintptr_t
}

LoreStringArrayFFI is a C-compatible string array representation

func NewLoreStringArray

func NewLoreStringArray(strs []string) (LoreStringArrayFFI, func())

NewLoreStringArray converts []string to LoreStringArrayFFI

func (LoreStringArrayFFI) Clone

func (arr LoreStringArrayFFI) Clone() []string

Clone converts LoreStringArrayFFI from FFI memory to Go []string This creates a copy of the data that remains valid after the callback returns

func (LoreStringArrayFFI) Get

func (arr LoreStringArrayFFI) Get(index int) string

Get returns the string at the specified index Converts LoreString to Go string Panics if index is out of bounds

func (LoreStringArrayFFI) Len

func (arr LoreStringArrayFFI) Len() int

Len returns the number of elements in the array

type LoreTraceLocation added in v0.8.4

type LoreTraceLocation struct {
	/* The source file path. */
	File string
	/* The line number in the source file. */
	Line uint32
	/* The column number in the source file. */
	Column uint32
	/* The context describing the operation at this location, or an empty
	string when the location has none. */
	Context string
}

type LoreTraceLocationArray added in v0.8.4

type LoreTraceLocationArray = []LoreTraceLocation

type LoreTraceLocationArrayFFI added in v0.8.4

type LoreTraceLocationArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreTraceLocationArray added in v0.8.4

func NewLoreTraceLocationArray(arr []LoreTraceLocation) (LoreTraceLocationArrayFFI, func())

func (LoreTraceLocationArrayFFI) Clone added in v0.8.4

func (LoreTraceLocationArrayFFI) Get added in v0.8.4

func (LoreTraceLocationArrayFFI) Len added in v0.8.4

func (arr LoreTraceLocationArrayFFI) Len() int

type LoreTraceLocationFFI added in v0.8.4

type LoreTraceLocationFFI struct {
	/* The source file path. */
	File LoreString
	/* The line number in the source file. */
	Line uint32
	/* The column number in the source file. */
	Column uint32
	/* The context describing the operation at this location, or an empty
	string when the location has none. */
	Context LoreString
}

func NewLoreTraceLocation added in v0.8.4

func NewLoreTraceLocation(opts LoreTraceLocation) (LoreTraceLocationFFI, func())

func (*LoreTraceLocationFFI) Clone added in v0.8.4

type LoreUint8Array

type LoreUint8Array = []bool

type LoreUint8ArrayFFI

type LoreUint8ArrayFFI struct {
	Ptr   uintptr // pointer to array of uint8
	Count uint64  // uintptr_t
}

LoreUint8ArrayFFI is a C-compatible array representation

func NewLoreUint8Array

func NewLoreUint8Array(values []bool) (LoreUint8ArrayFFI, func())

NewLoreUint8Array converts []bool to LoreUint8ArrayFFI

func (LoreUint8ArrayFFI) Clone

func (arr LoreUint8ArrayFFI) Clone() []bool

Clone converts LoreUint8ArrayFFI from FFI memory to Go []bool This creates a copy of the data that remains valid after the callback returns

func (LoreUint8ArrayFFI) Get

func (arr LoreUint8ArrayFFI) Get(index int) bool

Get returns the element at the specified index from FFI memory Panics if index is out of bounds

func (LoreUint8ArrayFFI) Len

func (arr LoreUint8ArrayFFI) Len() int

Len returns the number of elements in the array

type LoreUint32Array

type LoreUint32Array = []uint32

type LoreUint32ArrayFFI

type LoreUint32ArrayFFI struct {
	Ptr   uintptr
	Count uint64
}

func NewLoreUint32Array

func NewLoreUint32Array(arr []uint32) (LoreUint32ArrayFFI, func())

func (LoreUint32ArrayFFI) Clone

func (arr LoreUint32ArrayFFI) Clone() []uint32

func (LoreUint32ArrayFFI) Get

func (arr LoreUint32ArrayFFI) Get(index int) uint32

func (LoreUint32ArrayFFI) Len

func (arr LoreUint32ArrayFFI) Len() int

type LoreVfsType added in v0.10.0

type LoreVfsType int32
const (
	LoreVfsType_NONE    LoreVfsType = 0
	LoreVfsType_DEFAULT LoreVfsType = 1
	LoreVfsType_SWFS    LoreVfsType = 2
	LoreVfsType_FUSE    LoreVfsType = 3
)

Jump to

Keyboard shortcuts

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