forked from TrueCloudLab/frostfs-api-go
service: make RequestData to provide BearerTokenSource interface
This commit is contained in:
parent
ce5264a479
commit
3f7d3f8a86
6 changed files with 73 additions and 0 deletions
|
@ -18,6 +18,8 @@ type testSignedDataSrc struct {
|
|||
sig []byte
|
||||
key *ecdsa.PublicKey
|
||||
token SessionToken
|
||||
|
||||
bearer BearerToken
|
||||
}
|
||||
|
||||
type testSignedDataReader struct {
|
||||
|
@ -54,6 +56,10 @@ func (s testSignedDataSrc) GetSessionToken() SessionToken {
|
|||
return s.token
|
||||
}
|
||||
|
||||
func (s testSignedDataSrc) GetBearerToken() BearerToken {
|
||||
return s.bearer
|
||||
}
|
||||
|
||||
func (s testSignedDataReader) SignedDataSize() int {
|
||||
return len(s.data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue