Documentation
¶
Overview ¶
Package controller serves the Slurm cluster, partition and cluster-config routes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterPartitionController ¶
type ClusterPartitionController struct {
// contains filtered or unexported fields
}
ClusterPartitionController serves /api/v1/slurm-clusters/{slurmClusterId}/partitions.
func NewClusterPartitionController ¶
func NewClusterPartitionController(svc *service.ClusterPartitionService) *ClusterPartitionController
NewClusterPartitionController returns a handler delegating to svc.
func (*ClusterPartitionController) Register ¶
func (h *ClusterPartitionController) Register(mux *http.ServeMux)
Register mounts the partition routes as a sub-resource of a cluster.
type DiscoveryController ¶
type DiscoveryController struct {
// contains filtered or unexported fields
}
DiscoveryController serves the routes that read a cluster's partitions and a login's allocations off the cluster itself.
func NewDiscoveryController ¶
func NewDiscoveryController(svc *service.ClusterDiscoveryService) *DiscoveryController
NewDiscoveryController returns a handler delegating to svc.
func (*DiscoveryController) Register ¶
func (h *DiscoveryController) Register(mux *http.ServeMux)
Register mounts the discovery routes. Partition discovery sits beside the cluster routes rather than under one cluster, because it runs before the cluster is registered; allocation discovery sits under the config whose login it reads.
type SlurmClusterConfigController ¶
type SlurmClusterConfigController struct {
// contains filtered or unexported fields
}
SlurmClusterConfigController serves /api/v1/slurm-cluster-configs.
func NewSlurmClusterConfigController ¶
func NewSlurmClusterConfigController(svc *service.SlurmClusterConfigService) *SlurmClusterConfigController
NewSlurmClusterConfigController returns a handler delegating to svc.
func (*SlurmClusterConfigController) Register ¶
func (h *SlurmClusterConfigController) Register(mux *http.ServeMux)
Register mounts the cluster config routes.
The literal /me and /shared-with-me patterns take precedence over /{slurmClusterConfigId}, so neither is ever mistaken for a config id.
type SlurmClusterController ¶
type SlurmClusterController struct {
// contains filtered or unexported fields
}
SlurmClusterController serves /api/v1/slurm-clusters.
func NewSlurmClusterController ¶
func NewSlurmClusterController(svc *service.SlurmClusterService) *SlurmClusterController
NewSlurmClusterController returns a handler delegating to svc.
func (*SlurmClusterController) Register ¶
func (h *SlurmClusterController) Register(mux *http.ServeMux)
Register mounts the cluster routes.