scoring

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 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,
	resource patterns.ResourceName) ([]*rpc.Artifact, error)

func FetchScoreDefinitions added in v0.5.1

func FetchScoreDefinitions(
	ctx context.Context,
	client artifactClient,
	resource patterns.ResourceName) ([]*rpc.Artifact, 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