ui

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultBackgroundColor = "#282828"
	StackListColor         = "#fe8019"
)
View Source
const (
	StatusUnfetched fetchStatus = iota
	StatusFetching
	StatusFetched
	StatusFailure
)

Variables

This section is empty.

Functions

func GetAWSConfig added in v0.3.0

func GetAWSConfig(profile string, region string) (aws.Config, error)

func GetAWSConfigKey added in v0.3.0

func GetAWSConfigKey(stack Stack) string

func InitialModel added in v0.3.0

func InitialModel(stacks []Stack, awsCfgs map[string]AwsConfig) model

func RenderUI

func RenderUI(stacks []Stack, awsCfgs map[string]AwsConfig)

func RightPadTrim added in v0.3.0

func RightPadTrim(s string, length int) string

func ShowResults added in v0.3.0

func ShowResults(stacks []Stack, awsCfgs map[string]AwsConfig)

func StackChosen added in v0.3.0

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

func Trim added in v0.3.0

func Trim(s string, length int) string

Types

type AwsCFClient added in v0.3.0

type AwsCFClient struct {
	Client *cloudformation.Client
	Err    error
}

type AwsConfig added in v0.3.0

type AwsConfig struct {
	Config aws.Config
	Err    error
}

type CheckStackStatus added in v0.3.0

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

type CredentialsRefreshedMsg added in v0.3.0

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

type DiffFinishedMsg added in v0.3.0

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

type ShowDiffFinished added in v0.3.0

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

type ShowErrorFinishedMsg added in v0.3.0

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

type ShowFileFinished added in v0.3.0

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

type Stack added in v0.3.0

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 added in v0.3.0

func (stack Stack) Description() string

func (Stack) FilterValue added in v0.3.0

func (stack Stack) FilterValue() string

func (Stack) Title added in v0.3.0

func (stack Stack) Title() string

type StackSyncResult added in v0.3.0

type StackSyncResult struct {
	Stack        Stack
	TemplateBody string
	Outtasync    bool
	Err          error
}

func CheckStackSyncStatus added in v0.3.0

func CheckStackSyncStatus(awsConfig AwsConfig, stack Stack) StackSyncResult

type TemplateFetchedMsg added in v0.3.0

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