cmd

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 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) 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) OptimizeManagedOfferingsAcrossRegions added in v2.3.0

func (k *KsctlCommand) OptimizeManagedOfferingsAcrossRegions(
	meta *controller.Metadata,
	allAvailRegions []provider.RegionOutput,
	cp provider.ManagedClusterOutput,
	wp provider.InstanceRegionOutput,
) []RecommendationManagedCost

func (*KsctlCommand) OptimizeSelfManagedInstanceTypesAcrossRegions added in v2.3.0

OptimizeSelfManagedInstanceTypesAcrossRegions it returns a sorted list of regions based on the total cost in ascending order across all the regions

It is a core function that is used to optimize the cost of the self-managed cluster instanceType across all the regions (Cost Optimization)

func (*KsctlCommand) PrintRecommendationManagedCost added in v2.3.0

func (k *KsctlCommand) PrintRecommendationManagedCost(
	costs []RecommendationManagedCost,
	noOfWP int,
	managedOfferingCP string,
	instanceTypeWP string,
)

func (*KsctlCommand) PrintRecommendationSelfManagedCost added in v2.3.0

func (k *KsctlCommand) PrintRecommendationSelfManagedCost(
	costs []RecommendationSelfManagedCost,
	noOfCP int,
	noOfWP int,
	noOfDS int,
	instanceTypeCP string,
	instanceTypeWP string,
	instanceTypeDS string,
	instanceTypeLB string,
)

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

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

type RecommendationSelfManagedCost added in v2.3.0

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

Jump to

Keyboard shortcuts

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