Skip to content
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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

feat(storage): storage getInfo #351

wants to merge 2 commits into from

Conversation

timhuynh94
Copy link
Contributor

No description provided.

type StorageService service

// GetInfo fetches queue info, primarily used during worker onboarding.
func (svc *StorageService) GetInfo() (*api.StorageInfo, *Response, error) {
Copy link
Contributor

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)
Copy link
Contributor

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)
Copy link
Contributor

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
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant