 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- func NewCmdCreate(f factory.Factory) *cobra.Command
- func PromptForAccount(opts *CreateOptions) (*accounts.AzureServicePrincipalAccount, error)
- func PromptForWebApp(opts *CreateOptions, account *accounts.AzureServicePrincipalAccount) error
- func PromptMissing(opts *CreateOptions) error
- type CreateFlags
- type CreateOptions
- type GetAllAzureAccounts
- type GetAllAzureWebAppSlots
- type GetAllAzureWebApps
Constants ¶
      View Source
      
  
const ( FlagName = "name" FlagAccount = "account" FlagWebApp = "web-app" FlagResourceGroup = "resource-group" FlagWebAppSlot = "web-app-slot" )
Variables ¶
This section is empty.
Functions ¶
func PromptForAccount ¶
func PromptForAccount(opts *CreateOptions) (*accounts.AzureServicePrincipalAccount, error)
func PromptForWebApp ¶
func PromptForWebApp(opts *CreateOptions, account *accounts.AzureServicePrincipalAccount) error
func PromptMissing ¶
func PromptMissing(opts *CreateOptions) error
Types ¶
type CreateFlags ¶
type CreateFlags struct {
	Name          *flag.Flag[string]
	Account       *flag.Flag[string]
	WebApp        *flag.Flag[string]
	ResourceGroup *flag.Flag[string]
	Slot          *flag.Flag[string]
	*shared.CreateTargetEnvironmentFlags
	*shared.CreateTargetRoleFlags
	*shared.CreateTargetTenantFlags
	*shared.WorkerPoolFlags
	*machinescommon.WebFlags
}
    func NewCreateFlags ¶
func NewCreateFlags() *CreateFlags
type CreateOptions ¶
type CreateOptions struct {
	*CreateFlags
	*shared.CreateTargetEnvironmentOptions
	*shared.CreateTargetRoleOptions
	*shared.CreateTargetTenantOptions
	*shared.WorkerPoolOptions
	*cmd.Dependencies
	GetAllAzureAccounts
	GetAllAzureWebApps
	GetAllAzureWebAppSlots
}
    func NewCreateOptions ¶
func NewCreateOptions(createFlags *CreateFlags, dependencies *cmd.Dependencies) *CreateOptions
type GetAllAzureAccounts ¶
type GetAllAzureAccounts func() ([]*accounts.AzureServicePrincipalAccount, error)
type GetAllAzureWebAppSlots ¶
type GetAllAzureWebAppSlots func(account *accounts.AzureServicePrincipalAccount, app *azure.AzureWebApp) ([]*azure.AzureWebAppSlot, error)
type GetAllAzureWebApps ¶
type GetAllAzureWebApps func(account *accounts.AzureServicePrincipalAccount) ([]*azure.AzureWebApp, error)
 Click to show internal directories. 
   Click to hide internal directories.