...

Source file src/edge-infra.dev/pkg/lib/gcp/iam/google_apis_service_account.go

Documentation: edge-infra.dev/pkg/lib/gcp/iam

     1  package iam
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  // GoogleAPISvcAccount returns the identifier for the Google APIs service
     8  // account for a given project number:
     9  // https://cloud.google.com/compute/docs/access/service-accounts#google_apis_service_account
    10  func GoogleAPISvcAccount(projectNumber string) string {
    11  	return fmt.Sprintf("%s@cloudservices.gserviceaccount.com", projectNumber)
    12  }
    13  
    14  // GoogleAPISvcAccountMember returns the member reference for a given project number
    15  func GoogleAPISvcAccountMember(projectNumber string) string {
    16  	return SvcAccountMember(GoogleAPISvcAccount(projectNumber))
    17  }
    18  

View as plain text