Documentation ¶
Overview ¶
storeutil contains utility functions for implementing storage backends. The store package only has dependencies on the std library (intentionally) so that clients of the store are easy to reference.
Index ¶
Constants ¶
View Source
const ( ScopePrefix = "scope" ResourcePrefix = "resource" )
Variables ¶
This section is empty.
Functions ¶
func ExtractStorageParts ¶
ExtractStorageParts extracts the main components of the resource id in a way that easily supports our storage abstraction. Returns a tuple of the (prefix, rootScope, routingScope, resourceType)
func IDMatchesQuery ¶
IDMatchesQuery checks if the given ID matches the given query.
func NormalizePart ¶
NormalizePart takes in a string and returns a normalized version of it with a prefix and suffix segment separator.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.