Documentation ¶
Overview ¶
clustering_policytypes_v1
Index ¶
Constants ¶
View Source
const FakePolicyTypetoGet = "fake-policytype"
View Source
const PolicyTypeBody = `` /* 834-byte string literal not displayed */
View Source
const PolicyTypeDetailBody = `` /* 772-byte string literal not displayed */
Variables ¶
View Source
var ExpectedPolicyType1 = policytypes.PolicyType{ Name: "senlin.policy.affinity", Version: "1.0", SupportStatus: map[string][]policytypes.SupportStatusType{ "1.0": { { Status: "SUPPORTED", Since: "2016.10", }, }, }, }
View Source
var ExpectedPolicyType2 = policytypes.PolicyType{ Name: "senlin.policy.health", Version: "1.0", SupportStatus: map[string][]policytypes.SupportStatusType{ "1.0": { { Status: "EXPERIMENTAL", Since: "2016.10", }, }, }, }
View Source
var ExpectedPolicyType3 = policytypes.PolicyType{ Name: "senlin.policy.scaling", Version: "1.0", SupportStatus: map[string][]policytypes.SupportStatusType{ "1.0": { { Status: "SUPPORTED", Since: "2016.04", }, }, }, }
View Source
var ExpectedPolicyType4 = policytypes.PolicyType{ Name: "senlin.policy.region_placement", Version: "1.0", SupportStatus: map[string][]policytypes.SupportStatusType{ "1.0": { { Status: "EXPERIMENTAL", Since: "2016.04", }, { Status: "SUPPORTED", Since: "2016.10", }, }, }, }
View Source
var ExpectedPolicyTypeDetail = &policytypes.PolicyTypeDetail{ Name: "senlin.policy.batch-1.0", Schema: map[string]interface{}{ "max_batch_size": map[string]interface{}{ "default": float64(-1), "description": "Maximum number of nodes that will be updated in parallel.", "required": false, "type": "Integer", "updatable": false, }, "min_in_service": map[string]interface{}{ "default": float64(1), "description": "Minimum number of nodes in service when performing updates.", "required": false, "type": "Integer", "updatable": false, }, "pause_time": map[string]interface{}{ "default": float64(60), "description": "Interval in seconds between update batches if any.", "required": false, "type": "Integer", "updatable": false, }, }, SupportStatus: map[string][]policytypes.SupportStatusType{ "1.0": { { Status: "EXPERIMENTAL", Since: "2017.02", }, }, }, }
View Source
var ExpectedPolicyTypes = []policytypes.PolicyType{ ExpectedPolicyType1, ExpectedPolicyType2, ExpectedPolicyType3, ExpectedPolicyType4, }
Functions ¶
func HandlePolicyTypeGet ¶
func HandlePolicyTypeList ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.