Documentation ¶
Index ¶
- func ErrorResponse(cmd, msg string) []byte
- func MarshalResponse(name string, obj interface{}) []byte
- type CloudstackServer
- func (s *CloudstackServer) AddIP(ip cloudstack.PublicIpAddress)
- func (s *CloudstackServer) AddLBRule(lbName string, lbRule LoadBalancerRule)
- func (s *CloudstackServer) AddTags(resourceid string, tags []cloudstack.Tags)
- func (s *CloudstackServer) DeleteTags(resourceid string, tagKeys []string)
- func (s *CloudstackServer) HasCalls(t *testing.T, calls []MockAPICall)
- func (s *CloudstackServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *CloudstackServer) SetDefaultLBPoolCreation(lbId string)
- type LoadBalancerRule
- type MockAPICall
- type UpdateGloboNetworkPoolResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorResponse ¶
func MarshalResponse ¶
Types ¶
type CloudstackServer ¶
type CloudstackServer struct { *httptest.Server Calls []MockAPICall Hook func(w http.ResponseWriter, r *http.Request) bool Jobs map[string]func() interface{} // contains filtered or unexported fields }
func NewCloudstackServer ¶
func NewCloudstackServer() *CloudstackServer
func (*CloudstackServer) AddIP ¶
func (s *CloudstackServer) AddIP(ip cloudstack.PublicIpAddress)
func (*CloudstackServer) AddLBRule ¶
func (s *CloudstackServer) AddLBRule(lbName string, lbRule LoadBalancerRule)
func (*CloudstackServer) AddTags ¶
func (s *CloudstackServer) AddTags(resourceid string, tags []cloudstack.Tags)
func (*CloudstackServer) DeleteTags ¶
func (s *CloudstackServer) DeleteTags(resourceid string, tagKeys []string)
func (*CloudstackServer) HasCalls ¶
func (s *CloudstackServer) HasCalls(t *testing.T, calls []MockAPICall)
func (*CloudstackServer) ServeHTTP ¶
func (s *CloudstackServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*CloudstackServer) SetDefaultLBPoolCreation ¶
func (s *CloudstackServer) SetDefaultLBPoolCreation(lbId string)
type LoadBalancerRule ¶
type LoadBalancerRule struct { Rule map[string]interface{} Pools []globoNetworkPool // contains filtered or unexported fields }
type MockAPICall ¶
type UpdateGloboNetworkPoolResponse ¶
type UpdateGloboNetworkPoolResponse struct {
JobID string `json:"jobid"`
}
Click to show internal directories.
Click to hide internal directories.