Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gocsaf/fakedoc


https://github.com/gocsaf/fakedoc

csaf

Last synced: 19 days ago
JSON representation

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.0

SPDX-FileCopyrightText: 2024 German Federal Office for Information Security (BSI)
Software-Engineering: 2024 Intevation GmbH
```