genapi

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthModeNone         = libcfg.AuthModeNone
	AuthModeServiceToken = libcfg.AuthModeServiceToken
	AuthModePerCallToken = libcfg.AuthModePerCallToken
)
View Source
const (
	ModeSkip  = libcfg.ModeSkip
	ModeInit  = libcfg.ModeInit
	ModeForce = libcfg.ModeForce
)

Variables

This section is empty.

Functions

func Run

func Run(cfg Config) error

Run runs the configured workflow.

func RunTests

func RunTests(cfg Config) error

RunTests runs generator tests for the selected project root.

func RunTestsWithWriters

func RunTestsWithWriters(cfg Config, stdout, stderr io.Writer) error

RunTestsWithWriters runs generator tests for the selected project root.

func RunWithWriters

func RunWithWriters(cfg Config, stdout, stderr io.Writer) error

RunWithWriters runs the configured workflow.

Types

type AuthHeader

type AuthHeader = libcfg.AuthHeader

AuthHeader describes one generated auth-token header.

type AuthMode

type AuthMode = libcfg.AuthMode

AuthMode controls generated API auth wiring.

func ParseAuthMode

func ParseAuthMode(raw string) (AuthMode, error)

ParseAuthMode parses user input into AuthMode.

type Config

type Config = libcfg.Config

type Mode

type Mode = libcfg.Mode

Mode controls generation behavior for entity and wrapper artifacts.

func ParseMode

func ParseMode(raw string) (Mode, error)

ParseMode parses user input into Mode.

Directories

Path Synopsis
cmd
apibuilder command
internal

Jump to

Keyboard shortcuts

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