Documentation ¶
Index ¶
- Constants
- Variables
- type TestFunc
- func BuildTestMetadataCreate(resourceName string, resourceID string, extraParams ...string) TestFunc
- func BuildTestMetadataDelete(resourceName string, resourceID string, extraParams ...string) TestFunc
- func BuildTestMetadataGet(resourceName string, resourceID string, extraParams ...string) TestFunc
- func BuildTestMetadataListAll(resourceName string, resourceID string, extraParams ...string) TestFunc
- func BuildTestMetadataUpdate(resourceName string, resourceID string, extraParams ...string) TestFunc
Constants ¶
View Source
const MetadataCreateRequest = `
{
"test1": "test1",
"test2": "test2"
}
`
View Source
const MetadataListResponse = `` /* 215-byte string literal not displayed */
View Source
const MetadataResponse = `
{
"key": "some_key",
"value": "some_val",
"read_only": false
}
`
Variables ¶
View Source
var ( ResourceMetadata = map[string]interface{}{ "some_key": "some_val", } ResourceMetadataReadOnly = metadata.Metadata{ Key: "some_key", Value: "some_val", ReadOnly: false, } Metadata1 = metadata.Metadata{ Key: "cost-center", Value: "Atlanta", ReadOnly: false, } Metadata2 = metadata.Metadata{ Key: "data-center", Value: "A", ReadOnly: false, } ExpectedMetadataList = []metadata.Metadata{Metadata1, Metadata2} )
Functions ¶
This section is empty.
Types ¶
type TestFunc ¶
func BuildTestMetadataCreate ¶
func BuildTestMetadataDelete ¶
func BuildTestMetadataGet ¶
Click to show internal directories.
Click to hide internal directories.