index

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index added in v0.5.0

type Index struct {
	PackageFiles       []string
	IndexFile          string
	SourceIndexFile    string
	MergeIndexFileFlag bool
	SigningKey         string
	ExpectedArch       string
	Index              apkrepo.APKIndex
}

func New

func New(opts ...Option) (*Index, error)

func (*Index) GenerateIndex added in v0.5.0

func (idx *Index) GenerateIndex(ctx context.Context) error

func (*Index) LoadIndex added in v0.5.0

func (idx *Index) LoadIndex(ctx context.Context, sourceFile string) error

func (*Index) UpdateIndex added in v0.5.0

func (idx *Index) UpdateIndex(ctx context.Context) error

func (*Index) WriteArchiveIndex added in v0.5.0

func (idx *Index) WriteArchiveIndex(ctx context.Context, destinationFile string) error

func (*Index) WriteJSONIndex added in v0.5.0

func (idx *Index) WriteJSONIndex(destinationFile string) error

type Option

type Option func(*Index) error

func WithExpectedArch added in v0.4.0

func WithExpectedArch(expectedArch string) Option

WithExpectedArch sets the expected package architecture. Any packages with an unexpected architecture will not be indexed.

func WithIndexFile

func WithIndexFile(indexFile string) Option

func WithMergeIndexFileFlag added in v0.3.0

func WithMergeIndexFileFlag(mergeFlag bool) Option

func WithPackageDir

func WithPackageDir(packageDir string) Option

func WithPackageFiles

func WithPackageFiles(packageFiles []string) Option

func WithSigningKey

func WithSigningKey(signingKey string) Option

func WithSourceIndexFile added in v0.4.0

func WithSourceIndexFile(indexFile string) Option

Jump to

Keyboard shortcuts

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