gcp

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 10 Imported by: 0

Documentation

Index

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

func ExtractServiceAccountProjectID(serviceAccountJSON string) (string, error)

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.

func ReadServiceAccount

func ReadServiceAccount(data map[string]string) (string, error)

ReadServiceAccount reads the ServiceAccount from the given data map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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