Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClusterNotFound = stderr.New("can not find cluster")
)
Functions ¶
func Init ¶
func Init(clusterMg controls.ClusterManager)
Types ¶
type DeltaResources ¶
type GRPCCluster ¶
type GRPCCluster struct {
// contains filtered or unexported fields
}
func (*GRPCCluster) Close ¶
func (g *GRPCCluster) Close() error
func (*GRPCCluster) GetConnection ¶
func (g *GRPCCluster) GetConnection() (conn *grpc.ClientConn, err error)
func (*GRPCCluster) IsAlive ¶
func (g *GRPCCluster) IsAlive() bool
type GRPCClusterManager ¶
type GRPCClusterManager struct {
// contains filtered or unexported fields
}
func (*GRPCClusterManager) Close ¶
func (g *GRPCClusterManager) Close() (err error)
func (*GRPCClusterManager) GetGrpcCluster ¶
func (g *GRPCClusterManager) GetGrpcCluster(name string) (*GRPCCluster, error)
GetGrpcCluster get the cluster or create it first time.
type GrpcApiClient ¶
type GrpcApiClient struct {
// contains filtered or unexported fields
}
func CreateGrpcApiClient ¶
func CreateGrpcApiClient(config *model.ApiConfigSource, node *model.Node, exitCh chan struct{}, typeNames ...ResourceTypeName) *GrpcApiClient
CreateGrpcApiClient create Grpc type ApiClient
func (*GrpcApiClient) Delta ¶
func (g *GrpcApiClient) Delta() (chan *DeltaResources, error)
type PixiuDynamicConfigModel ¶
type ProtoAny ¶
type ProtoAny struct {
// contains filtered or unexported fields
}
func NewProtoAny ¶
func NewProtoAny(typeConfig *v3.TypedExtensionConfig) *ProtoAny
func (*ProtoAny) To ¶
func (p *ProtoAny) To(configModel PixiuDynamicConfigModel) error
type ResourceTypeName ¶
type ResourceTypeName = string
Click to show internal directories.
Click to hide internal directories.