Documentation
¶
Index ¶
- func BuildOptions(licenseCmp LicenseComparer, locationCmp LocationComparer) []cmp.Option
- func DefaultIgnoreLocationLayerOptions() []cmp.Option
- func DefaultLicenseComparer(x, y pkg.License) bool
- func DefaultLocationComparer(x, y file.Location) bool
- func DefaultOptions() []cmp.Option
- func DefaultRelationshipComparer(x, y artifact.Relationship) bool
- func LicenseComparerWithoutLocationLayer(x, y pkg.License) bool
- func LocationComparerWithoutLayer(x, y file.Location) bool
- type DiffReporter
- type LicenseComparer
- type LocationComparer
- type RelationshipComparer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOptions ¶ added in v1.21.0
func BuildOptions(licenseCmp LicenseComparer, locationCmp LocationComparer) []cmp.Option
func DefaultIgnoreLocationLayerOptions ¶ added in v1.21.0
func DefaultLicenseComparer ¶
func DefaultLocationComparer ¶
func DefaultOptions ¶ added in v1.21.0
func DefaultRelationshipComparer ¶
func DefaultRelationshipComparer(x, y artifact.Relationship) bool
func LicenseComparerWithoutLocationLayer ¶ added in v1.21.0
func LocationComparerWithoutLayer ¶ added in v1.21.0
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.