git

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git core.Server

func (*Git) AdvertisedReferences

func (s *Git) AdvertisedReferences(w http.ResponseWriter, req *http.Request)

AdvertisedReferences retrieves the advertised references for a repository.

func (*Git) ReceivePack

func (s *Git) ReceivePack(w http.ResponseWriter, req *http.Request)

ReceivePack updates a repository with a packfile and replies with a status.

func (*Git) UploadPack

func (s *Git) UploadPack(w http.ResponseWriter, req *http.Request)

UploadPack sends a packfile containing requested references.

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

Loader loads repositories from IPFS.

func NewLoader

func NewLoader(ctx context.Context, ds ipld.DAGService, id cid.Cid) *Loader

NewLoader returns a new IPFS loader.

func (*Loader) Load

func (l *Loader) Load(ep *transport.Endpoint) (storer.Storer, error)

Load loads a storer given a transport endpoint.

func (*Loader) Node

func (l *Loader) Node() (ipld.Node, error)

Node returns the final unixfs node.

Jump to

Keyboard shortcuts

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