upstreamidentifier

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BQUpstreamIdentifier

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

func NewBQUpstreamIdentifier

func NewBQUpstreamIdentifier(logger log.Logger, parserFunc ParserFunc, bqExtractorFunc BQExtractorFunc, evaluatorFuncs ...EvalAssetFunc) (*BQUpstreamIdentifier, error)

func (BQUpstreamIdentifier) IdentifyResources

func (g BQUpstreamIdentifier) IdentifyResources(ctx context.Context, assets map[string]string) ([]resource.URN, error)

type EvalAssetFunc

type EvalAssetFunc func(assets map[string]string) (rawResource string)

EvalAssetFunc returns raw string from a given asset

type ParserFunc

type ParserFunc func(rawResource string) (resourceURNs []string)

ParserFunc parses given raw and return list of resource urns

type UpstreamIdentifier

type UpstreamIdentifier interface {
	IdentifyResources(ctx context.Context, assets map[string]string) ([]resource.URN, error)
}

type UpstreamIdentifierFactory

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

func NewUpstreamIdentifierFactory

func NewUpstreamIdentifierFactory(logger log.Logger) (*UpstreamIdentifierFactory, error)

func (*UpstreamIdentifierFactory) GetBQUpstreamIdentifier

func (u *UpstreamIdentifierFactory) GetBQUpstreamIdentifier(ctx context.Context, svcAcc string, evaluators ...evaluator.Evaluator) (UpstreamIdentifier, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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