cmd

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RenewableLowThreshold             = 10.0
	RenewableMediumThreshold          = 40.0
	LowCarbonLowThreshold             = 10.0
	LowCarbonMediumThreshold          = 40.0
	DirectCo2LowThreshold             = 200.0
	DirectCo2MediumThreshold          = 400.0
	LCACarbonIntensityMediumThreshold = 100.0
	LCACarbonIntensityHighThreshold   = 200.0
)

Variables

This section is empty.

Functions

func HandleTableOutputListAll

func HandleTableOutputListAll(ctx context.Context, l logger.Logger, data []provider.ClusterData)

func K9sAccess

func K9sAccess(log logger.Logger)

Types

type CliInstances added in v2.4.0

type CliInstances provider.InstancesRegionOutput

func (CliInstances) S added in v2.4.0

func (I CliInstances) S() map[string]string

type CliRecommendation added in v2.4.0

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

type CliRegions added in v2.4.0

type CliRegions provider.RegionsOutput

func (CliRegions) S added in v2.4.0

func (r CliRegions) S() map[string]string

type KsctlCommand

type KsctlCommand struct {
	Ctx    context.Context
	CliLog logger.Logger

	KsctlConfig *config.Config
	// contains filtered or unexported fields
}

func New

func New() (*KsctlCommand, error)

func (*KsctlCommand) Addons

func (k *KsctlCommand) Addons() *cobra.Command

func (*KsctlCommand) Cluster

func (k *KsctlCommand) Cluster() *cobra.Command

func (*KsctlCommand) CommandMapping

func (k *KsctlCommand) CommandMapping() error

func (*KsctlCommand) Configure

func (k *KsctlCommand) Configure() *cobra.Command

func (*KsctlCommand) ConfigureCloud

func (k *KsctlCommand) ConfigureCloud() *cobra.Command

func (*KsctlCommand) ConfigureStorage

func (k *KsctlCommand) ConfigureStorage() *cobra.Command

func (*KsctlCommand) ConfigureTelemetry added in v2.1.0

func (k *KsctlCommand) ConfigureTelemetry() *cobra.Command

func (*KsctlCommand) Connect

func (k *KsctlCommand) Connect() *cobra.Command

func (*KsctlCommand) CostOptimizeAcrossRegion added in v2.4.0

func (k *KsctlCommand) CostOptimizeAcrossRegion(inp chan CliRecommendation, meta *controller.Metadata)

func (*KsctlCommand) Create

func (k *KsctlCommand) Create() *cobra.Command

func (*KsctlCommand) Delete

func (k *KsctlCommand) Delete() *cobra.Command

func (*KsctlCommand) DisableAddon

func (k *KsctlCommand) DisableAddon() *cobra.Command

func (*KsctlCommand) EnableAddon

func (k *KsctlCommand) EnableAddon() *cobra.Command

func (*KsctlCommand) Execute

func (k *KsctlCommand) Execute() error

func (*KsctlCommand) ForDocs

func (k *KsctlCommand) ForDocs() (*cobra.Command, error)

func (*KsctlCommand) Get

func (k *KsctlCommand) Get() *cobra.Command

func (*KsctlCommand) List

func (k *KsctlCommand) List() *cobra.Command

func (*KsctlCommand) NewRootCmd

func (k *KsctlCommand) NewRootCmd() *cobra.Command

func (*KsctlCommand) ScaleDown

func (k *KsctlCommand) ScaleDown() *cobra.Command

func (*KsctlCommand) ScaleUp

func (k *KsctlCommand) ScaleUp() *cobra.Command

func (*KsctlCommand) SelfUpdate

func (k *KsctlCommand) SelfUpdate() *cobra.Command

func (*KsctlCommand) Version

func (k *KsctlCommand) Version() *cobra.Command

type Model added in v2.4.1

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

func (Model) Init added in v2.4.1

func (m Model) Init() tea.Cmd

func (Model) Update added in v2.4.1

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

func (Model) View added in v2.4.1

func (m Model) View() string

type RegionRecommendation added in v2.4.1

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

func NewRegionRecommendation added in v2.4.1

func NewRegionRecommendation(
	clusterType consts.KsctlClusterType,
	recommendI *optimizer.RecommendationAcrossRegions) *RegionRecommendation

func (*RegionRecommendation) Run added in v2.4.1

func (t *RegionRecommendation) Run() (string, error)

Jump to

Keyboard shortcuts

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