Documentation ¶
Overview ¶
Package ancestrymanager provides an interface to query the ancestry information for a project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AncestryManager ¶
type AncestryManager interface { // GetAncestry takes a project name to return an ancestry path GetAncestry(project string) (string, error) // GetAncestry takes a project name and resource data to return an ancestry path GetAncestryWithResource(project string, tfData resources.TerraformResourceData, cai resources.Asset) (string, error) }
AncestryManager is the interface that wraps the GetAncestry method.
func New ¶
func New(resourceManager *cloudresourcemanager.Service, entries map[string]string, errorLogger *zap.Logger) (AncestryManager, error)
New returns AncestryManager that can be used to fetch ancestry information for a project. entries takes project as key and ancestry as value to pre-warm the offline cache. If no resourceManager is provided, API requests for ancestry will be disabled.
Click to show internal directories.
Click to hide internal directories.