Documentation
¶
Index ¶
Constants ¶
View Source
const (
NodeExternalIP corev1.NodeAddressType = "ExternalIP"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cluster ¶
func (*Cluster) GetClusterInfo ¶
func (c *Cluster) GetClusterInfo(ctx context.Context) (*ClusterInfo, error)
type ClusterInfo ¶
type ClusterInfo struct { Name string `json:"clusterName,omitempty"` ClusterProperty ClusterProperty `json:"clusterProperty,omitempty"` }
type ClusterInterface ¶
type ClusterInterface interface { GetClusterInfo(ctx context.Context) (*ClusterInfo, error) GetNsmExcludedPrefix(ctx context.Context, configmap, namespace string) ([]string, error) }
func NewCluster ¶
func NewCluster(client client.Client, clusterName string) ClusterInterface
NewCluster returns ClusterInterface
type ClusterProperty ¶
type ClusterProperty struct { //GeoLocation contains information regarding Geographical Location of the Cluster GeoLocation GeoLocation `json:"geoLocation,omitempty"` }
type GeoLocation ¶
type GeoLocation struct { //CloudProvider is the cloud service provider CloudProvider string `json:"cloudProvider,omitempty"` //CloudRegion is the region of the cloud CloudRegion string `json:"cloudRegion,omitempty"` }
GeoLocation defines the field of ClusterSpec
Click to show internal directories.
Click to hide internal directories.