Documentation ¶
Index ¶
- Constants
- func GetCmdDeployHelpDescription(*cobra.Command) string
- func GetCmdDeployHelpFooter(*cobra.Command) string
- func GetCmdProvisionHelpDescription(c *cobra.Command) string
- func MapError(err error, span tracing.Span)
- func NewDeployAction(flags *DeployFlags, args []string, projectConfig *project.ProjectConfig, ...) actions.Action
- func NewDeployCmd() *cobra.Command
- func NewProvisionAction(flags *ProvisionFlags, provisionManager *provisioning.Manager, ...) actions.Action
- func NewProvisionCmd() *cobra.Command
- type DeployAction
- type DeployFlags
- type DeploymentResult
- type ProvisionAction
- type ProvisionFlags
Constants ¶
View Source
const (
AINotValid = "is not valid according to the validation procedure"
)
Variables ¶
This section is empty.
Functions ¶
func GetCmdDeployHelpFooter ¶
func MapError ¶
MapError maps the given error to a telemetry span, setting relevant status and attributes.
func NewDeployAction ¶
func NewDeployAction( flags *DeployFlags, args []string, projectConfig *project.ProjectConfig, projectManager project.ProjectManager, serviceManager project.ServiceManager, resourceManager project.ResourceManager, azdCtx *azdcontext.AzdContext, environment *environment.Environment, accountManager account.Manager, cloud *cloud.Cloud, azCli *azapi.AzureClient, commandRunner exec.CommandRunner, console input.Console, formatter output.Formatter, writer io.Writer, alphaFeatureManager *alpha.FeatureManager, importManager *project.ImportManager, ) actions.Action
func NewDeployCmd ¶
func NewProvisionAction ¶
func NewProvisionAction( flags *ProvisionFlags, provisionManager *provisioning.Manager, projectManager project.ProjectManager, importManager *project.ImportManager, resourceManager project.ResourceManager, projectConfig *project.ProjectConfig, env *environment.Environment, envManager environment.Manager, console input.Console, formatter output.Formatter, writer io.Writer, subManager *account.SubscriptionsManager, alphaFeatureManager *alpha.FeatureManager, cloud *cloud.Cloud, ) actions.Action
func NewProvisionCmd ¶
Types ¶
type DeployAction ¶
type DeployAction struct {
// contains filtered or unexported fields
}
func (*DeployAction) Run ¶
func (da *DeployAction) Run(ctx context.Context) (*actions.ActionResult, error)
type DeployFlags ¶
func NewDeployFlags ¶
func NewDeployFlags(cmd *cobra.Command, global *internal.GlobalCommandOptions) *DeployFlags
func NewDeployFlagsFromEnvAndOptions ¶
func NewDeployFlagsFromEnvAndOptions(envFlag *internal.EnvFlag, global *internal.GlobalCommandOptions) *DeployFlags
func (*DeployFlags) Bind ¶
func (d *DeployFlags) Bind(local *pflag.FlagSet, global *internal.GlobalCommandOptions)
func (*DeployFlags) BindNonCommon ¶
func (d *DeployFlags) BindNonCommon( local *pflag.FlagSet, global *internal.GlobalCommandOptions)
func (*DeployFlags) SetCommon ¶
func (d *DeployFlags) SetCommon(envFlag *internal.EnvFlag)
type DeploymentResult ¶
type DeploymentResult struct { Timestamp time.Time `json:"timestamp"` Services map[string]*project.ServiceDeployResult `json:"services"` }
type ProvisionAction ¶
type ProvisionAction struct {
// contains filtered or unexported fields
}
func (*ProvisionAction) Run ¶
func (p *ProvisionAction) Run(ctx context.Context) (*actions.ActionResult, error)
func (*ProvisionAction) SetFlags ¶
func (p *ProvisionAction) SetFlags(flags *ProvisionFlags)
SetFlags sets the flags for the provision action. Panics if `flags` is nil
type ProvisionFlags ¶
func NewProvisionFlags ¶
func NewProvisionFlags(cmd *cobra.Command, global *internal.GlobalCommandOptions) *ProvisionFlags
func NewProvisionFlagsFromEnvAndOptions ¶
func NewProvisionFlagsFromEnvAndOptions(envFlag *internal.EnvFlag, global *internal.GlobalCommandOptions) *ProvisionFlags
func (*ProvisionFlags) Bind ¶
func (i *ProvisionFlags) Bind(local *pflag.FlagSet, global *internal.GlobalCommandOptions)
func (*ProvisionFlags) BindNonCommon ¶
func (i *ProvisionFlags) BindNonCommon(local *pflag.FlagSet, global *internal.GlobalCommandOptions)
func (*ProvisionFlags) SetCommon ¶
func (i *ProvisionFlags) SetCommon(envFlag *internal.EnvFlag)
Click to show internal directories.
Click to hide internal directories.