Skip to content

Commit

Permalink
feat: Add validation token client
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Jan 15, 2025
1 parent 802fcc4 commit 1965de1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/solver/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,9 @@ func (client *SolverClient) DownloadResultFiles(id string, localPath string) err
}
return system.ExpandTarBuffer(buf, localPath)
}

// Validation service

func (client *SolverClient) GetValidationToken() (http.ValidationToken, error) {
return http.GetRequest[http.ValidationToken](client.options, fmt.Sprintf("/validation_token"), map[string]string{})
}

0 comments on commit 1965de1

Please sign in to comment.