stack_new

package
v1.36.3 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Aws   = "aws"
	Azure = "azure"
	Gcp   = "gcp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	StackName    string
	ProviderName string
	Force        bool
}

type Model

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

Model - represents the state of the new stack creation operation

func New

func New(fs afero.Fs, args Args) Model

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model, used by Bubbletea

func (Model) ProviderName

func (m Model) ProviderName() string

ProviderName returns the stack cloud name selected by the user

func (Model) StackName

func (m Model) StackName() string

StackName - returns the stack name entered by the user

func (Model) Update

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

Update the model based on a message

func (Model) View

func (m Model) View() string

type NewStackStatus

type NewStackStatus int
const (
	NameInput NewStackStatus = iota
	ProviderInput
	Pending
	Done
	Error
)

type RegionItem

type RegionItem struct {
	Value       string
	Description string
}

func (*RegionItem) GetItemDescription

func (m *RegionItem) GetItemDescription() string

func (*RegionItem) GetItemValue

func (m *RegionItem) GetItemValue() string

Jump to

Keyboard shortcuts

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