Documentation ¶
Overview ¶
clustering_profiles_v1
Index ¶
Constants ¶
View Source
const CreateResponse = `` /* 667-byte string literal not displayed */
View Source
const GetResponse = `` /* 657-byte string literal not displayed */
View Source
const ListResponse = `` /* 2109-byte string literal not displayed */
View Source
const UpdateResponse = `` /* 699-byte string literal not displayed */
View Source
const ValidateResponse = `` /* 608-byte string literal not displayed */
Variables ¶
View Source
var ExpectedCreate = profiles.Profile{ CreatedAt: time.Date(2016, 1, 3, 16, 22, 23, 0, time.UTC), Domain: "", ID: "9e1c6f42-acf5-4688-be2c-8ce954ef0f23", Metadata: map[string]interface{}{}, Name: "test-profile", Project: "42d9e9663331431f97b75e25136307ff", Spec: profiles.Spec{ Properties: map[string]interface{}{ "flavor": "t2.small", "image": "centos7.3-latest", "name": "centos_server", "networks": []interface{}{ map[string]interface{}{"network": "private-network"}, }, }, Type: "os.nova.server", Version: "1.0", }, Type: "os.nova.server-1.0", UpdatedAt: time.Date(2016, 1, 3, 17, 22, 23, 0, time.UTC), User: "5e5bf8027826429c96af157f68dc9072", }
View Source
var ExpectedGet = profiles.Profile{ CreatedAt: time.Date(2016, 1, 3, 16, 22, 23, 0, time.UTC), Domain: "", ID: "9e1c6f42-acf5-4688-be2c-8ce954ef0f23", Metadata: map[string]interface{}{}, Name: "pserver", Project: "42d9e9663331431f97b75e25136307ff", Spec: profiles.Spec{ Properties: map[string]interface{}{ "flavor": float64(1), "image": "cirros-0.3.4-x86_64-uec", "key_name": "oskey", "name": "cirros_server", "networks": []interface{}{ map[string]interface{}{"network": "private"}, }, }, Type: "os.nova.server", Version: "1.0", }, Type: "os.nova.server-1.0", User: "5e5bf8027826429c96af157f68dc9072", }
View Source
var ExpectedList = []profiles.Profile{ ExpectedListProfile1, ExpectedListProfile2, ExpectedListProfile3, }
View Source
var ExpectedListProfile1 = profiles.Profile{ CreatedAt: time.Date(2016, 1, 3, 16, 22, 23, 0, time.UTC), Domain: "", ID: "9e1c6f42-acf5-4688-be2c-8ce954ef0f23", Metadata: map[string]interface{}{}, Name: "pserver", Project: "42d9e9663331431f97b75e25136307ff", Spec: profiles.Spec{ Properties: map[string]interface{}{ "flavor": "t2.small", "image": "cirros-0.3.4-x86_64-uec", "key_name": "oskey", "name": "cirros_server", "networks": []interface{}{ map[string]interface{}{"network": "private"}, }, }, Type: "os.nova.server", Version: "1.0", }, Type: "os.nova.server-1.0", UpdatedAt: time.Date(2016, 1, 3, 17, 22, 23, 0, time.UTC), User: "5e5bf8027826429c96af157f68dc9072", }
View Source
var ExpectedListProfile2 = profiles.Profile{ Domain: "", ID: "9e1c6f42-acf5-4688-be2c-8ce954ef0f23", Metadata: map[string]interface{}{}, Name: "pserver", Project: "42d9e9663331431f97b75e25136307ff", Spec: profiles.Spec{ Properties: map[string]interface{}{ "flavor": "t2.small", "image": "cirros-0.3.4-x86_64-uec", "key_name": "oskey", "name": "cirros_server", "networks": []interface{}{ map[string]interface{}{"network": "private"}, }, }, Type: "os.nova.server", Version: "1.0", }, Type: "os.nova.server-1.0", User: "5e5bf8027826429c96af157f68dc9072", }
View Source
var ExpectedListProfile3 = profiles.Profile{ Domain: "", ID: "9e1c6f42-acf5-4688-be2c-8ce954ef0f23", Metadata: map[string]interface{}{}, Name: "pserver", Project: "42d9e9663331431f97b75e25136307ff", Spec: profiles.Spec{ Properties: map[string]interface{}{ "flavor": "t2.small", "image": "cirros-0.3.4-x86_64-uec", "key_name": "oskey", "name": "cirros_server", "networks": []interface{}{ map[string]interface{}{"network": "private"}, }, }, Type: "os.nova.server", Version: "1.0", }, Type: "os.nova.server-1.0", User: "5e5bf8027826429c96af157f68dc9072", }
View Source
var ExpectedUpdate = profiles.Profile{ CreatedAt: time.Date(2016, 1, 3, 16, 22, 23, 0, time.UTC), Domain: "", ID: "9e1c6f42-acf5-4688-be2c-8ce954ef0f23", Metadata: map[string]interface{}{"foo": "bar"}, Name: "pserver", Project: "42d9e9663331431f97b75e25136307ff", Spec: profiles.Spec{ Properties: map[string]interface{}{ "flavor": float64(1), "image": "cirros-0.3.4-x86_64-uec", "key_name": "oskey", "name": "cirros_server", "networks": []interface{}{ map[string]interface{}{"network": "private"}, }, }, Type: "os.nova.server", Version: "1.0", }, Type: "os.nova.server-1.0", UpdatedAt: time.Date(2016, 1, 3, 17, 22, 23, 0, time.UTC), User: "5e5bf8027826429c96af157f68dc9072", }
View Source
var ExpectedValidate = profiles.Profile{ CreatedAt: time.Date(2016, 1, 3, 16, 22, 23, 0, time.UTC), Domain: "", ID: "9e1c6f42-acf5-4688-be2c-8ce954ef0f23", Metadata: map[string]interface{}{}, Name: "pserver", Project: "42d9e9663331431f97b75e25136307ff", Spec: profiles.Spec{ Properties: map[string]interface{}{ "flavor": "t2.micro", "image": "cirros-0.3.4-x86_64-uec", "key_name": "oskey", "name": "cirros_server", "networks": []interface{}{ map[string]interface{}{"network": "private"}, }, }, Type: "os.nova.server", Version: "1.0", }, Type: "os.nova.server-1.0", UpdatedAt: time.Date(2016, 1, 3, 17, 22, 23, 0, time.UTC), User: "5e5bf8027826429c96af157f68dc9072", }
Functions ¶
func HandleGetSuccessfully ¶
func HandleListSuccessfully ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.