resolver

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectFilesHolder

type ProjectFilesHolder interface {
	HoldProjectFiles(files []models.ProjectFile, components []speca.Component) []models.FileHold
}

type ProjectFilesResolver

type ProjectFilesResolver interface {
	Scan(
		ctx context.Context,
		projectDirectory string,
		moduleName string,
		excludePaths []models.ResolvedPath,
		excludeFileMatchers []*regexp.Regexp,
	) ([]models.ProjectFile, error)
}

type Resolver

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

func NewResolver

func NewResolver(
	projectFilesResolver ProjectFilesResolver,
	projectFilesHolder ProjectFilesHolder,
) *Resolver

func (*Resolver) ProjectFiles

func (r *Resolver) ProjectFiles(ctx context.Context, spec speca.Spec) ([]models.FileHold, error)

Jump to

Keyboard shortcuts

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