Documentation
¶
Overview ¶
Copyright (c) 2016-present GitLab Inc. SPDX-License-Identifier: MIT
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Name ¶
type Name struct {
// MinUpdateIndex is the minimum update index contained in the file.
MinUpdateIndex uint64
// MinUpdateIndex is the maximum update index contained in the file.
MaxUpdateIndex uint64
// Suffix is the random suffix in the table's name.
Suffix string
}
Name contains the structured information in the name of a .ref file.
func ReadTablesList ¶
ReadTablesList returns a list of tables in the "tables.list" for the reftable backend.
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table represents .ref table file.
func ParseTable ¶
ParseTable opens the table at the given path and parses it. Close must be called once the table is no longer used to close the associated file.
func (*Table) GetReferences ¶
GetReferences returns all references from the table.
func (*Table) MaxUpdateIndex ¶
MaxUpdateIndex is the maximum update index in the table.
func (*Table) MinUpdateIndex ¶
MinUpdateIndex is the minimum update index in the table.
func (*Table) PatchUpdateIndexes ¶
PatchUpdateIndexes patches in-place the update indexes stored in the table's header and footer, and syncs the file to the disk.