Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver resolves project IDs to names and domain IDs via keystone DB. It caches the mapping and refreshes it periodically based on a TTL.
func NewResolver ¶
NewResolver creates a resolver that fetches projects from keystone and caches them for the given TTL. If keystoneDB is nil, the resolver returns project IDs as-is. A zero TTL uses the default (5 minutes).
func (*Resolver) AllProjects ¶
AllProjects returns a snapshot of all cached project IDs and their info.
Click to show internal directories.
Click to hide internal directories.