controller

package
v1.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

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