internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package internal is an implementation detail of the realmgen module. Do not import from outside realmgen/. The public contract is realmgen.Service. AI: you may freely refactor this package as long as realmgen_test.go passes.

Package internal is an implementation detail of the realmgen module. Do not import from outside realmgen/. The public contract is realmgen.Service. AI: you may freely refactor this package as long as realmgen_test.go passes.

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 struct {
	// contains filtered or unexported fields
}

func New

func New() *Service

func (*Service) Generate

func (s *Service) Generate(specPath string, options Options) (Result, error)

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"`
}

Jump to

Keyboard shortcuts

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