pile

package
v0.0.0-...-9a48f36 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithConnection

func WithConnection(connection string) openOption

WithConnection sets the connection string for the pile. If this is not set, the pile will be in-memory only.

func WithRepoClonePath

func WithRepoClonePath(filePath string) openOption

WithRepoClonePath sets the path where repos will be cloned to on disk.

Types

type Pile

type Pile struct {
	// contains filtered or unexported fields
}

func Open

func Open(opts ...openOption) (*Pile, error)

func (*Pile) AddRepo

func (p *Pile) AddRepo(ctx context.Context, repoURL string) error

AddRepo clones a repo and adds it to the pile.

func (*Pile) Close

func (p *Pile) Close() error

func (*Pile) ListRepos

func (p *Pile) ListRepos(ctx context.Context) ([]string, error)

func (*Pile) SearchAllRepoContents

func (p *Pile) SearchAllRepoContents(ctx context.Context, query string) ([]string, error)

Jump to

Keyboard shortcuts

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