Documentation
¶
Index ¶
- func DisplaySession()
- func GetActiveClusterName() string
- func GetCurrentSession() *session
- func InitAPI() error
- func ListClusters()
- func Login()
- func LoginWithParams(brokers []string, version string, clusterName string) (bool, string)
- func Logout(clusterName string) bool
- func SelectCluster(clusterName string)
- type ClusterConnection
- type Session
- type SessionData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplaySession ¶
func DisplaySession()
func GetActiveClusterName ¶
func GetActiveClusterName() string
func GetCurrentSession ¶
func GetCurrentSession() *session
func ListClusters ¶
func ListClusters()
func LoginWithParams ¶
func SelectCluster ¶
func SelectCluster(clusterName string)
Types ¶
type ClusterConnection ¶
type ClusterConnection struct {
Name string `json:"name"`
Brokers []string `json:"brokers"`
Version string `json:"version"`
IsAuthenticated bool `json:"isAuthenticated"`
}
func GetClusterByName ¶
func GetClusterByName(clusterName string) *ClusterConnection
func GetClusterConnections ¶
func GetClusterConnections() []ClusterConnection
type SessionData ¶
type SessionData struct {
Clusters []ClusterConnection `json:"clusters"`
ActiveCluster string `json:"activeCluster"`
}
Click to show internal directories.
Click to hide internal directories.