💥 Add store
This commit is contained in:
parent
0e2d302804
commit
bdc625b57e
6 changed files with 127 additions and 6 deletions
30
internal/testmocks/store_osin_client.go
Normal file
30
internal/testmocks/store_osin_client.go
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue