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)
Click to show internal directories.
Click to hide internal directories.