vulcan

package
v0.0.0-...-059d9f2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ConfigVersionV3 = 3
	ConfigVersionV4 = 4
	ConfigVersionV6 = 6
)

The --config-version sent to the bundler for each API generation. The value is the generation's number: the bundler writes and reads the azion.config of that generation.

Variables

View Source
var (
	StagePkgURL = "https://pkg.pr.new/aziontech/bundler/@aziontech/bundler@main"
)

Functions

func ArgsPathArg

func ArgsPathArg(configDir string) string

ArgsPathArg returns the --args-path option for the bundler, pointing to the args.json inside configDir, or an empty string when no config dir was given (the bundler then falls back to azion/args.json). Quoted for sh -c.

func CheckConfigFile

func CheckConfigFile(configFile string) error

CheckConfigFile fails early when the given azion.config file does not exist, before any command changes local or remote state. An empty path is valid.

func ConfigFileArg

func ConfigFileArg(configFile string) string

ConfigFileArg returns the --config-file option for the bundler, or an empty string when no config file was given. The path is single-quoted for sh -c.

func ConfigVersion

func ConfigVersion(v apiversion.Version) int

ConfigVersion is the --config-version of an API generation. An unknown or unresolved generation gets v4's, the CLI's default generation.

Types

type VulcanPkg

type VulcanPkg struct {
	Command          func(flags, params string, f *cmdutil.Factory) string
	CheckVulcanMajor func(currentVersion string, f *cmdutil.Factory, vulcan *VulcanPkg) error
	ReadSettings     func(string) (token.Settings, error)
}

func For

func For(f *cmdutil.Factory) *VulcanPkg

For returns the bundler for the account's API generation, with the matching --config-version: v3 runs edge-functions, and v4 and v6 the published bundler. Every command that runs the bundler gets it from here, so the config version always follows the account.

func NewVulcan

func NewVulcan() *VulcanPkg

func NewVulcanV3

func NewVulcanV3() *VulcanPkg

NewVulcanV3 runs edge-functions for API v3 projects. Its config version is ConfigVersionV3, but edge-functions@5.3.2 rejects --config-version ("unknown option"), so the flag is not sent; v3SendsConfigVersion turns it on once a v3 package accepts it.

func NewVulcanV6

func NewVulcanV6() *VulcanPkg

NewVulcanV6 runs the bundler for an API v6 project: the same published bundler as v4 (versionVulcan), with --config-version 6.

Setting AZIONCLI_BUNDLER_V6 to a package spec (for example a pkg.pr.new build) runs that instead, to try a bundler change before it is published.

Jump to

Keyboard shortcuts

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