mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-11 07:11:00 +00:00
Add new Wire DB methods to acme.DB
interface
This commit is contained in:
parent
abe86002ee
commit
1a711e1b91
10
acme/db.go
10
acme/db.go
@ -394,3 +394,13 @@ func (m *MockDB) GetOrdersByAccountID(ctx context.Context, accID string) ([]stri
|
|||||||
}
|
}
|
||||||
return m.MockRet1.([]string), m.MockError
|
return m.MockRet1.([]string), m.MockError
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetDpop retrieves an DPoP from the database.
|
||||||
|
func (m *MockDB) GetDpop(ctx context.Context, orderId string) (map[string]interface{}, error) {
|
||||||
|
return nil, errors.New("not implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
// CreateDpop creates DPoP resources and saves them to the DB.
|
||||||
|
func (m *MockDB) CreateDpop(ctx context.Context, orderId string, dpop map[string]interface{}) error {
|
||||||
|
return errors.New("not implemented")
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user