Documentation ¶
Index ¶
- Constants
- func ExtractServiceAccountProjectID(serviceAccountJSON string) (string, error)
- func NewBackupProvider(credentialsData map[string]string, bucketName, region string, ...) (*backupProvider, error)
- func NewInfrastructureProvider() *infrastructureProvider
- func ReadServiceAccount(data map[string]string) (string, error)
Constants ¶
View Source
const DataKeyServiceAccountJSON = "serviceaccount.json"
DataKeyServiceAccountJSON is a constant for a data key whose value is a GCP service account in JSON format.
Variables ¶
This section is empty.
Functions ¶
func ExtractServiceAccountProjectID ¶
ExtractServiceAccountProjectID extracts the project id from the given service account JSON.
func NewBackupProvider ¶
func NewBackupProvider( credentialsData map[string]string, bucketName, region string, log *logrus.Logger, ) (*backupProvider, error)
NewBackupProvider creates a new GCP backup provider implementation from the given service account JSON.
func NewInfrastructureProvider ¶
func NewInfrastructureProvider() *infrastructureProvider
NewInfrastructureProvider creates a new GCP infrastructure provider implementation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.