Documentation ¶
Index ¶
- type KubeSim
- func NewKubeSim(conf *config.Config, queue queue.PodQueue, sched scheduler.Scheduler) (*KubeSim, error)
- func NewKubeSimFromConfigPath(confPath string, queue queue.PodQueue, sched scheduler.Scheduler) (*KubeSim, error)
- func NewKubeSimFromConfigPathOrDie(confPath string, queue queue.PodQueue, sched scheduler.Scheduler) *KubeSim
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeSim ¶
type KubeSim struct {
// contains filtered or unexported fields
}
KubeSim represents a simulated kubernetes cluster.
func NewKubeSim ¶
func NewKubeSim( conf *config.Config, queue queue.PodQueue, sched scheduler.Scheduler, ) (*KubeSim, error)
NewKubeSim creates a new KubeSim with the given config, queue, and scheduler. Returns error if the configuration failed.
func NewKubeSimFromConfigPath ¶
func NewKubeSimFromConfigPath( confPath string, queue queue.PodQueue, sched scheduler.Scheduler, ) (*KubeSim, error)
NewKubeSimFromConfigPath creates a new KubeSim with config from confPath (excluding file extension), queue, and scheduler. Returns error if the configuration failed.
func NewKubeSimFromConfigPathOrDie ¶
func NewKubeSimFromConfigPathOrDie( confPath string, queue queue.PodQueue, sched scheduler.Scheduler, ) *KubeSim
NewKubeSimFromConfigPathOrDie creates a new KubeSim with config from confPath (excluding file extension), queue, and scheduler. If an error occurs during the initialization, it panics and stops the execution.
func (*KubeSim) AddSubmitter ¶
AddSubmitter adds the new submitter to this KubeSim.
Click to show internal directories.
Click to hide internal directories.