Documentation ¶
Overview ¶
Copyright 2023 WeFuzz Research and Development B.V.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func CheckServerReachable(server string) bool
- func FetchReportByIndex(server string, index int) error
- func FetchReportByRecord(server string, record string) error
- func SaveEntry(homedir string, entry Entry) error
- func UploadReport(homedir string, server string, report string, saveToIPFS bool) error
- func VerifyReportByIndex(server string, index int64) error
- type Data
- type Entry
- type InclusionProof
- type Record
- type RecordEntryResponse
- type Verification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckServerReachable ¶
Check if the server is reachable
func FetchReportByIndex ¶
Fetch a vulnerability report from the server by index
func FetchReportByRecord ¶
Fetch a vulnerability report from the server by record id
func UploadReport ¶
Upload a vulnerability report to the server
func VerifyReportByIndex ¶
Verify report by index
Types ¶
type Entry ¶
type InclusionProof ¶
type Record ¶
type Record struct { Body string `json:"body"` // Version string `json:"version"` // Description string `json:"description"` // Attributes string `json:"attributes"` // Author string `json:"author"` // Platform string `json:"platform"` // Service string `json:"service"` // Severity string `json:"severity"` // Attachments string `json:"attachments"` // PubKey string `json:"pubKey"` // Signature string `json:"signature"` IntegratedTime int64 `json:"integratedTime"` LogID string `json:"logID"` LogIndex int64 `json:"logIndex"` Verification Verification `json:"verification"` }
type RecordEntryResponse ¶
func (*RecordEntryResponse) PrettyPrint ¶
func (r *RecordEntryResponse) PrettyPrint()
type Verification ¶
type Verification struct { InclusionProof *InclusionProof `json:"inclusionProof"` SignedEntryTimestamp string `json:"signedEntryTimestamp"` }