MCPcopy Index your code
hub / github.com/apache/cloudstack-go / ListIsos

Method ListIsos

cloudstack/ISOService.go:2344–2356  ·  view source on GitHub ↗

Lists all available ISO files.

(p *ListIsosParams)

Source from the content-addressed store, hash-verified

2342
2343// Lists all available ISO files.
2344func (s *ISOService) ListIsos(p *ListIsosParams) (*ListIsosResponse, error) {
2345 resp, err := s.cs.newRequest("listIsos", p.toURLValues())
2346 if err != nil {
2347 return nil, err
2348 }
2349
2350 var r ListIsosResponse
2351 if err := json.Unmarshal(resp, &r); err != nil {
2352 return nil, err
2353 }
2354
2355 return &r, nil
2356}
2357
2358type ListIsosResponse struct {
2359 Count int `json:"count"`

Callers 2

GetIsoIDMethod · 0.95
GetIsoByIDMethod · 0.95

Calls 2

newRequestMethod · 0.80
toURLValuesMethod · 0.45

Tested by

no test coverage detected