generator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package generator renders Go source files for declared IAM permission definitions and parses existing permission.go sources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstName

func ConstName(resource, action string) string

ConstName turns a resource+action pair into a valid Go identifier. "signing-keys" + "read" becomes "SigningKeysRead". Callers must pass concrete manifest keys; Render rejects wildcard declarations before naming.

func Render

func Render(in Input) ([]byte, error)

Render produces the Go source for permissions.gen.go.

Types

type Input

type Input struct {
	Package     string
	GoImport    string // defaults to "github.com/axis-iam/vertex-sdk-go/authz"
	Permissions []authz.PermissionDefinition
}

Input drives the template.

Jump to

Keyboard shortcuts

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