index

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	PackageFiles       []string
	IndexFile          string
	MergeIndexFileFlag bool
	SigningKey         string
	Logger             *log.Logger
}

func New

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

func (*Context) GenerateIndex

func (ctx *Context) GenerateIndex() error

type Option

type Option func(*Context) error

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

Jump to

Keyboard shortcuts

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