scoring

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

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 *rpc.ResourcePattern, inputPatternName patterns.ResourceName, inputFilter string) (string, string, error)

func ValidateScoreCardDefinition added in v0.5.1

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

func ValidateScoreDefinition

func ValidateScoreDefinition(parent string, scoreDefinition *rpc.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 core.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 core.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