ui

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorFetchingVersion = "error"
	SystemNotFound       = "not found"
)
View Source
const (
	HTMLTemplText = `` /* 1582-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func RenderUI

func RenderUI(envSequence []string, systems []System, outFormat OutFormat, htmlTemplate string)

func RightPadTrim

func RightPadTrim(s string, length int) string

func Trim

func Trim(s string, length int) string

Types

type AWSConfig

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

type AWSConfigSourceType added in v1.0.0

type AWSConfigSourceType uint
const (
	DefaultCfgType AWSConfigSourceType = iota
	SharedCfgProfileType
	AssumeRoleCfgType
)

type HTMLData added in v0.3.0

type HTMLData struct {
	Title     string
	Columns   []string
	Rows      []HTMLDataRow
	Errors    *[]error
	Timestamp string
}

type HTMLDataRow added in v0.3.0

type HTMLDataRow struct {
	Data   []string
	InSync bool
}

type OutFormat added in v0.3.0

type OutFormat uint
const (
	UnspecifiedFmt OutFormat = iota
	PlainTextFmt
	HTMLFmt
)

type System

type System struct {
	Key                 string
	Env                 string
	AWSConfigSourceType AWSConfigSourceType
	AWSConfigSource     string
	AWSRegion           string
	IAMRoleToAssume     string
	ClusterName         string
	ServiceName         string
	ContainerName       string
}

Jump to

Keyboard shortcuts

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