devconfig

package
v0.0.0-...-3776344 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRuntimeImageVersion = "0.8.1"

DefaultRuntimeImageVersion is used when the SDK version cannot be detected from the project's dependency file.

Variables

This section is empty.

Functions

func FindDeployConfig

func FindDeployConfig(appDir string) string

FindDeployConfig looks for a deploy config file in the given directory. Returns the path if found, empty string if not.

func PatchJWTIssuer

func PatchJWTIssuer(bp *schema.Blueprint, portOffset int)

PatchJWTIssuer rewrites the issuer in every JWT auth guard of every celerity/api resource to point to the local dev auth sidecar. The merged blueprint (not the original source file) is modified in-place so the runtime performs OIDC discovery against the sidecar.

func ReadDeployTarget

func ReadDeployTarget(path string) (string, error)

ReadDeployTarget reads the deploy target name from a deploy config file. Supports JSONC (strips comments before parsing).

Types

type ResolveOpts

type ResolveOpts struct {
	BlueprintFile string
	DeployConfig  string
	Port          string
	AppDir        string
	ModulePath    string
	Image         string
	ServiceName   string
	Mode          string // "run" or "test"
	Verbose       bool
	LocalAuth     bool // true (default) = patch issuer to dev auth sidecar; false = --no-local-auth
}

ResolveOpts holds the CLI flag values for config resolution.

type ResolvedConfig

type ResolvedConfig struct {
	Blueprint           *schema.Blueprint
	SpecFormat          schema.SpecFormat
	MergedBlueprintPath string
	DeployTarget        string
	RuntimeImage        string
	Runtime             string
	HandlerInfos        []blueprint.HandlerInfo
	Manifest            *preprocess.HandlerManifest
	ContainerConfig     *docker.ContainerConfig
	ComposeConfig       *compose.ComposeConfig
	SeedDir             string
	ConfigDir           string
	SecretsDir          string
	Mode                string
	AppDir              string
	ModulePath          string
	Port                string
	ServiceName         string
}

ResolvedConfig is the fully resolved configuration for a dev run.

func Resolve

func Resolve(ctx context.Context, opts ResolveOpts, logger *zap.Logger) (*ResolvedConfig, error)

Resolve assembles the complete configuration by loading the blueprint, extracting handlers, merging, resolving the image, and generating compose config.

Directories

Path Synopsis
Package resolve provides pure path-resolution and config-parsing helpers extracted from devconfig so they can be unit-tested without side effects.
Package resolve provides pure path-resolution and config-parsing helpers extracted from devconfig so they can be unit-tested without side effects.

Jump to

Keyboard shortcuts

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