remove withspaces

This commit is contained in:
jgsqware 2016-07-01 10:35:08 +02:00
parent 21e097e8f0
commit 8bd785d8c1
4 changed files with 1 additions and 10 deletions

View File

@ -1,5 +1,3 @@
# clairctl # clairctl
> Tracking container vulnerabilities with Clair Control > Tracking container vulnerabilities with Clair Control
@ -54,10 +52,6 @@ clair:
format: html format: html
``` ```
# Remarks
1. Analyzing Official Docker image is disallowed. You cannot pull layers from image you don't own.
# Contribution and Test # Contribution and Test
Go to /contrib folder Go to /contrib folder

View File

@ -12,7 +12,6 @@ import (
func getSampleAnalysis() []byte { func getSampleAnalysis() []byte {
file, err := ioutil.ReadFile("./samples/clair_report.json") file, err := ioutil.ReadFile("./samples/clair_report.json")
if err != nil { if err != nil {
logrus.Errorf("File error: %v\n", err) logrus.Errorf("File error: %v\n", err)
} }
@ -47,7 +46,6 @@ func TestIsNotHealthy(t *testing.T) {
func TestRelativeCount(t *testing.T) { func TestRelativeCount(t *testing.T) {
var analysis ImageAnalysis var analysis ImageAnalysis
err := json.Unmarshal([]byte(getSampleAnalysis()), &analysis) err := json.Unmarshal([]byte(getSampleAnalysis()), &analysis)
if err != nil { if err != nil {
t.Errorf("Failing with error: %v", err) t.Errorf("Failing with error: %v", err)
} }

View File

@ -19,7 +19,6 @@ import (
// ErrUnanalizedLayer is returned when the layer was not correctly analyzed // ErrUnanalizedLayer is returned when the layer was not correctly analyzed
var ErrUnanalizedLayer = errors.New("layer cannot be analyzed") var ErrUnanalizedLayer = errors.New("layer cannot be analyzed")
//Push send a layer to Clair for analysis
var registryMapping map[string]string var registryMapping map[string]string
//Push image to Clair for analysis //Push image to Clair for analysis

View File

@ -10,10 +10,10 @@ func Versions() (interface{}, error) {
Config() Config()
response, err := http.Get(uri + "/versions") response, err := http.Get(uri + "/versions")
defer response.Body.Close() defer response.Body.Close()
if err != nil { if err != nil {
return nil, fmt.Errorf("requesting Clair version: %v", err) return nil, fmt.Errorf("requesting Clair version: %v", err)
} }
var versionBody interface{} var versionBody interface{}
err = json.NewDecoder(response.Body).Decode(&versionBody) err = json.NewDecoder(response.Body).Decode(&versionBody)
if err != nil { if err != nil {