cluster

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 21 Imported by: 5

Documentation

Overview

Copyright © 2019 Portworx

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterAddCommand added in v0.25.0

func ClusterAddCommand(cmd *cobra.Command)

func ClusterListAddCommand added in v0.31.1

func ClusterListAddCommand(cmd *cobra.Command)

func NewClustersGetFormatter added in v0.31.1

func NewClustersGetFormatter(cli *cliops.CliInputs, args []string) *clustersGetFormatter

Types

type ClusterInfo added in v0.31.1

type ClusterInfo struct {
	Kubernetes *KubernetesClusterInfo `json:"kubernetes" yaml:"kubernetes"`
	Portworx   *PortworxClusterInfo   `json:"portworx" yaml:"portworx"`
}

func NewClusterInfo added in v0.31.1

func NewClusterInfo(context, clusterName string) *ClusterInfo

type KubernetesClusterInfo added in v0.31.1

type KubernetesClusterInfo struct {
	Context string    `json:"context" yaml:"context"`
	Cluster string    `json:"cluster" yaml:"cluster"`
	Nodes   []v1.Node `json:"nodes" yaml:"nodes"`
}

type PortworxClusterInfo added in v0.31.1

type PortworxClusterInfo struct {
	Cluster *api.StorageCluster `json:"cluster" yaml:"cluster"`
	Nodes   []*api.StorageNode  `json:"nodes" yaml:"nodes"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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