Documentation ¶
Index ¶
- func CalculateRowHeight(pdf *gofpdf.Fpdf, text string, width, lineHeight float64) float64
- func GeneratePDFReport(stepWiseData map[string]StepData, filename string) error
- func ProcessVerifiedEvidence(verifiedEvidence map[string][]source.VerifiedCollection, ...) (map[string]StepData, error)
- type AttestationInfo
- type Functionary
- type ReportConfig
- type StepData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateRowHeight ¶
CalculateRowHeight calculates the required height for a MultiCell.
func GeneratePDFReport ¶
func ProcessVerifiedEvidence ¶
func ProcessVerifiedEvidence(verifiedEvidence map[string][]source.VerifiedCollection, reportConfig ReportConfig) (map[string]StepData, error)
Types ¶
type AttestationInfo ¶
type AttestationInfo struct { ID string `yaml:"id"` URL string `yaml:"url"` Fields []string `yaml:"fields"` }
AttestationInfo holds information about each attestation in the report.
type Functionary ¶
type ReportConfig ¶
type ReportConfig struct { Title string `yaml:"title"` StepsSummary bool `yaml:"steps_summary"` Attestations []AttestationInfo `yaml:"attestations"` }
func LoadReportConfig ¶
func LoadReportConfig(filePath string) (ReportConfig, error)
LoadReportConfig reads the YAML configuration file and unmarshals it into a ReportConfig struct.
Click to show internal directories.
Click to hide internal directories.