deploy

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: 12 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

Overview

Package deploy is `azion deploy` for API v6 accounts. It keeps the v4 command's flags, adds the ones v6 needs, and runs the v6 pipeline in pkg/cmd/deploy_remote/v6.

Without --local or --dry-run it runs the remote deploy (Remote): the same script runner script v4 uses, which runs the deploy on Azion's side. That lives in pkg/cmd/deploy, which imports this package, so it is given to the command rather than imported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(f *cmdutil.Factory) *cobra.Command

func NewCobraCmd

func NewCobraCmd(d *DeployCmd) *cobra.Command

Types

type DeployCmd

type DeployCmd struct {
	F *cmdutil.Factory

	Path          string
	Auto          bool
	NoPrompt      bool
	SkipBuild     bool
	ProjectConf   string
	Local         bool
	DryRun        bool
	WriteBucket   bool
	Env           string
	SkipFramework bool
	Workers       int
	AliasEnv      bool
	ConfigFile    string

	Environment string
	NoActivate  bool
	Timeout     time.Duration

	// Remote runs the deploy on the script runner, as v4 does. Nil means
	// there is none, and a deploy without --local runs locally instead.
	Remote func(ctx context.Context, d *DeployCmd) error
	// contains filtered or unexported fields
}

DeployCmd holds the flags of the v6 deploy.

func NewDeployCmd

func NewDeployCmd(f *cmdutil.Factory) *DeployCmd

func (*DeployCmd) ExternalRun

func (d *DeployCmd) ExternalRun(_ *cmdutil.Factory, configPath string, _, local, skipFramework, aliasEnv bool) error

ExternalRun is the deploy init and link start when the user asks to deploy right away. v6 has no sync step, so sync is ignored.

func (*DeployCmd) Run

func (d *DeployCmd) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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