Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateAgentGroupAssignmentPostRequest(id string, postfix string) config_api_client.AgentGroupAssignmentPostRequest
- func GenerateAgentGroupAssignmentPostResponse(id string, postfix string) config_api_client.AgentGroupAssignmentPostResponse
- func GenerateAgentGroupAssignmentsGetResponse(id string, postfix string) config_api_client.AgentGroupAssignmentsGetResponse
- func GenerateAgentPatchRequest(postfix string) config_api_client.AgentPatchRequest
- func GenerateAgentPatchResponse(id string, postfix string) config_api_client.AgentPatchResponse
- func GenerateAgentsGetResponse(id string, postfix string) config_api_client.AgentsGetResponse
- func GenerateGroupAttachedToRootGroupGetResponse(id string, nameSuffix string) config_api_client.GroupsGetResponse
- func GenerateGroupAttachedToRootGroupPostRequest(id string, namePostfix string) config_api_client.GroupPostRequest
- func GenerateGroupAttachedToRootGroupPostResponse(id string, nameSuffix string) config_api_client.GroupPostResponse
- func GenerateGroupGetResponse(id string, nameSuffix string, parentIDSuffix string) config_api_client.GroupsGetResponse
- func GenerateGroupPatchRequest(postfix string) config_api_client.GroupPatchRequest
- func GenerateGroupPatchResponse(id string, nameSuffix string, parentIDSuffix string) config_api_client.GroupPatchResponse
- func GenerateGroupPostResponse(id string, nameSuffix string, parentIDSuffix string) config_api_client.GroupPostResponse
- func GenerateNetworkGroupAssignmentPostRequest(id string, postfix string) config_api_client.NetworkGroupAssignmentPostRequest
- func GenerateNetworkGroupAssignmentPostResponse(id string, postfix string) config_api_client.NetworkGroupAssignmentPostResponse
- func GenerateNetworkGroupAssignmentsGetResponse(id string, postfix string) config_api_client.NetworkGroupAssignmentsGetResponse
- func GenerateNonRootGroupPostRequest(id string, namePostfix string, parentIDPostfix string) config_api_client.GroupPostRequest
- func GenerateRootGroupGetResponse() config_api_client.GroupsGetResponse
- func GenerateSensorGroupAssignmentPostRequest(id string, postfix string) config_api_client.SensorGroupAssignmentPostRequest
- func GenerateSensorGroupAssignmentPostResponse(id string, postfix string) config_api_client.SensorGroupAssignmentPostResponse
- func GenerateSensorGroupAssignmentsGetResponse(id string, postfix string) config_api_client.SensorGroupAssignmentsGetResponse
- func GenerateSensorPatchRequest(postfix string) config_api_client.SensorPatchRequest
- func GenerateSensorPatchResponse(id string, postfix string) config_api_client.SensorPatchResponse
- func GenerateSensorsGetResponse(id string, postfix string) config_api_client.SensorsGetResponse
- func GenerateServiceTestGroupAssignmentPostRequest(id string, postfix string) config_api_client.ServiceTestGroupAssignmentPostRequest
- func GenerateServiceTestGroupAssignmentPostResponse(id string, postfix string) config_api_client.ServiceTestGroupAssignmentPostResponse
- func GenerateServiceTestGroupAssignmentsGetResponse(id string, postfix string) config_api_client.ServiceTestGroupAssignmentsGetResponse
- func GenerateServiceTestsGetResponse(id string, postfix string) config_api_client.ServiceTestsGetResponse
- func GenerateWiredNetworkResponse(id string, postfix string) config_api_client.WiredNetworksGetResponse
- func GenerateWirelessNetworksGetResponse(id string, postfix string) config_api_client.WirelessNetworksGetResponse
- func MockDeleteAgent(id string, times int)
- func MockDeleteAgentGroupAssignment(id string, times int)
- func MockDeleteGroup(id string, times int)
- func MockDeleteNetworkGroupAssignment(id string, times int)
- func MockDeleteSensorGroupAssignment(id string, times int)
- func MockDeleteServiceTestGroupAssignment(id string, times int)
- func MockGetAgent(id string, response interface{}, times int)
- func MockGetAgentGroupAssignment(id string, response interface{}, times int)
- func MockGetGroup(id string, response interface{}, times int)
- func MockGetNetworkGroupAssignment(id string, response interface{}, times int)
- func MockGetSensor(id string, response interface{}, times int)
- func MockGetSensorGroupAssignment(id string, response interface{}, times int)
- func MockGetServiceTest(id string, response interface{}, times int)
- func MockGetServiceTestGroupAssignment(id string, response interface{}, times int)
- func MockGetWiredNetwork(id string, response interface{}, times int)
- func MockGetWirelessNetwork(id string, response interface{}, times int)
- func MockOAuth() *gock.Response
- func MockPatchGroup(id string, request config_api_client.GroupPatchRequest, ...)
- func MockPostAgentGroupAssignment(request config_api_client.AgentGroupAssignmentPostRequest, ...)
- func MockPostGroup(request config_api_client.GroupPostRequest, ...)
- func MockPostNetworkGroupAssignment(request config_api_client.NetworkGroupAssignmentPostRequest, ...)
- func MockPostSensorGroupAssignment(request config_api_client.SensorGroupAssignmentPostRequest, ...)
- func MockPostServiceTestGroupAssignment(request config_api_client.ServiceTestGroupAssignmentPostRequest, ...)
- func MockUpdateAgent(id string, request config_api_client.AgentPatchRequest, ...)
- func MockUpdateSensor(id string, request config_api_client.SensorPatchRequest, ...)
Constants ¶
View Source
const ( MockDomain = "test.api.capenetworks.com" MockUXIURL = "https://" + MockDomain )
View Source
const MockRootGroupID = "root_group_id"
Variables ¶
View Source
var EmptyGetListResponse = map[string]interface{}{ "items": []map[string]interface{}{}, "next": nil, "count": 0, }
View Source
var RateLimitingHeaders = map[string]string{
"X-RateLimit-Limit": "100",
"X-RateLimit-Remaining": "0",
"X-RateLimit-Reset": "0.01",
}
Functions ¶
func GenerateAgentGroupAssignmentPostRequest ¶
func GenerateAgentGroupAssignmentPostRequest( id string, postfix string, ) config_api_client.AgentGroupAssignmentPostRequest
func GenerateAgentGroupAssignmentPostResponse ¶
func GenerateAgentGroupAssignmentPostResponse( id string, postfix string, ) config_api_client.AgentGroupAssignmentPostResponse
func GenerateAgentGroupAssignmentsGetResponse ¶
func GenerateAgentGroupAssignmentsGetResponse( id string, postfix string, ) config_api_client.AgentGroupAssignmentsGetResponse
func GenerateAgentPatchRequest ¶
func GenerateAgentPatchRequest(postfix string) config_api_client.AgentPatchRequest
func GenerateAgentPatchResponse ¶
func GenerateAgentPatchResponse(id string, postfix string) config_api_client.AgentPatchResponse
func GenerateAgentsGetResponse ¶
func GenerateAgentsGetResponse(id string, postfix string) config_api_client.AgentsGetResponse
func GenerateGroupAttachedToRootGroupGetResponse ¶
func GenerateGroupAttachedToRootGroupGetResponse( id string, nameSuffix string, ) config_api_client.GroupsGetResponse
func GenerateGroupAttachedToRootGroupPostRequest ¶
func GenerateGroupAttachedToRootGroupPostRequest( id string, namePostfix string, ) config_api_client.GroupPostRequest
func GenerateGroupAttachedToRootGroupPostResponse ¶
func GenerateGroupAttachedToRootGroupPostResponse( id string, nameSuffix string, ) config_api_client.GroupPostResponse
func GenerateGroupGetResponse ¶
func GenerateGroupGetResponse( id string, nameSuffix string, parentIDSuffix string, ) config_api_client.GroupsGetResponse
func GenerateGroupPatchRequest ¶
func GenerateGroupPatchRequest(postfix string) config_api_client.GroupPatchRequest
func GenerateGroupPatchResponse ¶
func GenerateGroupPatchResponse( id string, nameSuffix string, parentIDSuffix string, ) config_api_client.GroupPatchResponse
func GenerateGroupPostResponse ¶
func GenerateGroupPostResponse( id string, nameSuffix string, parentIDSuffix string, ) config_api_client.GroupPostResponse
func GenerateNetworkGroupAssignmentPostRequest ¶
func GenerateNetworkGroupAssignmentPostRequest( id string, postfix string, ) config_api_client.NetworkGroupAssignmentPostRequest
func GenerateNetworkGroupAssignmentPostResponse ¶
func GenerateNetworkGroupAssignmentPostResponse( id string, postfix string, ) config_api_client.NetworkGroupAssignmentPostResponse
func GenerateNetworkGroupAssignmentsGetResponse ¶
func GenerateNetworkGroupAssignmentsGetResponse( id string, postfix string, ) config_api_client.NetworkGroupAssignmentsGetResponse
func GenerateNonRootGroupPostRequest ¶
func GenerateNonRootGroupPostRequest( id string, namePostfix string, parentIDPostfix string, ) config_api_client.GroupPostRequest
func GenerateRootGroupGetResponse ¶
func GenerateRootGroupGetResponse() config_api_client.GroupsGetResponse
func GenerateSensorGroupAssignmentPostRequest ¶
func GenerateSensorGroupAssignmentPostRequest( id string, postfix string, ) config_api_client.SensorGroupAssignmentPostRequest
func GenerateSensorGroupAssignmentPostResponse ¶
func GenerateSensorGroupAssignmentPostResponse( id string, postfix string, ) config_api_client.SensorGroupAssignmentPostResponse
func GenerateSensorGroupAssignmentsGetResponse ¶
func GenerateSensorGroupAssignmentsGetResponse( id string, postfix string, ) config_api_client.SensorGroupAssignmentsGetResponse
func GenerateSensorPatchRequest ¶
func GenerateSensorPatchRequest(postfix string) config_api_client.SensorPatchRequest
func GenerateSensorPatchResponse ¶
func GenerateSensorPatchResponse(id string, postfix string) config_api_client.SensorPatchResponse
func GenerateSensorsGetResponse ¶
func GenerateSensorsGetResponse(id string, postfix string) config_api_client.SensorsGetResponse
func GenerateServiceTestGroupAssignmentPostRequest ¶
func GenerateServiceTestGroupAssignmentPostRequest( id string, postfix string, ) config_api_client.ServiceTestGroupAssignmentPostRequest
func GenerateServiceTestGroupAssignmentPostResponse ¶
func GenerateServiceTestGroupAssignmentPostResponse( id string, postfix string, ) config_api_client.ServiceTestGroupAssignmentPostResponse
func GenerateServiceTestGroupAssignmentsGetResponse ¶
func GenerateServiceTestGroupAssignmentsGetResponse( id string, postfix string, ) config_api_client.ServiceTestGroupAssignmentsGetResponse
func GenerateServiceTestsGetResponse ¶
func GenerateServiceTestsGetResponse( id string, postfix string, ) config_api_client.ServiceTestsGetResponse
func GenerateWiredNetworkResponse ¶
func GenerateWiredNetworkResponse( id string, postfix string, ) config_api_client.WiredNetworksGetResponse
func GenerateWirelessNetworksGetResponse ¶
func GenerateWirelessNetworksGetResponse( id string, postfix string, ) config_api_client.WirelessNetworksGetResponse
func MockDeleteAgent ¶
func MockDeleteGroup ¶
func MockGetAgent ¶
func MockGetGroup ¶
func MockGetSensor ¶
func MockGetServiceTest ¶
func MockGetWiredNetwork ¶
func MockGetWirelessNetwork ¶
func MockPatchGroup ¶
func MockPatchGroup( id string, request config_api_client.GroupPatchRequest, response config_api_client.GroupPatchResponse, times int, )
func MockPostAgentGroupAssignment ¶
func MockPostAgentGroupAssignment( request config_api_client.AgentGroupAssignmentPostRequest, response config_api_client.AgentGroupAssignmentPostResponse, times int, )
func MockPostGroup ¶
func MockPostGroup( request config_api_client.GroupPostRequest, response config_api_client.GroupPostResponse, times int, )
func MockPostNetworkGroupAssignment ¶
func MockPostNetworkGroupAssignment( request config_api_client.NetworkGroupAssignmentPostRequest, response config_api_client.NetworkGroupAssignmentPostResponse, times int, )
func MockPostSensorGroupAssignment ¶
func MockPostSensorGroupAssignment( request config_api_client.SensorGroupAssignmentPostRequest, response config_api_client.SensorGroupAssignmentPostResponse, times int, )
func MockPostServiceTestGroupAssignment ¶
func MockPostServiceTestGroupAssignment( request config_api_client.ServiceTestGroupAssignmentPostRequest, response config_api_client.ServiceTestGroupAssignmentPostResponse, times int, )
func MockUpdateAgent ¶
func MockUpdateAgent( id string, request config_api_client.AgentPatchRequest, response config_api_client.AgentPatchResponse, times int, )
func MockUpdateSensor ¶
func MockUpdateSensor( id string, request config_api_client.SensorPatchRequest, response config_api_client.SensorPatchResponse, times int, )
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.