index

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 8 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
	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 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