modeling

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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