-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(storage): storage getInfo #351
base: main
Are you sure you want to change the base?
Conversation
type StorageService service | ||
|
||
// GetInfo fetches queue info, primarily used during worker onboarding. | ||
func (svc *StorageService) GetInfo() (*api.StorageInfo, *Response, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
undefined: api.StorageInfo
url := "/api/v1/storage/info" | ||
|
||
// API StorageInfo type we want to return | ||
t := new(api.StorageInfo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
undefined: api.StorageInfo
s := httptest.NewServer(server.FakeHandler()) | ||
c, _ := NewClient(s.URL, "", nil) | ||
c.Authentication.SetPersonalAccessTokenAuth("token") | ||
data := []byte(server.StorageInfoResp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
undefined: server.StorageInfoResp
c.Authentication.SetPersonalAccessTokenAuth("token") | ||
data := []byte(server.StorageInfoResp) | ||
|
||
var want *api.StorageInfo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
undefined: api.StorageInfo (typecheck)
No description provided.