forked from TrueCloudLab/frostfs-api-go
[#182] Rename methods to match updated field names
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
5be034ab80
commit
dc9fcd5d98
17 changed files with 47 additions and 47 deletions
|
@ -156,7 +156,7 @@ type HeadResponseBody struct {
|
|||
type SearchFilter struct {
|
||||
matchType MatchType
|
||||
|
||||
name, val string
|
||||
key, val string
|
||||
}
|
||||
|
||||
type SearchRequestBody struct {
|
||||
|
@ -1274,17 +1274,17 @@ func (f *SearchFilter) SetMatchType(v MatchType) {
|
|||
}
|
||||
}
|
||||
|
||||
func (f *SearchFilter) GetName() string {
|
||||
func (f *SearchFilter) GetKey() string {
|
||||
if f != nil {
|
||||
return f.name
|
||||
return f.key
|
||||
}
|
||||
|
||||
return ""
|
||||
}
|
||||
|
||||
func (f *SearchFilter) SetName(v string) {
|
||||
func (f *SearchFilter) SetKey(v string) {
|
||||
if f != nil {
|
||||
f.name = v
|
||||
f.key = v
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue