provider

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(c *di.Container)

Types

type Configuration

type Configuration struct {
	ReposPath string               `long:"repos-path" description:"Path to the directory containing the repositories" required:"true" default:"tmp/repos"`
	LFS       *gitLFSConfiguration `flags-group:"git-lfs" namespace:"lfs"`
}

type RepoProvider

type RepoProvider interface {
	TrunkProvider
	ViewProvider
}

RepoProvider Deprecated: RepoProvider in favour for executor.Executor (except when used in an executor.ExecuteFunc)

func FromConfigration

func FromConfigration(cfg *Configuration) RepoProvider

func New

func New(reposBasePath, lfsHostname string) RepoProvider

type TrunkProvider

type TrunkProvider interface {
	TrunkRepo(codebaseID string) (vcs.RepoWriter, error)
	TrunkPath(codebaseID string) string
}

TrunkProvider Deprecated: TrunkProvider in favour for executor.Executor (except when used in an executor.ExecuteFunc)

type ViewProvider

type ViewProvider interface {
	ViewRepo(codebaseID, viewID string) (vcs.RepoWriter, error)
	ViewPath(codebaseID, viewID string) string
}

ViewProvider Deprecated: ViewProvider in favour for executor.Executor (except when used in an executor.ExecuteFunc)

Jump to

Keyboard shortcuts

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