Documentation ¶
Index ¶
- func CommonOptions(licenseCmp LicenseComparer, locationCmp LocationComparer) []cmp.Option
- func DefaultCommonOptions() []cmp.Option
- func DefaultLicenseComparer(x, y pkg.License) bool
- func DefaultLocationComparer(x, y file.Location) bool
- func DefaultRelationshipComparer(x, y artifact.Relationship) bool
- type DiffReporter
- type LicenseComparer
- type LocationComparer
- type RelationshipComparer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonOptions ¶
func CommonOptions(licenseCmp LicenseComparer, locationCmp LocationComparer) []cmp.Option
func DefaultCommonOptions ¶
func DefaultLicenseComparer ¶
func DefaultLocationComparer ¶
func DefaultRelationshipComparer ¶
func DefaultRelationshipComparer(x, y artifact.Relationship) bool
Types ¶
type DiffReporter ¶
type DiffReporter struct {
// contains filtered or unexported fields
}
DiffReporter is a simple custom reporter that only records differences detected during comparison.
func NewDiffReporter ¶
func NewDiffReporter() DiffReporter
func (*DiffReporter) PopStep ¶
func (r *DiffReporter) PopStep()
func (*DiffReporter) PushStep ¶
func (r *DiffReporter) PushStep(ps cmp.PathStep)
func (*DiffReporter) Report ¶
func (r *DiffReporter) Report(rs cmp.Result)
func (*DiffReporter) String ¶
func (r *DiffReporter) String() string
type LicenseComparer ¶
type LocationComparer ¶
type RelationshipComparer ¶
type RelationshipComparer func(x, y artifact.Relationship) bool
Click to show internal directories.
Click to hide internal directories.