forked from vieter-v/vieter
feat(agent): initial working version
This commit is contained in:
parent
6f23d690a7
commit
3611123f45
7 changed files with 47 additions and 24 deletions
|
|
@ -2,9 +2,10 @@ module client
|
|||
|
||||
import build { BuildConfig }
|
||||
|
||||
pub fn (c &Client) poll_jobs(max int) ![]BuildConfig {
|
||||
pub fn (c &Client) poll_jobs(arch string, max int) ![]BuildConfig {
|
||||
data := c.send_request<[]BuildConfig>(.get, '/api/v1/jobs/poll', {
|
||||
'max': max.str()
|
||||
'arch': arch
|
||||
'max': max.str()
|
||||
})!
|
||||
|
||||
return data.data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue