util

package
v0.1.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 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.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 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.GroupPatchRequest,
	response config_api_client.GroupPatchResponse,
	times int,
)

func MockPostGroup

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

Jump to

Keyboard shortcuts

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