combluotion/internal/testmocks/store_osin_client.go
2024-09-14 11:27:28 -05:00

30 lines
460 B
Go

package testmocks
import (
"github.com/openshift/osin"
)
func (s *st) Clone() osin.Storage {
n := *s
return &n
}
func (s *st) GetClient(string) (osin.Client, error) {
return &osin.DefaultClient{}, nil
}
func (s *st) CreateClient(osin.Client) error {
return nil
}
func (s *st) UpdateClient(osin.Client) error {
return nil
}
func (s *st) RemoveClient(string) error {
return nil
}
func (s *st) ListClients() (cl []osin.Client, er error) {
return
}