prompt

package
v0.0.0-...-4d33260 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultPrompter

type DefaultPrompter struct {
	// contains filtered or unexported fields
}

func (*DefaultPrompter) PromptLocation

func (p *DefaultPrompter) PromptLocation(
	ctx context.Context,
	subId string,
	msg string,
	filter LocationFilterPredicate,
) (string, error)

func (*DefaultPrompter) PromptResourceGroup

func (p *DefaultPrompter) PromptResourceGroup(ctx context.Context) (string, error)

func (*DefaultPrompter) PromptSubscription

func (p *DefaultPrompter) PromptSubscription(ctx context.Context, msg string) (subscriptionId string, err error)

type LocationFilterPredicate

type LocationFilterPredicate func(loc account.Location) bool

type Prompter

type Prompter interface {
	PromptSubscription(ctx context.Context, msg string) (subscriptionId string, err error)
	PromptLocation(ctx context.Context, subId string, msg string, filter LocationFilterPredicate) (string, error)
	PromptResourceGroup(ctx context.Context) (string, error)
}

func NewDefaultPrompter

func NewDefaultPrompter(
	env *environment.Environment,
	console input.Console,
	accountManager account.Manager,
	resourceService *azapi.ResourceService,
	cloud *cloud.Cloud,
) Prompter

Jump to

Keyboard shortcuts

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