Documentation ¶
Index ¶
- Constants
- Variables
- func BuildClientConfig(config *meshconfig.MeshManagerConfig) (*restclient.Config, error)
- type Cacher
- func (c *Cacher) Clusters(meshName string) []string
- func (c *Cacher) GetMainClusterByMemberCluster(clusterName string) []string
- func (c *Cacher) GetMeshByCluster(clusterName string) string
- func (c *Cacher) MainClusters(meshName string) []string
- func (c *Cacher) MainClustersMap(meshName string) map[string]struct{}
- func (c *Cacher) MemberClusters(meshName string) []string
- func (c *Cacher) ReloadMeshes()
- type Client
Constants ¶
View Source
const ( ClusterRoleMaster = "master" ClusterRoleRemote = "remote" )
View Source
const (
TcmAPIPrefix = "/api/meshes"
)
Variables ¶
View Source
var (
TcmAuthHeader = tcmHeader{
Key: "X-Remote-TenantID",
Value: "default",
}
)
Functions ¶
func BuildClientConfig ¶
func BuildClientConfig(config *meshconfig.MeshManagerConfig) (*restclient.Config, error)
Types ¶
type Cacher ¶
type Cacher struct {
// contains filtered or unexported fields
}
func (*Cacher) GetMainClusterByMemberCluster ¶
func (*Cacher) GetMeshByCluster ¶
func (*Cacher) MainClusters ¶
func (*Cacher) MainClustersMap ¶
func (*Cacher) MemberClusters ¶
func (*Cacher) ReloadMeshes ¶
func (c *Cacher) ReloadMeshes()
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewForConfig ¶
func NewForConfig(c *restclient.Config) (*Client, error)
func (*Client) RESTClient ¶
func (c *Client) RESTClient() simplerest.Interface
func (*Client) ReloadMeshes ¶
func (c *Client) ReloadMeshes()
Click to show internal directories.
Click to hide internal directories.