resolver

package
v1.5.12-integrations-dev Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder is a struct used to create a new resolver

func NewBuilder

func NewBuilder() *Builder

NewBuilder creates a new Builder's reference

func (*Builder) Add

func (b *Builder) Add(p kindResolver) *Builder

Add will add kindResolvers for building the resolver

func (*Builder) Build

func (b *Builder) Build() (*Resolver, error)

Build will create a new intance of a resolver

type Resolver

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

Resolver is a struct containing the resolvers by file kind

func (*Resolver) GetType

func (r *Resolver) GetType(filePath string) model.FileKind

GetType will analyze the filepath to determine which resolver to use

func (*Resolver) Resolve

func (r *Resolver) Resolve(filePath string, kind model.FileKind) (model.ResolvedFiles, error)

Resolve will resolve the files according to its type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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