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

Method toURLValues

cloudstack/ISOService.go:1652–1744  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1650}
1651
1652func (p *ListIsosParams) toURLValues() url.Values {
1653 u := url.Values{}
1654 if p.p == nil {
1655 return u
1656 }
1657 if v, found := p.p["account"]; found {
1658 u.Set("account", v.(string))
1659 }
1660 if v, found := p.p["arch"]; found {
1661 u.Set("arch", v.(string))
1662 }
1663 if v, found := p.p["bootable"]; found {
1664 vv := strconv.FormatBool(v.(bool))
1665 u.Set("bootable", vv)
1666 }
1667 if v, found := p.p["domainid"]; found {
1668 u.Set("domainid", v.(string))
1669 }
1670 if v, found := p.p["hypervisor"]; found {
1671 u.Set("hypervisor", v.(string))
1672 }
1673 if v, found := p.p["id"]; found {
1674 u.Set("id", v.(string))
1675 }
1676 if v, found := p.p["imagestoreid"]; found {
1677 u.Set("imagestoreid", v.(string))
1678 }
1679 if v, found := p.p["isofilter"]; found {
1680 u.Set("isofilter", v.(string))
1681 }
1682 if v, found := p.p["ispublic"]; found {
1683 vv := strconv.FormatBool(v.(bool))
1684 u.Set("ispublic", vv)
1685 }
1686 if v, found := p.p["isready"]; found {
1687 vv := strconv.FormatBool(v.(bool))
1688 u.Set("isready", vv)
1689 }
1690 if v, found := p.p["isrecursive"]; found {
1691 vv := strconv.FormatBool(v.(bool))
1692 u.Set("isrecursive", vv)
1693 }
1694 if v, found := p.p["keyword"]; found {
1695 u.Set("keyword", v.(string))
1696 }
1697 if v, found := p.p["listall"]; found {
1698 vv := strconv.FormatBool(v.(bool))
1699 u.Set("listall", vv)
1700 }
1701 if v, found := p.p["name"]; found {
1702 u.Set("name", v.(string))
1703 }
1704 if v, found := p.p["oscategoryid"]; found {
1705 u.Set("oscategoryid", v.(string))
1706 }
1707 if v, found := p.p["page"]; found {
1708 vv := strconv.Itoa(v.(int))
1709 u.Set("page", vv)

Callers

nothing calls this directly

Calls 1

getSortedKeysFromMapFunction · 0.85

Tested by

no test coverage detected