linker

package
v0.0.0-...-3a64406 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package linker implements linking dependency changelogs when they get updated.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Linker

type Linker struct {
	Mappers []Mapper
}

Linker is an object containing a map of Mappers that will be applied to Map a changelog to a dependency.

func New

func New(mappers ...Mapper) Linker
func (l Linker) Link(cl *changelog.Changelog) error

Link will try to Link all the dependencies in a changelog.yml to the changelogs found in the mappers.

func (Linker) Map

func (l Linker) Map(dep changelog.Dependency) string

Map will iterate all the mappers to map dependencies with their changelogs.

type Mapper

type Mapper interface {
	Map(dep changelog.Dependency) string
}

Mapper is any object that can link to a changelog for a dependency.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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