Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateAgentGroupAssignmentPostRequest(id string, postfix string) config_api_client.AgentGroupAssignmentsPostRequest
- func GenerateAgentGroupAssignmentPostResponse(id string, postfix string) config_api_client.AgentGroupAssignmentResponse
- func GenerateAgentGroupAssignmentsResponse(id string, postfix string) config_api_client.AgentGroupAssignmentsResponse
- func GenerateAgentPatchRequest(postfix string) config_api_client.AgentsPatchRequest
- func GenerateAgentPatchResponse(id string, postfix string) config_api_client.AgentsPatchResponse
- func GenerateAgentResponse(id string, postfix string) config_api_client.AgentsResponse
- func GenerateGroupAttachedToRootGroupGetResponse(id string, nameSuffix string) config_api_client.GroupsGetResponse
- func GenerateGroupAttachedToRootGroupPostRequest(id string, namePostfix string) config_api_client.GroupsPostRequest
- func GenerateGroupAttachedToRootGroupPostResponse(id string, nameSuffix string) config_api_client.GroupsPostResponse
- func GenerateGroupGetResponse(id string, nameSuffix string, parentIdSuffix string) config_api_client.GroupsGetResponse
- func GenerateGroupPatchRequest(postfix string) config_api_client.GroupsPatchRequest
- func GenerateGroupPatchResponse(id string, nameSuffix string, parentIdSuffix string) config_api_client.GroupsPatchResponse
- func GenerateGroupPostResponse(id string, nameSuffix string, parentIdSuffix string) config_api_client.GroupsPostResponse
- func GenerateNetworkGroupAssignmentPostRequest(id string, postfix string) config_api_client.NetworkGroupAssignmentsPostRequest
- func GenerateNetworkGroupAssignmentPostResponse(id string, postfix string) config_api_client.NetworkGroupAssignmentsPostResponse
- func GenerateNetworkGroupAssignmentResponse(id string, postfix string) config_api_client.NetworkGroupAssignmentsResponse
- func GenerateNonRootGroupPostRequest(id string, namePostfix string, parentIdPostfix string) config_api_client.GroupsPostRequest
- func GenerateRootGroupGetResponse() config_api_client.GroupsGetResponse
- func GenerateSensorGroupAssignmentPostRequest(id string, postfix string) config_api_client.SensorGroupAssignmentsPostRequest
- func GenerateSensorGroupAssignmentPostResponse(id string, postfix string) config_api_client.SensorGroupAssignmentResponse
- func GenerateSensorGroupAssignmentResponse(id string, postfix string) config_api_client.SensorGroupAssignmentsResponse
- func GenerateSensorPatchRequest(postfix string) config_api_client.SensorsPatchRequest
- func GenerateSensorPatchResponse(id string, postfix string) config_api_client.SensorsPatchResponse
- func GenerateSensorResponse(id string, postfix string) config_api_client.SensorsResponse
- func GenerateServiceTestGroupAssignmentPostRequest(id string, postfix string) config_api_client.ServiceTestGroupAssignmentsPostRequest
- func GenerateServiceTestGroupAssignmentPostResponse(id string, postfix string) config_api_client.ServiceTestGroupAssignmentsPostResponse
- func GenerateServiceTestGroupAssignmentResponse(id string, postfix string) config_api_client.ServiceTestGroupAssignmentsResponse
- func GenerateServiceTestResponse(id string, postfix string) config_api_client.ServiceTestsListResponse
- func GenerateWiredNetworkResponse(id string, postfix string) config_api_client.WiredNetworksResponse
- func GenerateWirelessNetworkResponse(id string, postfix string) config_api_client.WirelessNetworksResponse
- 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.GroupsPatchRequest, ...)
- func MockPostAgentGroupAssignment(request config_api_client.AgentGroupAssignmentsPostRequest, ...)
- func MockPostGroup(request config_api_client.GroupsPostRequest, ...)
- func MockPostNetworkGroupAssignment(request config_api_client.NetworkGroupAssignmentsPostRequest, ...)
- func MockPostSensorGroupAssignment(request config_api_client.SensorGroupAssignmentsPostRequest, ...)
- func MockPostServiceTestGroupAssignment(request config_api_client.ServiceTestGroupAssignmentsPostRequest, ...)
- func MockUpdateAgent(id string, request config_api_client.AgentsPatchRequest, ...)
- func MockUpdateSensor(id string, request config_api_client.SensorsPatchRequest, ...)
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.AgentGroupAssignmentsPostRequest
func GenerateAgentGroupAssignmentPostResponse ¶
func GenerateAgentGroupAssignmentPostResponse( id string, postfix string, ) config_api_client.AgentGroupAssignmentResponse
func GenerateAgentGroupAssignmentsResponse ¶
func GenerateAgentGroupAssignmentsResponse( id string, postfix string, ) config_api_client.AgentGroupAssignmentsResponse
func GenerateAgentPatchRequest ¶
func GenerateAgentPatchRequest(postfix string) config_api_client.AgentsPatchRequest
func GenerateAgentPatchResponse ¶
func GenerateAgentPatchResponse(id string, postfix string) config_api_client.AgentsPatchResponse
func GenerateAgentResponse ¶
func GenerateAgentResponse(id string, postfix string) config_api_client.AgentsResponse
func GenerateGroupAttachedToRootGroupGetResponse ¶
func GenerateGroupAttachedToRootGroupGetResponse( id string, nameSuffix string, ) config_api_client.GroupsGetResponse
func GenerateGroupAttachedToRootGroupPostRequest ¶
func GenerateGroupAttachedToRootGroupPostRequest( id string, namePostfix string, ) config_api_client.GroupsPostRequest
func GenerateGroupAttachedToRootGroupPostResponse ¶
func GenerateGroupAttachedToRootGroupPostResponse( id string, nameSuffix string, ) config_api_client.GroupsPostResponse
func GenerateGroupGetResponse ¶
func GenerateGroupGetResponse( id string, nameSuffix string, parentIdSuffix string, ) config_api_client.GroupsGetResponse
func GenerateGroupPatchRequest ¶
func GenerateGroupPatchRequest(postfix string) config_api_client.GroupsPatchRequest
func GenerateGroupPatchResponse ¶
func GenerateGroupPatchResponse( id string, nameSuffix string, parentIdSuffix string, ) config_api_client.GroupsPatchResponse
func GenerateGroupPostResponse ¶
func GenerateGroupPostResponse( id string, nameSuffix string, parentIdSuffix string, ) config_api_client.GroupsPostResponse
func GenerateNetworkGroupAssignmentPostRequest ¶
func GenerateNetworkGroupAssignmentPostRequest( id string, postfix string, ) config_api_client.NetworkGroupAssignmentsPostRequest
func GenerateNetworkGroupAssignmentPostResponse ¶
func GenerateNetworkGroupAssignmentPostResponse( id string, postfix string, ) config_api_client.NetworkGroupAssignmentsPostResponse
func GenerateNetworkGroupAssignmentResponse ¶
func GenerateNetworkGroupAssignmentResponse( id string, postfix string, ) config_api_client.NetworkGroupAssignmentsResponse
func GenerateNonRootGroupPostRequest ¶
func GenerateNonRootGroupPostRequest( id string, namePostfix string, parentIdPostfix string, ) config_api_client.GroupsPostRequest
func GenerateRootGroupGetResponse ¶
func GenerateRootGroupGetResponse() config_api_client.GroupsGetResponse
func GenerateSensorGroupAssignmentPostRequest ¶
func GenerateSensorGroupAssignmentPostRequest( id string, postfix string, ) config_api_client.SensorGroupAssignmentsPostRequest
func GenerateSensorGroupAssignmentPostResponse ¶
func GenerateSensorGroupAssignmentPostResponse( id string, postfix string, ) config_api_client.SensorGroupAssignmentResponse
func GenerateSensorGroupAssignmentResponse ¶
func GenerateSensorGroupAssignmentResponse( id string, postfix string, ) config_api_client.SensorGroupAssignmentsResponse
func GenerateSensorPatchRequest ¶
func GenerateSensorPatchRequest(postfix string) config_api_client.SensorsPatchRequest
func GenerateSensorPatchResponse ¶
func GenerateSensorPatchResponse(id string, postfix string) config_api_client.SensorsPatchResponse
func GenerateSensorResponse ¶
func GenerateSensorResponse(id string, postfix string) config_api_client.SensorsResponse
func GenerateServiceTestGroupAssignmentPostRequest ¶
func GenerateServiceTestGroupAssignmentPostRequest( id string, postfix string, ) config_api_client.ServiceTestGroupAssignmentsPostRequest
func GenerateServiceTestGroupAssignmentPostResponse ¶
func GenerateServiceTestGroupAssignmentPostResponse( id string, postfix string, ) config_api_client.ServiceTestGroupAssignmentsPostResponse
func GenerateServiceTestGroupAssignmentResponse ¶
func GenerateServiceTestGroupAssignmentResponse( id string, postfix string, ) config_api_client.ServiceTestGroupAssignmentsResponse
func GenerateServiceTestResponse ¶
func GenerateServiceTestResponse( id string, postfix string, ) config_api_client.ServiceTestsListResponse
func GenerateWiredNetworkResponse ¶
func GenerateWiredNetworkResponse( id string, postfix string, ) config_api_client.WiredNetworksResponse
func GenerateWirelessNetworkResponse ¶
func GenerateWirelessNetworkResponse( id string, postfix string, ) config_api_client.WirelessNetworksResponse
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.GroupsPatchRequest, response config_api_client.GroupsPatchResponse, times int, )
func MockPostAgentGroupAssignment ¶
func MockPostAgentGroupAssignment( request config_api_client.AgentGroupAssignmentsPostRequest, response config_api_client.AgentGroupAssignmentResponse, times int, )
func MockPostGroup ¶
func MockPostGroup( request config_api_client.GroupsPostRequest, response config_api_client.GroupsPostResponse, times int, )
func MockPostNetworkGroupAssignment ¶
func MockPostNetworkGroupAssignment( request config_api_client.NetworkGroupAssignmentsPostRequest, response config_api_client.NetworkGroupAssignmentsPostResponse, times int, )
func MockPostSensorGroupAssignment ¶
func MockPostSensorGroupAssignment( request config_api_client.SensorGroupAssignmentsPostRequest, response config_api_client.SensorGroupAssignmentResponse, times int, )
func MockPostServiceTestGroupAssignment ¶
func MockPostServiceTestGroupAssignment( request config_api_client.ServiceTestGroupAssignmentsPostRequest, response config_api_client.ServiceTestGroupAssignmentsPostResponse, times int, )
func MockUpdateAgent ¶
func MockUpdateAgent( id string, request config_api_client.AgentsPatchRequest, response config_api_client.AgentsPatchResponse, times int, )
func MockUpdateSensor ¶
func MockUpdateSensor( id string, request config_api_client.SensorsPatchRequest, response config_api_client.SensorsPatchResponse, times int, )
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.