Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gocsaf/fakedoc
https://github.com/gocsaf/fakedoc
csaf
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gocsaf/fakedoc
- Owner: gocsaf
- Created: 2024-10-23T15:46:59.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-12T09:39:49.000Z (21 days ago)
- Last Synced: 2024-12-12T10:29:23.782Z (21 days ago)
- Topics: csaf
- Language: Go
- Homepage:
- Size: 115 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSES/Apache-2.0.txt
Awesome Lists containing this project
README
# 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):``` shell
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``` shell
go run cmd/createtemplate/main.go > template.toml
```Use the template to generate a document:
``` shell
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](docs/templates.md) 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`:``` shell
go run cmd/fakedoc/main.go --template template.toml -n 100 -o 'csaf-{{$}}.json'
```## License
fakedoc is Free Software:
```
SPDX-License-Identifier: Apache-2.0SPDX-FileCopyrightText: 2024 German Federal Office for Information Security (BSI)
Software-Engineering: 2024 Intevation GmbH
```