util

package
v0.0.0-pre.alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 MockDeleteAgent(id string, times int)

func MockDeleteAgentGroupAssignment

func MockDeleteAgentGroupAssignment(id string, times int)

func MockDeleteGroup

func MockDeleteGroup(id string, times int)

func MockDeleteNetworkGroupAssignment

func MockDeleteNetworkGroupAssignment(id string, times int)

func MockDeleteSensorGroupAssignment

func MockDeleteSensorGroupAssignment(id string, times int)

func MockDeleteServiceTestGroupAssignment

func MockDeleteServiceTestGroupAssignment(id string, times int)

func MockGetAgent

func MockGetAgent(id string, response interface{}, times int)

func MockGetAgentGroupAssignment

func MockGetAgentGroupAssignment(id string, response interface{}, times int)

func MockGetGroup

func MockGetGroup(id string, response interface{}, times int)

func MockGetNetworkGroupAssignment

func MockGetNetworkGroupAssignment(id string, response interface{}, times int)

func MockGetSensor

func MockGetSensor(id string, response interface{}, times int)

func MockGetSensorGroupAssignment

func MockGetSensorGroupAssignment(id string, response interface{}, times int)

func MockGetServiceTest

func MockGetServiceTest(id string, response interface{}, times int)

func MockGetServiceTestGroupAssignment

func MockGetServiceTestGroupAssignment(id string, response interface{}, times int)

func MockGetWiredNetwork

func MockGetWiredNetwork(id string, response interface{}, times int)

func MockGetWirelessNetwork

func MockGetWirelessNetwork(id string, response interface{}, times int)

func MockOAuth

func MockOAuth() *gock.Response

func MockPatchGroup

func MockPatchGroup(
	id string,
	request config_api_client.GroupsPatchRequest,
	response config_api_client.GroupsPatchResponse,
	times int,
)

func MockPostGroup

func MockPostGroup(
	request config_api_client.GroupsPostRequest,
	response config_api_client.GroupsPostResponse,
	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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL