local

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 31 Imported by: 144

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFS added in v0.11.0

func CreateFS(ctx context.Context, sessionID string, k string, ref cache.ImmutableRef, attestations []exporter.Attestation, defaultTime time.Time, isMap bool, opt CreateFSOpts) (fsutil.FS, func() error, error)

func New

func New(opt Opt) (exporter.Exporter, error)

func NewProgressHandler added in v0.11.0

func NewProgressHandler(ctx context.Context, id string) (func(int, bool), func())

NewProgressHandler returns a callback for reporting transfer progress and a cleanup function that ensures the underlying progress writer is closed. The cleanup function must be called by the caller (typically via defer), so the writer is released even when the callback is never invoked with last=true (for example when an early error short-circuits the transfer).

Types

type CreateFSOpts added in v0.11.0

type CreateFSOpts struct {
	Epoch             *epoch.Epoch
	AttestationPrefix string
	PlatformSplit     *bool
}

func (*CreateFSOpts) Load added in v0.12.0

func (c *CreateFSOpts) Load(opt map[string]string) (map[string]string, error)

func (*CreateFSOpts) UsePlatformSplit added in v0.23.0

func (c *CreateFSOpts) UsePlatformSplit(isMap bool) bool

type Opt

type Opt struct {
	SessionManager *session.Manager
}

Jump to

Keyboard shortcuts

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