archive

package
v0.0.0-...-72f9500 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

package archive provides indexing of archives from remote URLs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(opts Options, bopts build.Options) error

Index archive specified in opts using bopts.

func OpenReader

func OpenReader(u string) (io.ReadCloser, error)

OpenReader returns a reader for the archive at the URL u.

Types

type Archive

type Archive interface {
	Next() (*File, error)
	Close() error
}

type File

type File struct {
	io.ReadCloser
	Name string
	Size int64
}

type Options

type Options struct {
	Incremental bool

	Archive string
	Name    string
	RepoURL string
	Branch  string
	Commit  string
	Strip   int
}

Options specify the archive specific indexing options.

func (*Options) SetDefaults

func (o *Options) SetDefaults()

Jump to

Keyboard shortcuts

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