supplements

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Supplement

func Supplement(logger logr.Logger, opResults []records.OperationResult) []records.EnhancedResult

Types

type Enhancer

type Enhancer interface {
	// Enhance assumption: opr not nil
	Enhance(opr records.OperationResult) records.EnhancedResult
	LType() records.LibType
}

type Fs

type Fs struct{}

func NewFsEnhancer

func NewFsEnhancer() Fs

func (Fs) Enhance

func (Fs) LType

func (f Fs) LType() records.LibType

type Golang

type Golang struct{}

func NewGolangEnhancer

func NewGolangEnhancer() Golang

func (Golang) Enhance

func (g Golang) Enhance(opResult records.OperationResult) records.EnhancedResult

func (Golang) LType

func (g Golang) LType() records.LibType

type HashMethod

type HashMethod interface {
	// Validate returns an error if this library is not valid for hashing
	Validate(lib rc.Library) error

	// Hash returns the additional sha1 for this library
	Hash(lib rc.Library) string
}

HashMethod represents the methods used to calculate the additional sha1 for a library

type Java

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

func NewJavaEnhancer

func NewJavaEnhancer(logger logr.Logger) Java

func (Java) Enhance

func (Java) LType

func (j Java) LType() records.LibType

type Ruby

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

func NewRubyEnhancer

func NewRubyEnhancer(logger logr.Logger) Ruby

func (Ruby) Enhance

func (Ruby) LType

func (r Ruby) LType() records.LibType

Jump to

Keyboard shortcuts

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