Documentation ¶
Index ¶
- Constants
- func New(client pluginsinterface.PluginClientset, arguments []string) pluginsinterface.PluginInterface
- type Plugin
- func (mp *Plugin) GetMasterName() string
- func (mp *Plugin) GetMpiArguments() []string
- func (mp *Plugin) GetWorkerName() string
- func (mp *Plugin) Name() string
- func (mp *Plugin) OnJobAdd(job *batch.Job) error
- func (mp *Plugin) OnJobDelete(job *batch.Job) error
- func (mp *Plugin) OnJobUpdate(job *batch.Job) error
- func (mp *Plugin) OnPodCreate(pod *v1.Pod, job *batch.Job) error
Constants ¶
View Source
const ( // MPIPluginName is the name of the plugin MPIPluginName = "mpi" // DefaultPort is the default port for ssh DefaultPort = 22 // DefaultMaster is the default task name of master host DefaultMaster = "master" // DefaultWorker is the default task name of worker host DefaultWorker = "worker" // MPIHost is the environment variable key of MPI host MPIHost = "MPI_HOST" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(client pluginsinterface.PluginClientset, arguments []string) pluginsinterface.PluginInterface
New creates mpi plugin.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func NewInstance ¶
func (*Plugin) GetMasterName ¶
func (*Plugin) GetMpiArguments ¶
func (*Plugin) GetWorkerName ¶
Click to show internal directories.
Click to hide internal directories.