Documentation ¶
Index ¶
- func BuildMetricsFile(conf []MetricsFileConfig) ([]*metrics.FileWriter, error)
- func BuildMetricsStdout(conf MetricsStdoutConfig) (*metrics.StdoutWriter, error)
- func BuildNode(conf NodeConfig, startClock string) (*v1.Node, error)
- type Config
- type MetricsFileConfig
- type MetricsStdoutConfig
- type NodeConfig
- type NodeStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMetricsFile ¶
func BuildMetricsFile(conf []MetricsFileConfig) ([]*metrics.FileWriter, error)
BuildMetricsFile builds metrics.FileWriter with the given MetricsFileConfig. Returns error if the config is invalid or failed to create a FileWriter.
func BuildMetricsStdout ¶
func BuildMetricsStdout(conf MetricsStdoutConfig) (*metrics.StdoutWriter, error)
BuildMetricsStdout builds a metrics.StdoutWriter with the given MetricsStdoutConfig. Returns error if failed to parse.
Types ¶
type Config ¶
type Config struct { LogLevel string Tick int StartClock string MetricsTick int MetricsFile []MetricsFileConfig MetricsStdout MetricsStdoutConfig Cluster []NodeConfig }
Config represents a user-specified simulator config.
type MetricsFileConfig ¶
type MetricsStdoutConfig ¶
type MetricsStdoutConfig struct {
Formatter string
}
type NodeConfig ¶
type NodeConfig struct { Metadata metav1.ObjectMeta Spec v1.NodeSpec Status NodeStatus }
type NodeStatus ¶
type NodeStatus struct {
Allocatable map[v1.ResourceName]string
}
Click to show internal directories.
Click to hide internal directories.