cluster

package
v0.0.0-...-6bb069b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2022 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCluster

func CreateCluster(cluster *models.Cluster) (int64, error)

func DeleteCluster

func DeleteCluster(clusterId int64) (bool, error)

func Expand

func Expand(cluster *models.Cluster, num int, correlationId string) ([]string, error)

func GetCluster

func GetCluster(clusterId int64) (*models.Cluster, error)

func GetCstTime

func GetCstTime(converTime time.Time) string

func GetLatestDetail

func GetLatestDetail() (map[string]int, error)

func GetLatestInstanceDetail

func GetLatestInstanceDetail() ([]models.InstanceDetail, error)

func GetPastInstanceDetail

func GetPastInstanceDetail(specificTime string) (*models.InstanceDetail, error)

func GetRecentDetail

func GetRecentDetail(beginTime, endTime time.Time) ([]models.Detail, error)

func GetRecentInstanceDetail

func GetRecentInstanceDetail(hour int) ([]models.InstanceDetail, error)

func InitInstanceDetailCron

func InitInstanceDetailCron()

func ListClusters

func ListClusters() ([]models.Cluster, error)

func ListProviders

func ListProviders() ([]string, error)

func UpdateInstanceDetail

func UpdateInstanceDetail() error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL