MCPcopy
hub / github.com/helm/helm / Add

Method Add

pkg/repo/v1/repo.go:59–61  ·  view source on GitHub ↗

Add adds one or more repo entries to a repo file.

(re ...*Entry)

Source from the content-addressed store, hash-verified

57
58// Add adds one or more repo entries to a repo file.
59func (r *File) Add(re ...*Entry) {
60 r.Repositories = append(r.Repositories, re...)
61}
62
63// Update attempts to replace one or more repo entries in a repo file. If an
64// entry with the same name doesn't exist in the repo file it will add it.

Callers 15

updateMethod · 0.95
TestFileFunction · 0.95
TestNewFileFunction · 0.95
TestRepoFile_GetFunction · 0.95
TestRemoveRepositoryFunction · 0.95
TestUpdateRepositoryFunction · 0.95
TestWriteFileFunction · 0.95
setTestingRepositoryFunction · 0.95
RoundTripMethod · 0.45
TestNewDefaultAccessorFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestFileFunction · 0.76
TestNewFileFunction · 0.76
TestRepoFile_GetFunction · 0.76
TestRemoveRepositoryFunction · 0.76
TestUpdateRepositoryFunction · 0.76
TestWriteFileFunction · 0.76
TestNewDefaultAccessorFunction · 0.36
TestNewDefaultAccessorV2Function · 0.36
tsReleaseFunction · 0.36
TestParallelDownloadToFunction · 0.36