go-git.v4: gopkg.in/src-d/go-git.v4/storage Index | Files | Directories

package storage

import "gopkg.in/src-d/go-git.v4/storage"

Index

Package Files

storer.go

Variables

var ErrReferenceHasChanged = errors.New("reference has changed concurrently")

type ModuleStorer Uses

type ModuleStorer interface {
    // Module returns a Storer representing a submodule, if not exists returns a
    // new empty Storer is returned
    Module(name string) (Storer, error)
}

ModuleStorer allows interact with the modules' Storers

type Storer Uses

type Storer interface {
    storer.EncodedObjectStorer
    storer.ReferenceStorer
    storer.ShallowStorer
    storer.IndexStorer
    config.ConfigStorer
    ModuleStorer
}

Storer is a generic storage of objects, references and any information related to a particular repository. The package gopkg.in/src-d/go-git.v4/storage contains two implementation a filesystem base implementation (such as `.git`) and a memory implementations being ephemeral

Directories

PathSynopsis
filesystemPackage filesystem is a storage backend base on filesystems
filesystem/dotgithttps://github.com/git/git/blob/master/Documentation/gitrepository-layout.txt
memoryPackage memory is a storage backend base on memory
test
transactionalPackage transactional is a transactional implementation of git.Storer, it demux the write and read operation of two separate storers, allowing to merge content calling Storage.Commit.

Package storage imports 3 packages (graph) and is imported by 39 packages. Updated 2019-08-02. Refresh now. Tools for package owners.