cmds

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const TerminationPolicyPause kubedbv1alpha2.TerminationPolicy = "Pause"

Variables

This section is empty.

Functions

func Convert_kubedb_v1alpha1_To_v1alpha2

func Convert_kubedb_v1alpha1_To_v1alpha2(item unstructured.Unstructured, catalogmap map[KindVersion]interface{}, topology *core_util.Topology) (map[string]interface{}, error)

func LoadCatalog

func LoadCatalog(client cs.Interface, local bool) (map[KindVersion]interface{}, error)

func NewCmdCalculate

func NewCmdCalculate(clientGetter genericclioptions.RESTClientGetter) *cobra.Command

func NewCmdCheckDeprecated

func NewCmdCheckDeprecated(clientGetter genericclioptions.RESTClientGetter) *cobra.Command

func NewCmdCompletion

func NewCmdCompletion() *cobra.Command

func NewCmdConvert

func NewCmdConvert(clientGetter genericclioptions.RESTClientGetter) *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

Types

type ClusterStats

type ClusterStats struct {
	ClusterID string          `json:"clusterID"`
	Context   string          `json:"context,omitempty"`
	Stats     []ResourceStats `json:"stats"`
	Total     Stats           `json:"total"`
}

type KindVersion

type KindVersion struct {
	Kind    string
	Version string
}

type ResourceStats

type ResourceStats struct {
	APIVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`
	Stats      `json:",inline"`
}

type Stats

type Stats struct {
	Count     int               `json:"count"`
	Resources core.ResourceList `json:"resources,omitempty"`
}

Jump to

Keyboard shortcuts

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