1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
package keyring
import (
"errors"
"runtime"
)
// All of the following methods error out on unsupported platforms
var ErrUnsupportedPlatform = errors.New("unsupported platform: " + runtime.GOOS)
type fallbackServiceProvider struct{}
func (fallbackServiceProvider) Set(service, user, pass string) error {
return ErrUnsupportedPlatform
}
func (fallbackServiceProvider) Get(service, user string) (string, error) {
return "", ErrUnsupportedPlatform
}
func (fallbackServiceProvider) Delete(service, user string) error {
return ErrUnsupportedPlatform
}
|