format

package
v5.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsJSON

func AsJSON(r *scorecard.Result, showDetails bool, logLevel log.Level, writer io.Writer) error

AsJSON exports results as JSON for new detail format.

func AsJSON2

func AsJSON2(r *scorecard.Result, showDetails bool,
	logLevel log.Level, checkDocs docs.Doc, writer io.Writer,
) error

AsJSON2 exports results as JSON for the cron job and in the new detail format.

func AsRawJSON

func AsRawJSON(r *scorecard.Result, writer io.Writer) error

AsRawJSON exports results as JSON for raw results.

func GenerateBQSchema

func GenerateBQSchema(t interface{}) (string, error)

GenerateBQSchema generates the BQ schema in JSON format. Can be used to generate a BQ table: `bq mk --table --time_partitioning_type DAY \ --require_partition_filter=TRUE \ --time_partitioning_field date \ openssf:scorecardcron.scorecard-rawdata-releasetest \ cron/format/bq.raw.schema`. The structure `t` must be annotated using BQ fields: a string `bigquery:"name"`.

func GenerateJSONSchema

func GenerateJSONSchema(t interface{}) string

GenerateJSONSchema generates the schema for a JSON structure.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL