info

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdInfo

func NewCmdInfo(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdInfo returns a cobra command for get specified nebula cluster information

Types

type NebulaClusterInfo

type NebulaClusterInfo struct {
	Name              string
	Namespace         string
	CreationTimestamp time.Time
	Components        []NebulaComponentInfo
	Service           NebulaServiceInfo
}

func NewNebulaClusterInfo

func NewNebulaClusterInfo(clusterName, namespace string, runtimeCli client.Client) (*NebulaClusterInfo, error)

func (*NebulaClusterInfo) Render

func (i *NebulaClusterInfo) Render() (string, error)

type NebulaComponentInfo

type NebulaComponentInfo struct {
	Type          string
	Phase         string
	Replicas      int32
	ReadyReplicas int32
	CPU           resource.Quantity
	Memory        resource.Quantity
	Storage       resource.Quantity
	Image         string
}

type NebulaServiceEndpoints

type NebulaServiceEndpoints struct {
	Desc      string
	Endpoints []string
}

type NebulaServiceInfo

type NebulaServiceInfo struct {
	Type      corev1.ServiceType
	Port      int32
	Endpoints []*NebulaServiceEndpoints
}

type Options

type Options struct {
	Namespace         string
	NebulaClusterName string

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

Options is a struct to support info command

func NewOptions

func NewOptions(streams genericclioptions.IOStreams) *Options

NewOptions returns initialized Options

func (*Options) Complete

func (o *Options) Complete(f cmdutil.Factory, args []string) error

Complete completes all the required options

func (*Options) Run

func (o *Options) Run() error

Run executes info command

func (*Options) Validate

func (o *Options) Validate(cmd *cobra.Command) error

Validate validates the provided options

Jump to

Keyboard shortcuts

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