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 NewCobraCmd ¶
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.