github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/pkg/platform/api/svc/request/projects.go (about)

     1  package request
     2  
     3  type LocalProjectsRequest struct {
     4  }
     5  
     6  func NewLocalProjectsRequest() *LocalProjectsRequest {
     7  	return &LocalProjectsRequest{}
     8  }
     9  
    10  func (l *LocalProjectsRequest) Query() string {
    11  	return `query {
    12  		projects {
    13  			namespace
    14  			locations
    15  		}
    16  	}`
    17  }
    18  
    19  func (l *LocalProjectsRequest) Vars() (map[string]interface{}, error) {
    20  	return nil, nil
    21  }