Documentation ¶
Index ¶
- func DependencyFileCheckFileSHA1(df *api.DependencyFile) error
- func DependencyFilePatch(df *api.DependencyFile, patch string) error
- func DependencyFileUpdate(df *api.DependencyFile) error
- func DependencyFileUpdateSHA(df *api.DependencyFile) error
- func GetFileSHA1(filePath string) (string, error)
- func ListDependencies(p *api.Project) error
- func ListDependencyAlerts(p *api.Project) error
- func ListDependencyFiles(p *api.Project) error
- func LookupDependencyFiles(files []string) (dfiles []*api.DependencyFile, err error)
- func NewDependencyFile(filePath string) *api.DependencyFile
- func PushDependencyFiles(projectSlug string, files []string) error
- func RenderDepsAsTable(deps []api.Dependency, output io.Writer)
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 ¶
Return git SHA1 of the given file TODO: Make this generic (ie: working with SVN)
func ListDependencies ¶
func ListDependencyAlerts ¶
func ListDependencyFiles ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.