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