Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analysis ¶
type Analysis struct { ID bson.ObjectId `bson:"_id,omitempty"` RID string `bson:"RID" json:"RID"` URL string `bson:"repositoryURL" json:"repositoryURL"` Branch string `bson:"repositoryBranch" json:"repositoryBranch"` SecurityTests []SecurityTest `bson:"securityTests" json:"securityTests"` Status string `bson:"status" json:"status"` Result string `bson:"result" json:"result"` Containers []Container `bson:"containers" json:"containers"` StartedAt time.Time `bson:"startedAt" json:"startedAt"` FinishedAt time.Time `bson:"finishedAt" json:"finishedAt"` }
Analysis is the struct that stores all data from analysis performed.
type Container ¶
type Container struct { CID string `bson:"CID" json:"CID"` SecurityTest SecurityTest `bson:"securityTest" json:"securityTest"` CStatus string `bson:"cStatus" json:"cStatus"` COuput string `bson:"cOutput" json:"cOutput"` CResult string `bson:"cResult" json:"cResult"` CInfo string `bson:"cInfo" json:"cInfo"` StartedAt time.Time `bson:"startedAt" json:"startedAt"` FinishedAt time.Time `bson:"finishedAt" json:"finishedAt"` }
Container is the struct that stores all data from a container run.
type Language ¶
type Language struct { Name string `bson:"name" json:"language_name"` Files []string `bson:"files" json:"language_files"` }
Language is the struct that stores all data from a language's repository.
type Repository ¶
type Repository struct { ID bson.ObjectId `bson:"_id,omitempty"` URL string `bson:"repositoryURL" json:"repositoryURL"` Branch string `bson:"repositoryBranch" json:"repositoryBranch"` SecurityTests []SecurityTest `bson:"securityTests" json:"securityTests"` SecurityTestName []string `bson:"securityTestName,omitempty" json:"securityTestName"` CreatedAt time.Time `bson:"createdAt" json:"createdAt"` DeletedAt time.Time `bson:"deletedAt" json:"deletedAt"` Languages []Language `bson:"languages" json:"languages"` }
Repository is the struct that stores all data from repository to be analyzed.
type SecurityTest ¶
type SecurityTest struct { ID bson.ObjectId `bson:"_id,omitempty"` Name string `bson:"name" json:"name"` Image string `bson:"image" json:"image"` Cmd string `bson:"cmd" json:"cmd"` Language string `bson:"language" json:"language"` Default bool `bson:"default" json:"default"` TimeOutInSeconds int `bson:"timeOutSeconds" json:"timeOutSeconds"` }
SecurityTest is the struct that stores all data from the security tests to be executed.
Click to show internal directories.
Click to hide internal directories.