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

Method toURLValues

cloudstack/NsxService.go:41–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func (p *AddNsxControllerParams) toURLValues() url.Values {
42 u := url.Values{}
43 if p.p == nil {
44 return u
45 }
46 if v, found := p.p["edgecluster"]; found {
47 u.Set("edgecluster", v.(string))
48 }
49 if v, found := p.p["name"]; found {
50 u.Set("name", v.(string))
51 }
52 if v, found := p.p["nsxproviderhostname"]; found {
53 u.Set("nsxproviderhostname", v.(string))
54 }
55 if v, found := p.p["nsxproviderport"]; found {
56 u.Set("nsxproviderport", v.(string))
57 }
58 if v, found := p.p["password"]; found {
59 u.Set("password", v.(string))
60 }
61 if v, found := p.p["tier0gateway"]; found {
62 u.Set("tier0gateway", v.(string))
63 }
64 if v, found := p.p["transportzone"]; found {
65 u.Set("transportzone", v.(string))
66 }
67 if v, found := p.p["username"]; found {
68 u.Set("username", v.(string))
69 }
70 if v, found := p.p["zoneid"]; found {
71 u.Set("zoneid", v.(string))
72 }
73 return u
74}
75
76func (p *AddNsxControllerParams) SetEdgecluster(v string) {
77 if p.p == nil {

Callers 3

AddNsxControllerMethod · 0.45
DeleteNsxControllerMethod · 0.45
ListNsxControllersMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected