cloudtransfer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package cloudtransfer resolves short-lived cloud credentials for staging (S3 / GCS).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeProvider

func NormalizeProvider(provider string) string

NormalizeProvider maps common aliases to canonical provider ids used by the transfer agent.

func ResolveGCPProjectHint

func ResolveGCPProjectHint(ctx context.Context, hint string) string

ResolveGCPProjectHint returns an explicit hint or the best-effort default project id.

Types

type CloudBackend

type CloudBackend struct {
	Provider string
	Bucket   string
	Prefix   string
	Object   string
	Region   string
	Endpoint string
}

CloudBackend identifies a cloud object location for transfers.

type CredentialMaterial

type CredentialMaterial struct {
	Provider  string
	Env       map[string]string
	ExpiresAt time.Time
}

CredentialMaterial is returned for minting JWE envelopes on remote agents.

func ResolveCredentialMaterial

func ResolveCredentialMaterial(ctx context.Context, cloud CloudBackend, hints SigningHints) (CredentialMaterial, error)

ResolveCredentialMaterial loads cloud SDK credentials into a flat env map for the transfer agent.

type SigningHints

type SigningHints struct {
	AWSProfile string
	AWSRegion  string
	GCPProject string
}

SigningHints optionally scopes AWS/GCP credential loading (profiles, regions, project).

Jump to

Keyboard shortcuts

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