model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusUnfetched fetchStatus = iota
	StatusFetching
	StatusFetched
	StatusFailure
)

Variables

This section is empty.

Functions

func GetCFTemplateBody

func GetCFTemplateBody(awsConfig awsConfig, index int, stack Stack) tea.Cmd

func InitialModel

func InitialModel(stacks []Stack) model

func RightPadTrim

func RightPadTrim(s string, length int) string

func StackChosen

func StackChosen(index int, stack Stack) tea.Cmd

func Trim

func Trim(s string, length int) string

Types

type CheckStackStatus

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

type CredentialsRefreshedMsg

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

type DiffFinishedMsg

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

type ShowDiffFinished

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

type ShowErrorFinishedMsg

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

type ShowFileFinished

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

type Stack

type Stack struct {
	Name           string
	AwsProfile     string
	AwsRegion      string
	Template       string
	Local          string
	Tag            *string
	RefreshCommand string
	FetchStatus    fetchStatus
	OuttaSync      bool
	Err            error
}

func (Stack) Description

func (stack Stack) Description() string

func (Stack) FilterValue

func (stack Stack) FilterValue() string

func (Stack) Title

func (stack Stack) Title() string

type TemplateFetchedMsg

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

Jump to

Keyboard shortcuts

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