Class GcpCredentialValidator
java.lang.Object
cloud.kitelang.cli.validation.GcpCredentialValidator
- All Implemented Interfaces:
CredentialValidator
Validates GCP credentials using the gcloud CLI.
Calls 'gcloud auth list' and 'gcloud config get project' to verify credentials work.
-
Nested Class Summary
Nested classes/interfaces inherited from interface CredentialValidator
CredentialValidator.ValidationResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the provider type this validator handles (aws, gcp, azure).booleanChecks if the required CLI tool is installed.validate(cloud.kitelang.engine.kitefile.Dependencies.Credential credential) Validates the given credential.
-
Constructor Details
-
GcpCredentialValidator
public GcpCredentialValidator()
-
-
Method Details
-
getProviderType
Description copied from interface:CredentialValidatorReturns the provider type this validator handles (aws, gcp, azure).- Specified by:
getProviderTypein interfaceCredentialValidator
-
isCliAvailable
public boolean isCliAvailable()Description copied from interface:CredentialValidatorChecks if the required CLI tool is installed.- Specified by:
isCliAvailablein interfaceCredentialValidator
-
validate
public CredentialValidator.ValidationResult validate(cloud.kitelang.engine.kitefile.Dependencies.Credential credential) Description copied from interface:CredentialValidatorValidates the given credential.- Specified by:
validatein interfaceCredentialValidator- Parameters:
credential- the credential to validate- Returns:
- validation result with success status and details
-