mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
16 lines
351 B
Go
16 lines
351 B
Go
package secrets
|
|
|
|
import "errors"
|
|
|
|
const DEFAULT_KEY = "default"
|
|
|
|
var (
|
|
ErrLoadFailedCreds = errors.New("failed to load BMC credentials")
|
|
)
|
|
|
|
type SecretStore interface {
|
|
GetSecretByID(secretID string) (string, error)
|
|
StoreSecretByID(secretID, secret string) error
|
|
ListSecrets() (map[string]string, error)
|
|
RemoveSecretByID(secretID string) error
|
|
}
|