Documentation ¶
Index ¶
Constants ¶
const ( // ErrFmtNoAttribute is an error string for not-found attributes ErrFmtNoAttribute = `"attribute not found: %s` // ErrFmtUnexpectedType is an error string for attribute map values of unexpected type ErrFmtUnexpectedType = `unexpected type for attribute %s: Expecting a string` )
Variables ¶
This section is empty.
Functions ¶
func GetFullyQualifiedIDFn ¶
GetFullyQualifiedIDFn returns a GetIDFn that can parse any Azure fully qualifier. An example identifier is as follows: /subscriptions/%s/resourceGroups/%s/providers/Microsoft.DocumentDB/databaseAccounts/%s/sqlDatabases/%s/containers/%s An input to this function to parse it would be: serviceProvider: "Microsoft.DocumentDB" keyPairs: []string{"databaseAccounts", "account_name", "sqlDatabases", "database_name", "containers", "name"}
func GetNameFromFullyQualifiedID ¶
GetNameFromFullyQualifiedID extracts external-name from Azure ID Examples of fully qualifiers: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DBforMySQL/servers/server1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/networkInterfaces/nic1
Types ¶
This section is empty.