Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterResourceNode ¶
type ClusterResourceNode struct {
// contains filtered or unexported fields
}
ClusterResourceNode represents the each raw resource entity without modeling.
func NewClusterResourceNode ¶
func NewClusterResourceNode(resourceList corev1.ResourceList) ClusterResourceNode
NewClusterResourceNode create new cluster resource node
type ResourceSummary ¶
type ResourceSummary struct { RMs []resourceModels // contains filtered or unexported fields }
ResourceSummary records the list of resourceModels
func InitSummary ¶
func InitSummary(resourceModel []clusterapis.ResourceModel) (ResourceSummary, error)
InitSummary is the init function of modeling data structure
func (*ResourceSummary) AddToResourceSummary ¶
func (rs *ResourceSummary) AddToResourceSummary(crn ClusterResourceNode)
AddToResourceSummary add resource node into modeling summary
func (*ResourceSummary) GetNodeNumFromModel ¶
func (rs *ResourceSummary) GetNodeNumFromModel(model *resourceModels) int
GetNodeNumFromModel is for getting node number from the modeling
Click to show internal directories.
Click to hide internal directories.