-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from anchore/document-import
Add JSON document import
- Loading branch information
Showing
107 changed files
with
1,706 additions
and
1,247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package internal | ||
|
||
// note: do not change this | ||
// ApplicationName is the non-capitalized name of the application (do not change this) | ||
const ApplicationName = "syft" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* | ||
Package internal contains miscellaneous functions and objects useful within syft but should not be used externally. | ||
*/ | ||
package internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,49 @@ | ||
/* | ||
Package log contains the singleton object and helper functions for facilitating logging within the syft library. | ||
*/ | ||
package log | ||
|
||
import "github.com/anchore/syft/syft/logger" | ||
|
||
// Log is the singleton used to facilitate logging internally within syft | ||
var Log logger.Logger = &nopLogger{} | ||
|
||
// Errorf takes a formatted template string and template arguments for the error logging level. | ||
func Errorf(format string, args ...interface{}) { | ||
Log.Errorf(format, args...) | ||
} | ||
|
||
// Error logs the given arguments at the error logging level. | ||
func Error(args ...interface{}) { | ||
Log.Error(args...) | ||
} | ||
|
||
// Warnf takes a formatted template string and template arguments for the warning logging level. | ||
func Warnf(format string, args ...interface{}) { | ||
Log.Warnf(format, args...) | ||
} | ||
|
||
// Warn logs the given arguments at the warning logging level. | ||
func Warn(args ...interface{}) { | ||
Log.Warn(args...) | ||
} | ||
|
||
// Infof takes a formatted template string and template arguments for the info logging level. | ||
func Infof(format string, args ...interface{}) { | ||
Log.Infof(format, args...) | ||
} | ||
|
||
// Info logs the given arguments at the info logging level. | ||
func Info(args ...interface{}) { | ||
Log.Info(args...) | ||
} | ||
|
||
// Debugf takes a formatted template string and template arguments for the debug logging level. | ||
func Debugf(format string, args ...interface{}) { | ||
Log.Debugf(format, args...) | ||
} | ||
|
||
// Debug logs the given arguments at the debug logging level. | ||
func Debug(args ...interface{}) { | ||
Log.Debug(args...) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* | ||
Package logger contains implementations for the syft.logger.Logger interface. | ||
*/ | ||
package logger |
Oops, something went wrong.