realmgen

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateOptions

func ValidateOptions(options Options) error

Types

type Options

type Options struct {
	Realm                   string
	WithUsers               int
	WithClients             int
	WithRoles               int
	WithGroups              int
	WithOrganizations       int
	WithIdentityProviders   int
	WithClientScopes        int
	WithAuthenticationFlows int
	WithPasswordPolicies    int
	WithSecurityDefenses    int
}

type Result

type Result struct {
	Resources     []manifest.Resource
	Relationships []manifest.RelationshipOperation
	Summary       Summary
}

type Service

type Service interface {
	Generate(specPath string, options Options) (Result, error)
}

Service is the public API for realm generation.

func New

func New() Service

New returns a production-ready realm generation service.

type Summary

type Summary struct {
	SpecPath       string         `json:"specPath"`
	GeneratedAt    string         `json:"generatedAt"`
	Realm          string         `json:"realm"`
	ResourceCounts map[string]int `json:"resourceCounts"`
	SchemaCount    int            `json:"schemaCount"`
}

Directories

Path Synopsis
Package internal is an implementation detail of the realmgen module.
Package internal is an implementation detail of the realmgen module.

Jump to

Keyboard shortcuts

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