Documentation ¶
Index ¶
- func ConstructClusterResourceTree(defaultClient client.Client, dcOptions client.DescribeClusterOptions) (*ClusterResourceNode, *HTTPError)
- func ConstructMultiClusterTree(clusterClient cluster.Client, k8sConfigClient *api.Config) (*MultiClusterTreeNode, *HTTPError)
- type ClusterResourceNode
- type HTTPError
- type MultiClusterTreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructClusterResourceTree ¶
func ConstructClusterResourceTree(defaultClient client.Client, dcOptions client.DescribeClusterOptions) (*ClusterResourceNode, *HTTPError)
func ConstructMultiClusterTree ¶
func ConstructMultiClusterTree(clusterClient cluster.Client, k8sConfigClient *api.Config) (*MultiClusterTreeNode, *HTTPError)
ConstructMultiClusterTree returns a tree representing the workload cluster discovered in the management cluster.
Types ¶
type ClusterResourceNode ¶
type ClusterResourceNode struct { Name string `json:"name"` Kind string `json:"kind"` Group string `json:"group"` Version string `json:"version"` Provider string `json:"provider"` UID string `json:"uid"` IsVirtual bool `json:"isVirtual"` Collapsable bool `json:"collapsable"` Children []*ClusterResourceNode `json:"children"` }
type HTTPError ¶
func GetCustomResource ¶
func GetCustomResource(runtimeClient ctrlclient.Client, kind string, apiVersion string, namespace string, name string) (*unstructured.Unstructured, *HTTPError)
func NewInternalError ¶
type MultiClusterTreeNode ¶
Click to show internal directories.
Click to hide internal directories.