provider

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultImpersonatedTokenConfigProvider

func NewDefaultImpersonatedTokenConfigProvider() impersonate.TargetPrincipalForProjectProvider

Types

type AvailabilityClass added in v1.4.2

type AvailabilityClass string
const (
	A0Invalid    AvailabilityClass = ""
	A1Irrelevant AvailabilityClass = "A1"
	A2Aimed      AvailabilityClass = "A2"
	A3Guaranteed AvailabilityClass = "A3"
	A4Resilient  AvailabilityClass = "A4"
)

func (AvailabilityClass) ValidValues added in v1.4.2

func (AvailabilityClass) ValidValues() []AvailabilityClass

type PrincipalProvider

type PrincipalProvider interface {
	GetPrincipalForEmail(ctxIn context.Context, email string) (*authmodel.Principal, error)
}

func NewDefaultUserProvider

func NewDefaultUserProvider(ctxIn context.Context, gcsClient gcs.CloudStorageClient) (PrincipalProvider, error)

type SinkGCPProjectProvider

type SinkGCPProjectProvider interface {
	GetSinkGCPProjectID(ctxIn context.Context, sourceGCPProjectID string) (string, error)
}

func NewDefaultGCPBackupProvider

func NewDefaultGCPBackupProvider(ctxIn context.Context, gcsClient gcs.CloudStorageClient) (SinkGCPProjectProvider, error)

type SourceGCPProject added in v1.4.2

type SourceGCPProject struct {
	AvailabilityClass AvailabilityClass `json:"availability_class"`
	DataOwner         string            `json:"data_owner"`
}

type SourceGCPProjectProvider added in v1.4.2

type SourceGCPProjectProvider interface {
	GetSourceGCPProject(ctxIn context.Context, gcpProjectID string) (SourceGCPProject, error)
}

func NewDefaultSourceGCPBackupProvider added in v1.4.2

func NewDefaultSourceGCPBackupProvider(ctxIn context.Context, gcsClient gcs.CloudStorageClient) (SourceGCPProjectProvider, error)

Jump to

Keyboard shortcuts

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