Documentation ¶
Index ¶
- Constants
- Variables
- func EntryToValue(entry *Entry) (*graveler.Value, error)
- func MustEntryToValue(entry *Entry) *graveler.Value
- func NewEntryToValueIterator(it EntryIterator) *entryValueIterator
- func NewValueToEntryIterator(it graveler.ValueIterator) *valueEntryIterator
- func Validate(args []ValidateArg) error
- func ValidateBranchID(v interface{}) error
- func ValidateCommitID(v interface{}) error
- func ValidateNonNegativeInt(v interface{}) error
- func ValidatePath(v interface{}) error
- func ValidateRef(v interface{}) error
- func ValidateRepositoryID(v interface{}) error
- func ValidateRequiredString(v interface{}) error
- func ValidateStorageNamespace(v interface{}) error
- func ValidateTagID(v interface{}) error
- type ActionsOutputWriter
- type ActionsSource
- type Branch
- type Cataloger
- type CommitLog
- type Config
- type DBEntry
- type DiffParams
- type DiffResultRecord
- type Difference
- type DifferenceType
- type Differences
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)deprecated
- func (x *Entry) GetAddress() string
- func (x *Entry) GetETag() string
- func (x *Entry) GetLastModified() *timestamppb.Timestamp
- func (x *Entry) GetMetadata() map[string]string
- func (x *Entry) GetSize() int64
- func (*Entry) ProtoMessage()
- func (x *Entry) ProtoReflect() protoreflect.Message
- func (x *Entry) Reset()
- func (x *Entry) String() string
- type EntryCatalog
- func (e *EntryCatalog) AddCommit(ctx context.Context, repositoryID graveler.RepositoryID, ...) (graveler.CommitID, error)
- func (e *EntryCatalog) AddCommitToBranchHead(ctx context.Context, repositoryID graveler.RepositoryID, ...) (graveler.CommitID, error)
- func (e *EntryCatalog) Commit(ctx context.Context, repositoryID graveler.RepositoryID, ...) (graveler.CommitID, error)
- func (e *EntryCatalog) Compare(ctx context.Context, repositoryID graveler.RepositoryID, from graveler.Ref, ...) (EntryDiffIterator, error)
- func (e *EntryCatalog) CreateBareRepository(ctx context.Context, repositoryID graveler.RepositoryID, ...) (*graveler.Repository, error)
- func (e *EntryCatalog) CreateBranch(ctx context.Context, repositoryID graveler.RepositoryID, ...) (*graveler.Branch, error)
- func (e *EntryCatalog) CreateRepository(ctx context.Context, repositoryID graveler.RepositoryID, ...) (*graveler.Repository, error)
- func (e *EntryCatalog) CreateTag(ctx context.Context, repositoryID graveler.RepositoryID, tagID graveler.TagID, ...) error
- func (e *EntryCatalog) DeleteBranch(ctx context.Context, repositoryID graveler.RepositoryID, ...) error
- func (e *EntryCatalog) DeleteEntry(ctx context.Context, repositoryID graveler.RepositoryID, ...) error
- func (e *EntryCatalog) DeleteRepository(ctx context.Context, repositoryID graveler.RepositoryID) error
- func (e *EntryCatalog) DeleteTag(ctx context.Context, repositoryID graveler.RepositoryID, tagID graveler.TagID) error
- func (e *EntryCatalog) Dereference(ctx context.Context, repositoryID graveler.RepositoryID, ref graveler.Ref) (graveler.CommitID, error)
- func (e *EntryCatalog) Diff(ctx context.Context, repositoryID graveler.RepositoryID, ...) (EntryDiffIterator, error)
- func (e *EntryCatalog) DiffUncommitted(ctx context.Context, repositoryID graveler.RepositoryID, ...) (EntryDiffIterator, error)
- func (e *EntryCatalog) DumpBranches(ctx context.Context, repositoryID graveler.RepositoryID) (*graveler.MetaRangeID, error)
- func (e *EntryCatalog) DumpCommits(ctx context.Context, repositoryID graveler.RepositoryID) (*graveler.MetaRangeID, error)
- func (e *EntryCatalog) DumpTags(ctx context.Context, repositoryID graveler.RepositoryID) (*graveler.MetaRangeID, error)
- func (e *EntryCatalog) GetBranch(ctx context.Context, repositoryID graveler.RepositoryID, ...) (*graveler.Branch, error)
- func (e *EntryCatalog) GetCommit(ctx context.Context, repositoryID graveler.RepositoryID, ...) (*graveler.Commit, error)
- func (e *EntryCatalog) GetEntry(ctx context.Context, repositoryID graveler.RepositoryID, ref graveler.Ref, ...) (*Entry, error)
- func (e *EntryCatalog) GetMetaRange(ctx context.Context, repositoryID graveler.RepositoryID, ...) (graveler.MetaRangeInfo, error)
- func (e *EntryCatalog) GetRange(ctx context.Context, repositoryID graveler.RepositoryID, ...) (graveler.RangeInfo, error)
- func (e *EntryCatalog) GetRepository(ctx context.Context, repositoryID graveler.RepositoryID) (*graveler.Repository, error)
- func (e *EntryCatalog) GetTag(ctx context.Context, repositoryID graveler.RepositoryID, tagID graveler.TagID) (*graveler.CommitID, error)
- func (e *EntryCatalog) ListBranches(ctx context.Context, repositoryID graveler.RepositoryID) (graveler.BranchIterator, error)
- func (e *EntryCatalog) ListEntries(ctx context.Context, repositoryID graveler.RepositoryID, ref graveler.Ref, ...) (EntryListingIterator, error)
- func (e *EntryCatalog) ListRepositories(ctx context.Context) (graveler.RepositoryIterator, error)
- func (e *EntryCatalog) ListTags(ctx context.Context, repositoryID graveler.RepositoryID) (graveler.TagIterator, error)
- func (e *EntryCatalog) LoadBranches(ctx context.Context, repositoryID graveler.RepositoryID, ...) error
- func (e *EntryCatalog) LoadCommits(ctx context.Context, repositoryID graveler.RepositoryID, ...) error
- func (e *EntryCatalog) LoadTags(ctx context.Context, repositoryID graveler.RepositoryID, ...) error
- func (e *EntryCatalog) Log(ctx context.Context, repositoryID graveler.RepositoryID, ...) (graveler.CommitIterator, error)
- func (e *EntryCatalog) Merge(ctx context.Context, repositoryID graveler.RepositoryID, ...) (graveler.CommitID, graveler.DiffSummary, error)
- func (e *EntryCatalog) Reset(ctx context.Context, repositoryID graveler.RepositoryID, ...) error
- func (e *EntryCatalog) ResetKey(ctx context.Context, repositoryID graveler.RepositoryID, ...) error
- func (e *EntryCatalog) ResetPrefix(ctx context.Context, repositoryID graveler.RepositoryID, ...) error
- func (e *EntryCatalog) Revert(ctx context.Context, repositoryID graveler.RepositoryID, ...) (graveler.CommitID, graveler.DiffSummary, error)
- func (e *EntryCatalog) SetEntry(ctx context.Context, repositoryID graveler.RepositoryID, ...) error
- func (e *EntryCatalog) SetHooksHandler(hooks graveler.HooksHandler)
- func (e *EntryCatalog) UpdateBranch(ctx context.Context, repositoryID graveler.RepositoryID, ...) (*graveler.Branch, error)
- func (e *EntryCatalog) WriteMetaRange(ctx context.Context, repositoryID graveler.RepositoryID, it EntryIterator) (*graveler.MetaRangeID, error)
- type EntryDiff
- type EntryDiffIterator
- type EntryIterator
- type EntryListing
- type EntryListingIterator
- type EntryRecord
- type ExpireResult
- type ExpiryRows
- type GetEntryParams
- type MergeResult
- type Metadata
- type Path
- type Repository
- type RevertParams
- type Store
- type Tag
- type ValidateArg
- type ValidateFunc
Constants ¶
View Source
const ( RangeFSName = "range" MetaRangeFSName = "meta-range" )
View Source
const ( DBEntryFieldChecksum = "checksum" DBEntryFieldPhysicalAddress = "physical_address" )
View Source
const ( ListRepositoriesLimitMax = 1000 ListBranchesLimitMax = 1000 ListTagsLimitMax = 1000 DiffLimitMax = 1000 ListEntriesLimitMax = 10000 )
View Source
const (
DefaultPathDelimiter = "/"
)
View Source
const (
MaxPathLength = 1024
)
Variables ¶
View Source
var ( ErrNotFound = db.ErrNotFound ErrInvalidMetadataSrcFormat = errors.New("invalid metadata src format") ErrExpired = errors.New("expired from storage") ErrFeatureNotSupported = errors.New("feature not supported") ErrBranchNotFound = fmt.Errorf("branch %w", ErrNotFound) ErrRepositoryNotFound = fmt.Errorf("repository %w", ErrNotFound) ErrInvalidValue = errors.New("invalid value") ErrNoDifferenceWasFound = errors.New("no difference was found") ErrConflictFound = errors.New("conflict found") ErrUnsupportedRelation = errors.New("unsupported relation") )
View Source
var ( ErrInvalidType = errors.New("invalid type") ErrRequiredValue = errors.New("required value") )
View Source
var ErrUnknownDiffType = errors.New("unknown graveler difference type")
View Source
var File_catalog_proto protoreflect.FileDescriptor
View Source
var ValidatePathOptional = MakeValidateOptional(ValidatePath)
View Source
var ValidateTagIDOptional = MakeValidateOptional(ValidateTagID)
Functions ¶
func MustEntryToValue ¶ added in v0.31.0
func NewEntryToValueIterator ¶ added in v0.31.0
func NewEntryToValueIterator(it EntryIterator) *entryValueIterator
func NewValueToEntryIterator ¶ added in v0.31.0
func NewValueToEntryIterator(it graveler.ValueIterator) *valueEntryIterator
func Validate ¶
func Validate(args []ValidateArg) error
func ValidateBranchID ¶ added in v0.31.0
func ValidateBranchID(v interface{}) error
func ValidateCommitID ¶ added in v0.31.0
func ValidateCommitID(v interface{}) error
func ValidateNonNegativeInt ¶ added in v0.31.0
func ValidateNonNegativeInt(v interface{}) error
func ValidatePath ¶
func ValidatePath(v interface{}) error
func ValidateRef ¶ added in v0.31.0
func ValidateRef(v interface{}) error
func ValidateRepositoryID ¶ added in v0.31.0
func ValidateRepositoryID(v interface{}) error
func ValidateRequiredString ¶ added in v0.31.0
func ValidateRequiredString(v interface{}) error
func ValidateStorageNamespace ¶
func ValidateStorageNamespace(v interface{}) error
func ValidateTagID ¶ added in v0.31.0
func ValidateTagID(v interface{}) error
Types ¶
type ActionsOutputWriter ¶ added in v0.33.0
type ActionsOutputWriter struct {
// contains filtered or unexported fields
}
func NewActionsOutputWriter ¶ added in v0.33.0
func NewActionsOutputWriter(blockAdapter block.Adapter) *ActionsOutputWriter
func (*ActionsOutputWriter) OutputWrite ¶ added in v0.33.0
type ActionsSource ¶ added in v0.33.0
type ActionsSource struct {
// contains filtered or unexported fields
}
func NewActionsSource ¶ added in v0.33.0
func NewActionsSource(entryCatalog *EntryCatalog) *ActionsSource
func (*ActionsSource) List ¶ added in v0.33.0
func (s *ActionsSource) List(ctx context.Context, record graveler.HookRecord) ([]string, error)
func (*ActionsSource) Load ¶ added in v0.33.0
func (s *ActionsSource) Load(ctx context.Context, record graveler.HookRecord, name string) ([]byte, error)
type Cataloger ¶
type Cataloger interface { // CreateRepository create a new repository pointing to 'storageNamespace' (ex: s3://bucket1/repo) with default branch name 'branch' CreateRepository(ctx context.Context, repository string, storageNamespace string, branch string) (*Repository, error) // CreateBareRepository create a new repository pointing to 'storageNamespace' (ex: s3://bucket1/repo) with no initial branch or commit // defaultBranchID will point to a non-existent branch on creation, it is up to the caller to eventually create it. CreateBareRepository(ctx context.Context, repository string, storageNamespace string, defaultBranchID string) (*Repository, error) // GetRepository get repository information GetRepository(ctx context.Context, repository string) (*Repository, error) // DeleteRepository delete a repository DeleteRepository(ctx context.Context, repository string) error // ListRepositories list repositories information, the bool returned is true when more repositories can be listed. // In this case pass the last repository name as 'after' on the next call to ListRepositories ListRepositories(ctx context.Context, limit int, after string) ([]*Repository, bool, error) CreateBranch(ctx context.Context, repository, branch string, sourceRef string) (*CommitLog, error) DeleteBranch(ctx context.Context, repository, branch string) error ListBranches(ctx context.Context, repository string, prefix string, limit int, after string) ([]*Branch, bool, error) BranchExists(ctx context.Context, repository string, branch string) (bool, error) GetBranchReference(ctx context.Context, repository, branch string) (string, error) ResetBranch(ctx context.Context, repository, branch string) error CreateTag(ctx context.Context, repository, tagID string, ref string) (string, error) DeleteTag(ctx context.Context, repository, tagID string) error ListTags(ctx context.Context, repository string, limit int, after string) ([]*Tag, bool, error) GetTag(ctx context.Context, repository, tagID string) (string, error) // GetEntry returns the current entry for path in repository branch reference. Returns // the entry with ExpiredError if it has expired from underlying storage. GetEntry(ctx context.Context, repository, reference string, path string, params GetEntryParams) (*DBEntry, error) CreateEntry(ctx context.Context, repository, branch string, entry DBEntry) error CreateEntries(ctx context.Context, repository, branch string, entries []DBEntry) error DeleteEntry(ctx context.Context, repository, branch string, path string) error ListEntries(ctx context.Context, repository, reference string, prefix, after string, delimiter string, limit int) ([]*DBEntry, bool, error) ResetEntry(ctx context.Context, repository, branch string, path string) error ResetEntries(ctx context.Context, repository, branch string, prefix string) error Commit(ctx context.Context, repository, branch string, message string, committer string, metadata Metadata) (*CommitLog, error) GetCommit(ctx context.Context, repository, reference string) (*CommitLog, error) ListCommits(ctx context.Context, repository, branch string, fromReference string, limit int) ([]*CommitLog, bool, error) // RollbackCommit sets the branch to point at the given commit, losing all later commits. RollbackCommit(ctx context.Context, repository, branch string, reference string) error // Revert creates a reverse patch to the given commit, and applies it as a new commit on the given branch. Revert(ctx context.Context, repository, branch string, params RevertParams) error Diff(ctx context.Context, repository, leftReference string, rightReference string, params DiffParams) (Differences, bool, error) Compare(ctx context.Context, repository, leftReference string, rightReference string, params DiffParams) (Differences, bool, error) DiffUncommitted(ctx context.Context, repository, branch string, limit int, after string) (Differences, bool, error) Merge(ctx context.Context, repository, destinationBranch, sourceRef, committer, message string, metadata Metadata) (*MergeResult, error) // dump/load metadata DumpCommits(ctx context.Context, repositoryID string) (string, error) DumpBranches(ctx context.Context, repositoryID string) (string, error) DumpTags(ctx context.Context, repositoryID string) (string, error) LoadCommits(ctx context.Context, repositoryID, commitsMetaRangeID string) error LoadBranches(ctx context.Context, repositoryID, branchesMetaRangeID string) error LoadTags(ctx context.Context, repositoryID, tagsMetaRangeID string) error // forward metadata for thick clients GetMetaRange(ctx context.Context, repositoryID, metaRangeID string) (graveler.MetaRangeInfo, error) GetRange(ctx context.Context, repositoryID, rangeID string) (graveler.RangeInfo, error) // GetEntryCatalog return underlying EntryCatalog until Cataloger is removed GetEntryCatalog() *EntryCatalog io.Closer }
func NewCataloger ¶
type DiffParams ¶ added in v0.15.0
type DiffResultRecord ¶ added in v0.16.0
type DiffResultRecord struct { TargetEntryNotInDirectBranch bool // the entry is reflected via lineage, NOT in the branch itself Difference EntryCtid *string // CTID of the modified/added entry. Do not use outside of catalog diff-by-iterators. https://github.com/treeverse/lakeFS/issues/831 }
type Difference ¶
type Difference struct { DBEntry // Partially filled. Path is always set. Type DifferenceType `db:"diff_type"` }
func (Difference) String ¶
func (d Difference) String() string
type DifferenceType ¶
type DifferenceType int
const ( DifferenceTypeAdded DifferenceType = iota DifferenceTypeRemoved DifferenceTypeChanged DifferenceTypeConflict DifferenceTypeNone )
type Differences ¶
type Differences []Difference
func (Differences) Equal ¶
func (d Differences) Equal(other Differences) bool
type Entry ¶
type Entry struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` LastModified *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` ETag string `protobuf:"bytes,4,opt,name=e_tag,json=eTag,proto3" json:"e_tag,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func EntryFromCatalogEntry ¶ added in v0.31.0
func (*Entry) Descriptor
deprecated
added in
v0.31.0
func (*Entry) GetAddress ¶ added in v0.31.0
func (*Entry) GetLastModified ¶ added in v0.31.0
func (x *Entry) GetLastModified() *timestamppb.Timestamp
func (*Entry) GetMetadata ¶ added in v0.31.0
func (*Entry) ProtoMessage ¶ added in v0.31.0
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶ added in v0.31.0
func (x *Entry) ProtoReflect() protoreflect.Message
type EntryCatalog ¶ added in v0.31.0
func NewEntryCatalog ¶ added in v0.31.0
func NewEntryCatalog(cfg Config) (*EntryCatalog, error)
func (*EntryCatalog) AddCommit ¶ added in v0.31.0
func (e *EntryCatalog) AddCommit(ctx context.Context, repositoryID graveler.RepositoryID, commit graveler.Commit) (graveler.CommitID, error)
func (*EntryCatalog) AddCommitToBranchHead ¶ added in v0.31.0
func (*EntryCatalog) Commit ¶ added in v0.31.0
func (e *EntryCatalog) Commit(ctx context.Context, repositoryID graveler.RepositoryID, branchID graveler.BranchID, commitParams graveler.CommitParams) (graveler.CommitID, error)
func (*EntryCatalog) Compare ¶ added in v0.31.0
func (e *EntryCatalog) Compare(ctx context.Context, repositoryID graveler.RepositoryID, from graveler.Ref, to graveler.Ref) (EntryDiffIterator, error)
func (*EntryCatalog) CreateBareRepository ¶ added in v0.32.0
func (e *EntryCatalog) CreateBareRepository(ctx context.Context, repositoryID graveler.RepositoryID, storageNamespace graveler.StorageNamespace, defaultBranchID graveler.BranchID) (*graveler.Repository, error)
func (*EntryCatalog) CreateBranch ¶ added in v0.31.0
func (*EntryCatalog) CreateRepository ¶ added in v0.31.0
func (e *EntryCatalog) CreateRepository(ctx context.Context, repositoryID graveler.RepositoryID, storageNamespace graveler.StorageNamespace, branchID graveler.BranchID) (*graveler.Repository, error)
func (*EntryCatalog) CreateTag ¶ added in v0.31.0
func (e *EntryCatalog) CreateTag(ctx context.Context, repositoryID graveler.RepositoryID, tagID graveler.TagID, commitID graveler.CommitID) error
func (*EntryCatalog) DeleteBranch ¶ added in v0.31.0
func (e *EntryCatalog) DeleteBranch(ctx context.Context, repositoryID graveler.RepositoryID, branchID graveler.BranchID) error
func (*EntryCatalog) DeleteEntry ¶ added in v0.31.0
func (e *EntryCatalog) DeleteEntry(ctx context.Context, repositoryID graveler.RepositoryID, branchID graveler.BranchID, path Path) error
func (*EntryCatalog) DeleteRepository ¶ added in v0.31.0
func (e *EntryCatalog) DeleteRepository(ctx context.Context, repositoryID graveler.RepositoryID) error
func (*EntryCatalog) DeleteTag ¶ added in v0.31.0
func (e *EntryCatalog) DeleteTag(ctx context.Context, repositoryID graveler.RepositoryID, tagID graveler.TagID) error
func (*EntryCatalog) Dereference ¶ added in v0.31.0
func (e *EntryCatalog) Dereference(ctx context.Context, repositoryID graveler.RepositoryID, ref graveler.Ref) (graveler.CommitID, error)
func (*EntryCatalog) Diff ¶ added in v0.31.0
func (e *EntryCatalog) Diff(ctx context.Context, repositoryID graveler.RepositoryID, left, right graveler.Ref) (EntryDiffIterator, error)
func (*EntryCatalog) DiffUncommitted ¶ added in v0.31.0
func (e *EntryCatalog) DiffUncommitted(ctx context.Context, repositoryID graveler.RepositoryID, branchID graveler.BranchID) (EntryDiffIterator, error)
func (*EntryCatalog) DumpBranches ¶ added in v0.31.1
func (e *EntryCatalog) DumpBranches(ctx context.Context, repositoryID graveler.RepositoryID) (*graveler.MetaRangeID, error)
func (*EntryCatalog) DumpCommits ¶ added in v0.31.1
func (e *EntryCatalog) DumpCommits(ctx context.Context, repositoryID graveler.RepositoryID) (*graveler.MetaRangeID, error)
func (*EntryCatalog) DumpTags ¶ added in v0.31.1
func (e *EntryCatalog) DumpTags(ctx context.Context, repositoryID graveler.RepositoryID) (*graveler.MetaRangeID, error)
func (*EntryCatalog) GetBranch ¶ added in v0.31.0
func (e *EntryCatalog) GetBranch(ctx context.Context, repositoryID graveler.RepositoryID, branchID graveler.BranchID) (*graveler.Branch, error)
func (*EntryCatalog) GetCommit ¶ added in v0.31.0
func (e *EntryCatalog) GetCommit(ctx context.Context, repositoryID graveler.RepositoryID, commitID graveler.CommitID) (*graveler.Commit, error)
func (*EntryCatalog) GetEntry ¶ added in v0.31.0
func (e *EntryCatalog) GetEntry(ctx context.Context, repositoryID graveler.RepositoryID, ref graveler.Ref, path Path) (*Entry, error)
func (*EntryCatalog) GetMetaRange ¶ added in v0.32.0
func (e *EntryCatalog) GetMetaRange(ctx context.Context, repositoryID graveler.RepositoryID, metaRangeID graveler.MetaRangeID) (graveler.MetaRangeInfo, error)
func (*EntryCatalog) GetRange ¶ added in v0.32.0
func (e *EntryCatalog) GetRange(ctx context.Context, repositoryID graveler.RepositoryID, rangeID graveler.RangeID) (graveler.RangeInfo, error)
func (*EntryCatalog) GetRepository ¶ added in v0.31.0
func (e *EntryCatalog) GetRepository(ctx context.Context, repositoryID graveler.RepositoryID) (*graveler.Repository, error)
func (*EntryCatalog) GetTag ¶ added in v0.31.0
func (e *EntryCatalog) GetTag(ctx context.Context, repositoryID graveler.RepositoryID, tagID graveler.TagID) (*graveler.CommitID, error)
func (*EntryCatalog) ListBranches ¶ added in v0.31.0
func (e *EntryCatalog) ListBranches(ctx context.Context, repositoryID graveler.RepositoryID) (graveler.BranchIterator, error)
func (*EntryCatalog) ListEntries ¶ added in v0.31.0
func (e *EntryCatalog) ListEntries(ctx context.Context, repositoryID graveler.RepositoryID, ref graveler.Ref, prefix, delimiter Path) (EntryListingIterator, error)
func (*EntryCatalog) ListRepositories ¶ added in v0.31.0
func (e *EntryCatalog) ListRepositories(ctx context.Context) (graveler.RepositoryIterator, error)
func (*EntryCatalog) ListTags ¶ added in v0.31.0
func (e *EntryCatalog) ListTags(ctx context.Context, repositoryID graveler.RepositoryID) (graveler.TagIterator, error)
func (*EntryCatalog) LoadBranches ¶ added in v0.32.0
func (e *EntryCatalog) LoadBranches(ctx context.Context, repositoryID graveler.RepositoryID, metaRangeID graveler.MetaRangeID) error
func (*EntryCatalog) LoadCommits ¶ added in v0.32.0
func (e *EntryCatalog) LoadCommits(ctx context.Context, repositoryID graveler.RepositoryID, metaRangeID graveler.MetaRangeID) error
func (*EntryCatalog) LoadTags ¶ added in v0.32.0
func (e *EntryCatalog) LoadTags(ctx context.Context, repositoryID graveler.RepositoryID, metaRangeID graveler.MetaRangeID) error
func (*EntryCatalog) Log ¶ added in v0.31.0
func (e *EntryCatalog) Log(ctx context.Context, repositoryID graveler.RepositoryID, commitID graveler.CommitID) (graveler.CommitIterator, error)
func (*EntryCatalog) Merge ¶ added in v0.31.0
func (e *EntryCatalog) Merge(ctx context.Context, repositoryID graveler.RepositoryID, destination graveler.BranchID, source graveler.Ref, commitParams graveler.CommitParams) (graveler.CommitID, graveler.DiffSummary, error)
func (*EntryCatalog) Reset ¶ added in v0.31.0
func (e *EntryCatalog) Reset(ctx context.Context, repositoryID graveler.RepositoryID, branchID graveler.BranchID) error
func (*EntryCatalog) ResetKey ¶ added in v0.31.0
func (e *EntryCatalog) ResetKey(ctx context.Context, repositoryID graveler.RepositoryID, branchID graveler.BranchID, path Path) error
func (*EntryCatalog) ResetPrefix ¶ added in v0.31.0
func (e *EntryCatalog) ResetPrefix(ctx context.Context, repositoryID graveler.RepositoryID, branchID graveler.BranchID, prefix Path) error
func (*EntryCatalog) Revert ¶ added in v0.31.0
func (e *EntryCatalog) Revert(ctx context.Context, repositoryID graveler.RepositoryID, branchID graveler.BranchID, ref graveler.Ref, parentNumber int, commitParams graveler.CommitParams) (graveler.CommitID, graveler.DiffSummary, error)
func (*EntryCatalog) SetEntry ¶ added in v0.31.0
func (e *EntryCatalog) SetEntry(ctx context.Context, repositoryID graveler.RepositoryID, branchID graveler.BranchID, path Path, entry *Entry) error
func (*EntryCatalog) SetHooksHandler ¶ added in v0.33.0
func (e *EntryCatalog) SetHooksHandler(hooks graveler.HooksHandler)
func (*EntryCatalog) UpdateBranch ¶ added in v0.31.0
func (*EntryCatalog) WriteMetaRange ¶ added in v0.31.0
func (e *EntryCatalog) WriteMetaRange(ctx context.Context, repositoryID graveler.RepositoryID, it EntryIterator) (*graveler.MetaRangeID, error)
type EntryDiffIterator ¶ added in v0.31.0
type EntryDiffIterator interface { Next() bool SeekGE(id Path) Value() *EntryDiff Err() error Close() }
func NewEntryDiffIterator ¶ added in v0.31.0
func NewEntryDiffIterator(it graveler.DiffIterator) EntryDiffIterator
type EntryIterator ¶ added in v0.31.0
type EntryIterator interface { Next() bool SeekGE(id Path) Value() *EntryRecord Err() error Close() }
func NewPrefixIterator ¶ added in v0.31.0
func NewPrefixIterator(it EntryIterator, prefix Path) EntryIterator
type EntryListing ¶ added in v0.31.0
type EntryListingIterator ¶ added in v0.31.0
type EntryListingIterator interface { Next() bool SeekGE(id Path) Value() *EntryListing Err() error Close() }
func NewEntryListingIterator ¶ added in v0.31.0
func NewEntryListingIterator(it EntryIterator, prefix Path, delimiter Path) EntryListingIterator
type EntryRecord ¶ added in v0.31.0
type ExpireResult ¶
type ExpiryRows ¶
type ExpiryRows interface { Close() Next() bool Err() error // Read returns the current from ExpiryRows, or an error on failure. Call it only after // successfully calling Next. Read() (*ExpireResult, error) }
ExpiryRows is a database iterator over ExpiryResults. Use Next to advance from row to row.
type GetEntryParams ¶
type GetEntryParams struct { // For entries to expired objects the Expired bit is set. If true, GetEntry returns // successfully for expired entries, otherwise it returns the entry with ErrExpired. ReturnExpired bool }
GetEntryParams configures what entries GetEntry returns.
type MergeResult ¶
type MergeResult struct { Summary map[DifferenceType]int Reference string }
type Repository ¶
type RevertParams ¶ added in v0.31.0
type Store ¶ added in v0.31.0
type Store interface { graveler.KeyValueStore graveler.VersionController graveler.Dumper graveler.Plumbing graveler.Loader }
type ValidateArg ¶ added in v0.31.0
type ValidateArg struct { Name string Value interface{} Fn ValidateFunc }
type ValidateFunc ¶
type ValidateFunc func(v interface{}) error
func MakeValidateOptional ¶ added in v0.31.0
func MakeValidateOptional(fn ValidateFunc) ValidateFunc
Source Files ¶
Click to show internal directories.
Click to hide internal directories.