StorageFlags is implemented by cli storage providers which need to support a particular backend. This requires the common setup and connection methods implemented by all the cli storage providers.
| 28 | // particular backend. This requires the common setup and connection methods |
| 29 | // implemented by all the cli storage providers. |
| 30 | type StorageFlags interface { |
| 31 | Setup(sps StorageProviderServices, cmd *kingpin.CmdClause) |
| 32 | Connect(ctx context.Context, isCreate bool, formatVersion int) (blob.Storage, error) |
| 33 | } |
| 34 | |
| 35 | // StorageProvider is a CLI provider for storage options and allows the CLI to |
| 36 | // multiplex between various provider CLI flag constructors. |
no outgoing calls
no test coverage detected