stack_new

package
v1.33.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args added in v1.33.0

type Args struct {
	StackName    string
	ProviderName string
	Force        bool
}

type Model added in v1.33.0

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

Model - represents the state of the new stack creation operation

func New added in v1.33.0

func New(args Args) Model

func (Model) Init added in v1.33.0

func (m Model) Init() tea.Cmd

Init initializes the model, used by Bubbletea

func (Model) ProviderName added in v1.33.0

func (m Model) ProviderName() string

ProviderName returns the stack cloud name selected by the user

func (Model) Region added in v1.33.0

func (m Model) Region() string

Region returns the stack cloud region selected by the user

func (Model) StackName added in v1.33.0

func (m Model) StackName() string

StackName - returns the stack name entered by the user

func (Model) Update added in v1.33.0

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update the model based on a message

func (Model) View added in v1.33.0

func (m Model) View() string

type NewStackStatus added in v1.33.0

type NewStackStatus int
const (
	NameInput NewStackStatus = iota
	ProviderInput
	RegionInput
	GCPProjectInput
	AzureOrgInput
	AzureAdminEmailInput
	Pending
	Done
	Error
)

type RegionItem added in v1.33.0

type RegionItem struct {
	Value       string
	Description string
}

func (*RegionItem) GetItemDescription added in v1.33.0

func (m *RegionItem) GetItemDescription() string

func (*RegionItem) GetItemValue added in v1.33.0

func (m *RegionItem) GetItemValue() string

Jump to

Keyboard shortcuts

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