Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProjectNumberResourceCache sync.Map
ProjectNumberResourceCache Maps Project-Id to ProjectNumber to avoid redundant calls to resource manager.
Functions ¶
This section is empty.
Types ¶
type ResourceManagerProjectsAccessor ¶
type ResourceManagerProjectsAccessor interface {
GetProjectNumberResource(ctx context.Context, rmProjectsClient resourcemanager.ProjectsClient, projectID string) string
}
ResourceManagerProjectsAccessor The ResourceManagerAccessor provides methods that internally use the resourceManagerProjectsClient.
type ResourceManagerProjectsAccessorImpl ¶
type ResourceManagerProjectsAccessorImpl struct{}
func (*ResourceManagerProjectsAccessorImpl) GetProjectNumberResource ¶
func (rm *ResourceManagerProjectsAccessorImpl) GetProjectNumberResource(ctx context.Context, rmProjectsClient resourcemanagerclient.ResourcemanagerProjectsClient, projectID string) string
GetProjectNumberResource returns a string that encodes the project number like `projects/12345`.
Click to show internal directories.
Click to hide internal directories.