Provider is an interface that allows to create a backend from a secret
| 56 | |
| 57 | // Provider is an interface that allows to create a backend from a secret |
| 58 | type Provider interface { |
| 59 | // Provider identifier |
| 60 | ID() string |
| 61 | // retrieve a downloader/uploader from a secret |
| 62 | FromCredentials(ctx context.Context, secretName string) (UploaderDownloader, error) |
| 63 | // validate and extract credentials from raw json |
| 64 | ValidateAndExtractCredentials(location string, credsJSON []byte) (any, error) |
| 65 | } |
| 66 | |
| 67 | type Providers map[string]Provider |
| 68 |
no outgoing calls
no test coverage detected