Documentation ¶
Index ¶
- func DiffBlocks(old map[string]*project.ResourceConfig, new map[string]*project.ResourceConfig) (string, error)
- func Metadata(r *project.ResourceConfig) resourceMeta
- func NewAddAction(azdCtx *azdcontext.AzdContext, envManager environment.Manager, ...) actions.Action
- func NewAddCmd() *cobra.Command
- type AddAction
- type Menu
- type Model
- type ModelList
- type ModelResponse
- type ModelSku
- type ModelSystemData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffBlocks ¶
func DiffBlocks(old map[string]*project.ResourceConfig, new map[string]*project.ResourceConfig) (string, error)
DiffBlocks returns a textual diff of new - old.
It compares the values in old and new, and generates a textual diff for each value difference between old and new. It doesn't currently support deletions of new from old.
func Metadata ¶
func Metadata(r *project.ResourceConfig) resourceMeta
func NewAddAction ¶
func NewAddAction( azdCtx *azdcontext.AzdContext, envManager environment.Manager, subManager *account.SubscriptionsManager, alphaManager *alpha.FeatureManager, env *environment.Environment, creds account.SubscriptionCredentialProvider, prompter prompt.Prompter, rm infra.ResourceManager, armClientOptions *arm.ClientOptions, appInit *repository.Initializer, azd workflow.AzdCommandRunner, console input.Console) actions.Action
Types ¶
type Menu ¶
type Menu struct { // Namespace of the resource type. Namespace string // Label displayed in the menu. Label string // SelectResource is the continuation that returns the resource with type filled in. SelectResource resourceSelection }
A menu to be displayed.
type Model ¶
type Model struct { Name string `json:"name"` Skus []ModelSku `json:"skus"` Version string `json:"version"` SystemData ModelSystemData `json:"systemData"` }
type ModelResponse ¶
type ModelResponse struct {
Value []ModelList `json:"value"`
}
type ModelSystemData ¶
type ModelSystemData struct {
CreatedAt string `json:"createdAt"`
}
Click to show internal directories.
Click to hide internal directories.