credentials

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package credentials synchronizes account auth files between S3 and a sandbox. Credential contents never enter PostgreSQL, errors, or logs.

Index

Constants

View Source
const MaxAuthBytes = 1 << 20

Variables

This section is empty.

Functions

func Validate

func Validate(raw []byte) error

Types

type Account

type Account struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, sandbox harness.Sandbox, home string, source session.Credentials) (*Account, error)

func NewWithStore

func NewWithStore(sandbox harness.Sandbox, home string, source BlobStore) *Account

func (*Account) Close

func (a *Account) Close() error

func (*Account) Seed

func (a *Account) Seed(ctx context.Context) error

func (*Account) Sync

func (a *Account) Sync(ctx context.Context, force bool)

func (*Account) Watch

func (a *Account) Watch(ctx context.Context) error

type BlobStore

type BlobStore interface {
	Get(context.Context) ([]byte, error)
	Put(context.Context, []byte) error
}

type Sync

type Sync interface {
	Seed(context.Context) error
	Watch(context.Context) error
	Sync(context.Context, bool)
	Close() error
}

Jump to

Keyboard shortcuts

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