storage

package
v5.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type ModuleStorer

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

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

Directories

Path Synopsis
Package filesystem is a storage backend base on filesystems
Package filesystem is a storage backend base on filesystems
dotgit
https://github.com/git/git/blob/master/Documentation/gitrepository-layout.txt
https://github.com/git/git/blob/master/Documentation/gitrepository-layout.txt
Package memory is a storage backend base on memory
Package memory is a storage backend base on memory
Package 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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL