google_gcp_reconciler

package
v0.0.0-...-96f7096 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name                              = sqlc.ReconcilerNameGoogleGcpProject
	GoogleProjectDisplayNameMaxLength = 30
)

Variables

This section is empty.

Functions

func GenerateProjectID

func GenerateProjectID(domain, environment string, slug slug.Slug) string

GenerateProjectID Generate a unique project ID for the team in a given environment in a deterministic fashion

func GetProjectDisplayName

func GetProjectDisplayName(slug slug.Slug, environment string) string

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

func NewFromConfig(ctx context.Context, database db.Database, cfg *config.Config, log logger.Logger) (reconcilers.Reconciler, error)

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
}

Jump to

Keyboard shortcuts

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