scoring

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateScore added in v0.5.1

func CalculateScore(
	ctx context.Context,
	client artifactClient,
	defArtifact *rpc.Artifact,
	resource patterns.ResourceInstance,
	dryRun bool) error

func CalculateScoreCard added in v0.5.1

func CalculateScoreCard(
	ctx context.Context,
	client artifactClient,
	defArtifact *rpc.Artifact,
	resource patterns.ResourceInstance,
	dryRun bool) error

func FetchScoreCardDefinitions added in v0.5.1

func FetchScoreCardDefinitions(
	ctx context.Context,
	client artifactClient,
	project string) ([]*rpc.Artifact, error)

func FetchScoreDefinitions added in v0.5.1

func FetchScoreDefinitions(
	ctx context.Context,
	client artifactClient,
	project string) ([]*rpc.Artifact, error)

func GenerateCombinedPattern added in v0.5.7

func GenerateCombinedPattern(targetPattern *scoring.ResourcePattern, inputPatternName patterns.ResourceName, inputFilter string) (string, string, error)

func ValidateScoreCardDefinition added in v0.5.1

func ValidateScoreCardDefinition(parent string, scoreCardDefinition *scoring.ScoreCardDefinition) []error

func ValidateScoreDefinition

func ValidateScoreDefinition(parent string, scoreDefinition *scoring.ScoreDefinition) []error

Types

type RegistryArtifactClient added in v0.5.5

type RegistryArtifactClient struct {
	RegistryClient connection.RegistryClient
}

func (*RegistryArtifactClient) GetArtifact added in v0.5.5

func (r *RegistryArtifactClient) GetArtifact(ctx context.Context, artifact names.Artifact, getContents bool, handler visitor.ArtifactHandler) error

func (*RegistryArtifactClient) ListArtifacts added in v0.5.5

func (r *RegistryArtifactClient) ListArtifacts(ctx context.Context, artifact names.Artifact, filter string, contents bool, handler visitor.ArtifactHandler) error

func (*RegistryArtifactClient) SetArtifact added in v0.5.5

func (r *RegistryArtifactClient) SetArtifact(ctx context.Context, artifact *rpc.Artifact) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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