resourcemanager_accessor

package
v1.0.1-0...-bc21bb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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`.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL