Initial import
This commit is contained in:
20
keyring_stub.go
Normal file
20
keyring_stub.go
Normal file
@@ -0,0 +1,20 @@
|
||||
//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
|
||||
}
|
Reference in New Issue
Block a user