func (m *mockProvider) Delete(service, user string) error {
	if m.mockStore != nil {
		if _, ok := m.mockStore[service]; ok {
			if _, ok := m.mockStore[service][user]; ok {
				delete(m.mockStore[service], user)
				return nil
			}
		}
	}
	return ErrNotFound
}
Delete deletes a secret, identified by service & user, from the keyring.
package keyring
type mockProvider struct {
	mockStore map[string]map[string]string
}
func (m *mockProvider) Set(service, user, pass string) error {
	if m.mockStore == nil {
		m.mockStore = make(map[string]map[string]string)
	}
	if m.mockStore[service] == nil {
		m.mockStore[service] = make(map[string]string)
	}
	m.mockStore[service][user] = pass
	return nil
}
func (m *mockProvider) Get(service, user string) (string, error) {
	if b, ok := m.mockStore[service]; ok {
		if v, ok := b[user]; ok {
			return v, nil
		}
	}
	return "", ErrNotFound
}