gitdb

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckoutHandler

type CheckoutHandler struct {
	Checkouts map[string]*goget.GitCheckout
	Log       *log.Logger
	// contains filtered or unexported fields
}

func NewHandler added in v0.0.8

func NewHandler(logger *log.Logger, cfg Config, tracer tracing.Tracing) (*CheckoutHandler, error)

func (*CheckoutHandler) CheckoutsByRepo added in v0.0.8

func (h *CheckoutHandler) CheckoutsByRepo() map[string]*goget.GitCheckout

func (*CheckoutHandler) SetupMux

func (h *CheckoutHandler) SetupMux(mux *mux.Router)

func (*CheckoutHandler) SetupPublicJWTHandler added in v0.0.17

func (h *CheckoutHandler) SetupPublicJWTHandler(muxRouter *mux.Router, keyFunc jwt.Keyfunc, repos []Repository)

type Config added in v0.0.8

type Config struct {
	DataDirectory string
	Repos         []Repository
}

type FileStatArr added in v0.0.10

type FileStatArr []goget.FileStat

func (FileStatArr) WriteTo added in v0.0.10

func (f FileStatArr) WriteTo(w io.Writer) (int64, error)

type Repository added in v0.0.17

type Repository struct {
	URL                    string
	PrivateKey             string
	PrivateKeyPassword     string
	PrivateKeyPasswordFile string
	Alias                  string
	Public                 bool
}

Directories

Path Synopsis
repoprovider

Jump to

Keyboard shortcuts

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