21 lines
464 B
Go
21 lines
464 B
Go
//go:build !darwin && !windows && !(dragonfly && cgo) && !(freebsd && cgo) && !linux && !netbsd && !openbsd
|
|
|
|
package secret
|
|
|
|
import (
|
|
"errors"
|
|
"runtime"
|
|
)
|
|
|
|
var errKeyringNotSupported = errors.New("secret: keyring is not supported on " + runtime.GOOS)
|
|
|
|
type keyring struct{}
|
|
|
|
func keyringProvider(_ string) (Provider, error) {
|
|
return nil, errKeyringNotSupported
|
|
}
|
|
|
|
func (keyring) GetSecret(_ string) (_ []byte, err error) {
|
|
return nil, errKeyringNotSupported
|
|
}
|