Skip to content

gocsaf/fakedoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fake CSAF document generator

Will allow the creation of one or many fake CSAF 2.0 documents to explore and test implementations of this standard.

Will use the CSAF Go library where appropriate.

Usage

Generate a random CSAF document with default settings (with the -o option for the output file, the tracking ID will match the filename):

go run cmd/fakedoc/main.go -o random-csaf.json

The generator can be influenced with a template. Create a template containing all of the settings used by fakedoc with

go run cmd/createtemplate/main.go  > template.toml

Use the template to generate a document:

go run cmd/fakedoc/main.go --template template.toml -o random-csaf.json

The template file is used in addition to the built-in template used when the --template option is not given. See the template documentation for details about the templates.

Generate many documents at once with the -n option and an output filename with a template for filenames. This will generate 100 documents named csaf-0.json through csaf-99.json:

go run cmd/fakedoc/main.go --template template.toml -n 100 -o 'csaf-{{$}}.json'

License

fakedoc is Free Software:

SPDX-License-Identifier: Apache-2.0

SPDX-FileCopyrightText: 2024 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
Software-Engineering: 2024 Intevation GmbH <https://intevation.de>

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages