feedback

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConsTypeConstraint represents a constraint
	ConsTypeConstraint = "constraint"

	// ConsTypeHint represents a constraint type hint
	ConsTypeHint = "hint"

	// DepTypeDirect represents a direct dependency
	DepTypeDirect = "direct dep"

	// DepTypeTransitive represents a transitive dependency,
	// or a dependency of a dependency
	DepTypeTransitive = "transitive dep"

	// DepTypeImported represents a dependency imported by an external tool
	DepTypeImported = "imported dep"
)

Variables

This section is empty.

Functions

func GetLockingFeedback

func GetLockingFeedback(version, revision, depType, projectPath string) string

GetLockingFeedback returns a dependency "locking" feedback message. For example:

Locking in v1.1.4 (bc29b4f) for direct dep github.com/foo/bar
Locking in master (436f39d) for transitive dep github.com/baz/qux

func GetUsingFeedback

func GetUsingFeedback(version, consType, depType, projectPath string) string

GetUsingFeedback returns a dependency "using" feedback message. For example:

Using ^1.0.0 as constraint for direct dep github.com/foo/bar
Using 1b8edb3 as hint for direct dep github.com/bar/baz

Types

type ConstraintFeedback

type ConstraintFeedback struct {
	Constraint, LockedVersion, Revision, ConstraintType, DependencyType, ProjectPath string
}

ConstraintFeedback holds project constraint feedback data

func NewConstraintFeedback added in v0.2.0

func NewConstraintFeedback(pc gps.ProjectConstraint, depType string) *ConstraintFeedback

NewConstraintFeedback builds a feedback entry for a constraint in the manifest.

func NewLockedProjectFeedback added in v0.2.0

func NewLockedProjectFeedback(lp gps.LockedProject, depType string) *ConstraintFeedback

NewLockedProjectFeedback builds a feedback entry for a project in the lock.

func (ConstraintFeedback) LogFeedback

func (cf ConstraintFeedback) LogFeedback(logger *log.Logger)

LogFeedback logs feedback on changes made to the manifest or lock.

Jump to

Keyboard shortcuts

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