8 "github.com/gin-gonic/gin"
11 type XDSAgentTarball struct {
13 FileURL string `json:"fileUrl"`
15 type XDSAgentInfo struct {
16 Tarballs []XDSAgentTarball `json:"tarballs"`
19 // getXdsAgentInfo : return various information about Xds Agent
20 func (s *APIService) getXdsAgentInfo(c *gin.Context) {
21 // TODO: retrieve link dynamically by reading assets/xds-agent-tarballs
22 tarballDir := "assets/xds-agent-tarballs"
23 response := XDSAgentInfo{
24 Tarballs: []XDSAgentTarball{
27 FileURL: filepath.Join(tarballDir, "xds-agent_linux-amd64-v0.0.1_3cdf92c.zip"),
31 FileURL: filepath.Join(tarballDir, "xds-agent_windows-386-v0.0.1_3cdf92c.zip"),
36 c.JSON(http.StatusOK, response)