dependency

package
v0.1.1-0...-fa1080e Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DependencyFileCheckFileSHA1

func DependencyFileCheckFileSHA1(df *api.DependencyFile) error

func DependencyFilePatch

func DependencyFilePatch(df *api.DependencyFile, patch string) error

Apply patch to the file referenced by Path If Content is empty, the file content is read from the file directly

func DependencyFileUpdate

func DependencyFileUpdate(df *api.DependencyFile) error

func DependencyFileUpdateSHA

func DependencyFileUpdateSHA(df *api.DependencyFile) error

func GetFileSHA1

func GetFileSHA1(filePath string) (string, error)

Return git SHA1 of the given file TODO: Make this generic (ie: working with SVN)

func ListDependencyAlerts

func ListDependencyAlerts(p *api.Project) error

func ListDependencyFiles

func ListDependencyFiles(p *api.Project) error

func LookupDependencyFiles

func LookupDependencyFiles(files []string) (dfiles []*api.DependencyFile, err error)

Load dependency files if files is not empty, otherwise search in the current path for files

func NewDependencyFile

func NewDependencyFile(filePath string) *api.DependencyFile

func PushDependencyFiles

func PushDependencyFiles(projectSlug string, files []string) error

Push project dependencies The current path will be scanned for supported dependency files.

func RenderDepsAsTable

func RenderDepsAsTable(deps []api.Dependency, output io.Writer)

Display deps in an ascii table

Types

This section is empty.

Jump to

Keyboard shortcuts

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