archive

package
v0.19.786 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive interface {
	// Init should be used for fetching things from s3, or setting up credentials
	Init(context.Context) error

	// Unpack is used to unpack an archive, and should call the unpackFn with each source file
	Unpack(context.Context, Callback) error

	Cleanup(context.Context) error
}

Archive package exposes methods for loading a workspace archive

type Callback

type Callback func(context.Context, string, io.ReadCloser) error

Callback is passed in to the call back function to allow the implementer to pass a function in

type Callbacker

type Callbacker interface {
	Callback(context.Context, string, io.ReadCloser) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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