MCPcopy Create free account
hub / github.com/kopia/kopia / AddStorageProvider

Method AddStorageProvider

cli/storage_providers.go:103–105  ·  view source on GitHub ↗

AddStorageProvider adds a new StorageProvider at runtime after the App has been initialized with the default providers. This is used in tests which require custom storage providers to simulate various edge cases.

(p StorageProvider)

Source from the content-addressed store, hash-verified

101// been initialized with the default providers. This is used in tests which
102// require custom storage providers to simulate various edge cases.
103func (c *App) AddStorageProvider(p StorageProvider) {
104 c.cliStorageProviders = append(c.cliStorageProviders, p)
105}
106
107func (c *App) storageProviders() []StorageProvider {
108 return c.cliStorageProviders

Callers 1

NewInProcRunnerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected