generator

command
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

The Generator package provides a way to generate code for collecting, transfering and saving resources in the agent and api. It also provides functions to fetc the resources.

	go run build/generator/main.go

  - pkg/apicontracts/apiresourcecontracts/resource_models_generated.go
  - pkg/apicontracts/apiresourcecontracts/resource_models_methods_generated.go
  - pkg/rorresources/fromstruct.go
  - pkg/rorresources/resource.go
  - pkg/rorresources/rorkubernetes/k8s_test.go
  - pkg/rorresources/rorkubernetes/k8s.go
  - pkg/rorresources/rortypes/resource_interfaces.go
  - pkg/rorresources/rortypes/resource_models_methods.go
  - pkg/rorresources/rortypes/resource_input_filter_*.go

The repo github.com/NorskHelsenett/ROR, should be placed in the ../ror folder or the ROR_PATH environment variable should be set to the path.

The input of the package is the []rordefs.ApiResource provided by the "github.com/NorskHelsenett/ror/pkg/rorresources/rordefs" package rordefs in the variable Resources

If new structs are added to the resources, add new structs in the pkg/apicontracts/apiresourcecontracts/* files

TODO: Provide docslink

Jump to

Keyboard shortcuts

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