Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultClusterID = "default"
)
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Uuid string Name string Resume string Cluster string Creator string Updater string Status int CreateTime time.Time UpdateTime time.Time }
func FromEntity ¶
type IClusterService ¶
type IClusterService interface { CountByPartition(ctx context.Context) (map[string]int, error) List(ctx context.Context, clusterIds ...string) ([]*Cluster, error) ListByClusters(ctx context.Context, ids ...string) ([]*Cluster, error) Search(ctx context.Context, keyword string, clusterId ...string) ([]*Cluster, error) Create(ctx context.Context, name string, resume string, address string) (*Cluster, error) UpdateInfo(ctx context.Context, id string, name *string, resume *string) (*Cluster, error) UpdateAddress(ctx context.Context, id string, address string) ([]*Node, error) Nodes(ctx context.Context, clusterIds ...string) ([]*Node, error) GatewayClient(ctx context.Context, id string) (gateway.IClientDriver, error) Get(ctx context.Context, id string) (*Cluster, error) Delete(ctx context.Context, id string) error }
Click to show internal directories.
Click to hide internal directories.