Versions in this module Expand all Collapse all v1 v1.18.0 Aug 2, 2026 Changes in this version + const ProviderGoogle + const ProviderOneDrive + func DefaultAuthTokenRef(provider, name string) string + func ResolveValue(ctx context.Context, r *secretref.Resolver, key, inline, ref string) (string, error) + func SourceURIForProvider(provider string) (string, error) + type B2 struct + AppKey string + KeyID string + type Backup struct + AuthRef string + DryRun bool + IgnoreEmpty bool + Source Source + Tags []string + Verbose bool + func ApplyProfileAuth(base Backup, decided FieldSet, auth profile.Auth) (Backup, error) + func MergeProfileBackup(base Backup, decided FieldSet, name string, cfg *profile.Config) (Backup, error) + type Client struct + DisablePackfile bool + JSON bool + Quiet bool + Store Store + Unlock Unlock + Verbose bool + func FromProfileStore(ctx context.Context, s profile.Store, r *secretref.Resolver) (Client, error) + func MergeProfileStore(ctx context.Context, base Client, decided FieldSet, s profile.Store, ...) (Client, error) + type Field string + const FieldAuthRef + const FieldB2AppKey + const FieldB2KeyID + const FieldEncryptionKey + const FieldExcludeFile + const FieldExcludes + const FieldGoogleCreds + const FieldGoogleCredsJSON + const FieldGoogleCredsRef + const FieldGoogleTokenFile + const FieldGoogleTokenRef + const FieldIgnoreEmpty + const FieldKMSEndpoint + const FieldKMSKeyARN + const FieldKMSRegion + const FieldOneDriveClientID + const FieldOneDriveTokenFile + const FieldOneDriveTokenRef + const FieldPassword + const FieldRecoveryKey + const FieldS3AccessKey + const FieldS3Endpoint + const FieldS3Profile + const FieldS3Region + const FieldS3SecretKey + const FieldSkipNativeFiles + const FieldSourceURI + const FieldStoreSFTPKey + const FieldStoreSFTPPassword + const FieldStoreURI + const FieldTags + const FieldVolumeUUID + func BackupFields() []Field + func StoreFields() []Field + func (f Field) ProfileKey() string + type FieldSet map[Field]struct + func FieldsSetIn(cfg Client) FieldSet + func NewFieldSet(fields ...Field) FieldSet + func (s FieldSet) Has(f Field) bool + type Google struct + CredsJSON string + CredsPath string + CredsRef string + TokenPath string + TokenRef string + type KMS struct + Endpoint string + KeyARN string + Region string + type OneDrive struct + ClientID string + TokenPath string + TokenRef string + type S3 struct + AccessKey string + Endpoint string + Profile string + Region string + SecretKey string + type SFTP struct + Insecure bool + Key string + KnownHosts string + Password string + type Source struct + ConfigDir string + ExcludeFile string + Excludes []string + Google Google + OneDrive OneDrive + SFTP SFTP + SkipFlags bool + SkipMode bool + SkipNativeFiles bool + SkipXattrs bool + URI string + VolumeUUID string + XattrNamespaces []string + func SourceForAuth(auth profile.Auth) (Source, error) + type SourceURI struct + Host string + Path string + Port string + Scheme string + User string + func ParseSourceURI(raw string) (*SourceURI, error) + type Store struct + B2 B2 + Debug bool + S3 S3 + SFTP SFTP + URI string + type StoreURI struct + Bucket string + Host string + Path string + Port string + Prefix string + Scheme string + User string + func ParseStoreURI(raw string) (*StoreURI, error) + type Unlock struct + EncryptionKey string + KMS KMS + NoPrompt bool + Password string + Prompt bool + RecoveryKey string