testing

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const CreateNetworkRequest = `
{
    "network": {
        "name": "private",
        "qos_policy_id": "591e0597-39a6-4665-8149-2111d8de9a08"
    }
}
`
View Source
const CreateNetworkResponse = `` /* 203-byte string literal not displayed */
View Source
const CreatePolicyRequest = `` /* 152-byte string literal not displayed */
View Source
const CreatePolicyResponse = `` /* 484-byte string literal not displayed */
View Source
const CreatePortRequest = `` /* 151-byte string literal not displayed */
View Source
const CreatePortResponse = `` /* 262-byte string literal not displayed */
View Source
const GetNetworkResponse = `` /* 146-byte string literal not displayed */
View Source
const GetPolicyResponse = `` /* 795-byte string literal not displayed */
View Source
const GetPortResponse = `` /* 143-byte string literal not displayed */
View Source
const ListPoliciesResponse = `` /* 1410-byte string literal not displayed */
View Source
const UpdateNetworkWithPolicyRequest = `
{
    "network": {
        "name": "updated",
        "qos_policy_id": "591e0597-39a6-4665-8149-2111d8de9a08"
    }
}
`
View Source
const UpdateNetworkWithPolicyResponse = `` /* 230-byte string literal not displayed */
View Source
const UpdateNetworkWithoutPolicyRequest = `
{
    "network": {
        "qos_policy_id": null
    }
}
`
View Source
const UpdateNetworkWithoutPolicyResponse = `` /* 167-byte string literal not displayed */
View Source
const UpdatePolicyRequest = `
{
    "policy": {
        "name": "new-name",
        "shared": true,
        "description": ""
    }
}
`
View Source
const UpdatePolicyResponse = `` /* 466-byte string literal not displayed */
View Source
const UpdatePortWithPolicyRequest = `
{
    "port": {
        "qos_policy_id": "591e0597-39a6-4665-8149-2111d8de9a08"
    }
}
`
View Source
const UpdatePortWithPolicyResponse = `` /* 262-byte string literal not displayed */
View Source
const UpdatePortWithoutPolicyRequest = `
{
    "port": {
        "qos_policy_id": null
    }
}
`
View Source
const UpdatePortWithoutPolicyResponse = `` /* 226-byte string literal not displayed */

Variables

View Source
var Policy1 = policies.Policy{
	Name: "bw-limiter",
	Rules: []map[string]interface{}{
		{
			"type":           "bandwidth_limit",
			"max_kbps":       float64(3000),
			"direction":      "egress",
			"qos_policy_id":  "d6ae28ce-fcb5-4180-aa62-d260a27e09ae",
			"max_burst_kbps": float64(300),
			"id":             "30a57f4a-336b-4382-8275-d708babd2241",
		},
	},
	Tags:           []string{},
	TenantID:       "a77cbe0998374aed9a6798ad6c61677e",
	CreatedAt:      time.Date(2019, 5, 19, 11, 17, 50, 0, time.UTC),
	UpdatedAt:      time.Date(2019, 5, 19, 11, 17, 57, 0, time.UTC),
	RevisionNumber: 1,
	ProjectID:      "a77cbe0998374aed9a6798ad6c61677e",
	ID:             "d6ae28ce-fcb5-4180-aa62-d260a27e09ae",
}
View Source
var Policy2 = policies.Policy{
	Name:           "no-rules",
	Tags:           []string{},
	Rules:          []map[string]interface{}{},
	TenantID:       "a77cbe0998374aed9a6798ad6c61677e",
	CreatedAt:      time.Date(2019, 6, 1, 10, 38, 58, 0, time.UTC),
	UpdatedAt:      time.Date(2019, 6, 1, 10, 38, 58, 0, time.UTC),
	RevisionNumber: 0,
	ProjectID:      "a77cbe0998374aed9a6798ad6c61677e",
	ID:             "d6e7c2fe-24dc-43be-a088-24b47d4f8f88",
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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