Documentation
¶
Index ¶
Constants ¶
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 ¶
FindDeployConfig looks for a deploy config file in the given directory. Returns the path if found, empty string if not.
func PatchJWTIssuer ¶
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 ¶
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. |