Documentation ¶
Index ¶
- Constants
- func GenerateProjectID(domain, environment string, slug slug.Slug) string
- func GetProjectDisplayName(slug slug.Slug, environment string) string
- func New(database db.Database, auditLogger auditlogger.AuditLogger, ...) *googleGcpReconciler
- func NewFromConfig(ctx context.Context, database db.Database, cfg *config.Config, ...) (reconcilers.Reconciler, error)
- type GcpServices
Constants ¶
View Source
const ( Name = sqlc.ReconcilerNameGoogleGcpProject GoogleProjectDisplayNameMaxLength = 30 )
Variables ¶
This section is empty.
Functions ¶
func GenerateProjectID ¶
GenerateProjectID Generate a unique project ID for the team in a given environment in a deterministic fashion
func GetProjectDisplayName ¶
GetProjectDisplayName Get the display name of a project for a team in a given environment
func New ¶
func New(database db.Database, auditLogger auditlogger.AuditLogger, clusters gcp.Clusters, gcpServices *GcpServices, tenantName, domain, cnrmRoleName, billingAccount string, log logger.Logger) *googleGcpReconciler
func NewFromConfig ¶
Types ¶
type GcpServices ¶
type GcpServices struct { CloudBillingProjectsService *cloudbilling.ProjectsService CloudResourceManagerProjectsService *cloudresourcemanager.ProjectsService CloudResourceManagerOperationsService *cloudresourcemanager.OperationsService IamProjectsServiceAccountsService *iam.ProjectsServiceAccountsService ServiceUsageService *serviceusage.ServicesService ServiceUsageOperationsService *serviceusage.OperationsService FirewallService *compute.FirewallsService ComputeGlobalOperationsService *compute.GlobalOperationsService }
Click to show internal directories.
Click to hide internal directories.