Documentation ¶
Index ¶
- func AccessSecret(projectID, secretID string) (string, error)
- func BindingExists(projectID, region, resourceName, serviceAccount, role string) bool
- func ConfirmPrompt(message string) bool
- func CreateOrUpdateSecret(projectID, secretID, secretValue string, quiet bool) error
- func DisplayVersion()
- func ExtractServiceURL(output string) string
- func FirestoreDatabaseExists(projectID string) bool
- func GenerateRandomPassword(length int) string
- func GetAuthCredentials(projectID string) (string, string, error)
- func GetDefaultProjectID() (string, error)
- func HandleGcloudError(err error)
- func IsAPIEnabled(api, projectID string) bool
- func JobExists(projectID, region, jobName string) bool
- func PrintUsage()
- func RemoveAnsiEscapeSequences(text string) string
- func SelectUpstreamURL() (string, error)
- func ServiceAccountExists(projectID, serviceAccount string) bool
- func ServiceExists(projectID, region, serviceName string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessSecret ¶
AccessSecret retrieves a secret from Secret Manager.
func BindingExists ¶
BindingExists checks if a specific IAM binding already exists.
func ConfirmPrompt ¶
ConfirmPrompt asks the user for confirmation with a yes/no question.
func CreateOrUpdateSecret ¶
CreateOrUpdateSecret creates or updates a secret in Secret Manager.
func ExtractServiceURL ¶
ExtractServiceURL extracts the service URL from the gcloud command output.
func FirestoreDatabaseExists ¶
FirestoreDatabaseExists checks if the default Firestore database exists for the project.
func GenerateRandomPassword ¶
GenerateRandomPassword generates a random password of the given length.
func GetAuthCredentials ¶
getAuthCredentials retrieves the basic authentication username and password from Secret Manager.
func GetDefaultProjectID ¶
GetDefaultProjectID retrieves the default project ID from gcloud.
func HandleGcloudError ¶
func HandleGcloudError(err error)
HandleGcloudError provides user-friendly messages for gcloud errors.
func IsAPIEnabled ¶
IsAPIEnabled checks if a given API is enabled for the project.
func RemoveAnsiEscapeSequences ¶
RemoveAnsiEscapeSequences removes ANSI escape sequences from a string.
func SelectUpstreamURL ¶
SelectUpstreamURL presents a list of upstream URLs to the user and lets them choose one.
func ServiceAccountExists ¶
ServiceAccountExists checks if a service account already exists.
func ServiceExists ¶
ServiceExists checks if a Cloud Run service already exists.
Types ¶
This section is empty.