mapping

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination

type Destination struct {
	Namespace string `json:"namespace"`
}

type Image

type Image struct {
	Name                      string             `json:"name"`
	DockerContainerRepository string             `json:"docker_container_repository"`
	Version                   string             `json:"version"`
	Count                     int                `json:"count"`
	Repo                      *gh.RepositorySlim `json:"repo,omitempty"`
	Sonarcloud                *Sonarcloud        `json:"sonarcloud,omitempty"`
	Destination               *Destination       `json:"destination,omitempty"`
}

type Mapper

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

Mapper gives high-level access to a parser.MappingRuleSet

func LoadFromFile

func LoadFromFile(path string) (*Mapper, error)

LoadFromFile returns an initilised Mapping instance or an error

func New

func New(rules *parser.MappingRuleSet) *Mapper

New returns a successfully initilised Mapping instance

func (*Mapper) Decorate

func (m *Mapper) Decorate(ctx context.Context, rg repoGetter, mg measureGetter, image *Image) (bool, error)

func (*Mapper) Static

func (m *Mapper) Static() []Image

Static returns the set of statically defined repos that wouldn;t be usually discoverable

type Sonarcloud

type Sonarcloud struct {
	CodeCoverage struct {
		Value float64 `json:"value"`
	} `json:"code_coverage"`
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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