MCPcopy
hub / github.com/git-lfs/git-lfs / Fetcher

Interface Fetcher

config/fetcher.go:6–22  ·  view source on GitHub ↗

Fetcher provides an interface to get typed information out of a configuration "source". These sources could be the OS environment, a .gitconfig, or even just a `map`.

Source from the content-addressed store, hash-verified

4// "source". These sources could be the OS environment, a .gitconfig, or even
5// just a `map`.
6type Fetcher interface {
7 // Get returns the string value associated with a given key and a bool
8 // determining if the key exists.
9 //
10 // If multiple entries match the given key, the first one will be
11 // returned.
12 Get(key string) (val string, ok bool)
13
14 // GetAll returns the a set of string values associated with a given
15 // key. If no entries matched the given key, an empty slice will be
16 // returned instead.
17 GetAll(key string) (vals []string)
18
19 // All returns a copy of all the key/value pairs for the current
20 // environment.
21 All() map[string][]string
22}

Callers 16

delayedSmudgeFunction · 0.65
smudgeFunction · 0.65
smudgeCommandFunction · 0.65
smudgeFilenameFunction · 0.65
lsFilesCommandFunction · 0.65
locksCommandFunction · 0.65
installCommandFunction · 0.65
cmdInstallOptionsFunction · 0.65
GetAllMethod · 0.65
getAllMethod · 0.65
GetAllMethod · 0.65

Implementers 4

environmentconfig/environment.go
delayedEnvironmentconfig/delayed_environment.go
OsFetcherconfig/os_fetcher.go
GitFetcherconfig/git_fetcher.go

Calls

no outgoing calls

Tested by

no test coverage detected