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

Method toURLValues

cloudstack/ISOService.go:374–393  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

372}
373
374func (p *CopyIsoParams) toURLValues() url.Values {
375 u := url.Values{}
376 if p.p == nil {
377 return u
378 }
379 if v, found := p.p["destzoneid"]; found {
380 u.Set("destzoneid", v.(string))
381 }
382 if v, found := p.p["destzoneids"]; found {
383 vv := strings.Join(v.([]string), ",")
384 u.Set("destzoneids", vv)
385 }
386 if v, found := p.p["id"]; found {
387 u.Set("id", v.(string))
388 }
389 if v, found := p.p["sourcezoneid"]; found {
390 u.Set("sourcezoneid", v.(string))
391 }
392 return u
393}
394
395func (p *CopyIsoParams) SetDestzoneid(v string) {
396 if p.p == nil {

Callers 11

AttachIsoMethod · 0.45
CopyIsoMethod · 0.45
DeleteIsoMethod · 0.45
DetachIsoMethod · 0.45
ExtractIsoMethod · 0.45
GetUploadParamsForIsoMethod · 0.45
ListIsoPermissionsMethod · 0.45
ListIsosMethod · 0.45
RegisterIsoMethod · 0.45
UpdateIsoMethod · 0.45
UpdateIsoPermissionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected