Versions in this module Expand all Collapse all v1 v1.2.0 Jul 1, 2026 Changes in this version + type ClientInterface interface + func NewSlurmClient(server, token string, httpServer *http.Client) (ClientInterface, error) + type ControllerPingInfoInterface interface + GetControllerPing func(ctx context.Context, host string) (*types.V0045ControllerPing, error) + ListControllerPing func(ctx context.Context) (*types.V0045ControllerPingList, error) + type JobInfoInterface interface + CreateJobInfo func(ctx context.Context, req any) (*int32, error) + DeleteJobInfo func(ctx context.Context, jobId string) error + GetJobInfo func(ctx context.Context, jobId string) (*types.V0045JobInfo, error) + ListJobInfo func(ctx context.Context) (*types.V0045JobInfoList, error) + UpdateJobInfo func(ctx context.Context, jobId string, req any) error + type NodeInterface interface + CreateNewNode func(ctx context.Context, req any) (*string, error) + DeleteNode func(ctx context.Context, nodeName string) error + GetNode func(ctx context.Context, nodeName string) (*types.V0045Node, error) + ListNodes func(ctx context.Context) (*types.V0045NodeList, error) + UpdateNode func(ctx context.Context, nodeName string, req any) error + type NodeResourceLayoutInterface interface + GetNodeResourceLayout func(ctx context.Context, jobId string) (*types.V0045NodeResourceLayout, error) + type PartitionInterface interface + GetPartitionInfo func(ctx context.Context, name string) (*types.V0045PartitionInfo, error) + ListPartitionInfo func(ctx context.Context) (*types.V0045PartitionInfoList, error) + type ReconfigureInterface interface + GetReconfigure func(ctx context.Context) (*types.V0045Reconfigure, error) + ListReconfigure func(ctx context.Context) (*types.V0045ReconfigureList, error) + type ReservationInterface interface + CreateReservationInfo func(ctx context.Context, req any) (string, error) + DeleteReservationInfo func(ctx context.Context, name string) error + GetReservationInfo func(ctx context.Context, name string) (*types.V0045ReservationInfo, error) + ListReservationInfo func(ctx context.Context) (*types.V0045ReservationInfoList, error) + UpdateReservationInfo func(ctx context.Context, name string, req any) error + type SlurmClient struct + func (c *SlurmClient) CreateJobInfo(ctx context.Context, req any) (*int32, error) + func (c *SlurmClient) CreateNewNode(ctx context.Context, req any) (*string, error) + func (c *SlurmClient) CreateReservationInfo(ctx context.Context, req any) (string, error) + func (c *SlurmClient) DeleteJobInfo(ctx context.Context, jobId string) error + func (c *SlurmClient) DeleteNode(ctx context.Context, nodeName string) error + func (c *SlurmClient) DeleteReservationInfo(ctx context.Context, name string) error + func (c *SlurmClient) GetControllerPing(ctx context.Context, host string) (*types.V0045ControllerPing, error) + func (c *SlurmClient) GetJobInfo(ctx context.Context, jobId string) (*types.V0045JobInfo, error) + func (c *SlurmClient) GetNode(ctx context.Context, nodeName string) (*types.V0045Node, error) + func (c *SlurmClient) GetNodeResourceLayout(ctx context.Context, jobId string) (*types.V0045NodeResourceLayout, error) + func (c *SlurmClient) GetPartitionInfo(ctx context.Context, name string) (*types.V0045PartitionInfo, error) + func (c *SlurmClient) GetReconfigure(ctx context.Context) (*types.V0045Reconfigure, error) + func (c *SlurmClient) GetReservationInfo(ctx context.Context, name string) (*types.V0045ReservationInfo, error) + func (c *SlurmClient) GetStats(ctx context.Context) (*types.V0045Stats, error) + func (c *SlurmClient) ListControllerPing(ctx context.Context) (*types.V0045ControllerPingList, error) + func (c *SlurmClient) ListJobInfo(ctx context.Context) (*types.V0045JobInfoList, error) + func (c *SlurmClient) ListNodes(ctx context.Context) (*types.V0045NodeList, error) + func (c *SlurmClient) ListPartitionInfo(ctx context.Context) (*types.V0045PartitionInfoList, error) + func (c *SlurmClient) ListReconfigure(ctx context.Context) (*types.V0045ReconfigureList, error) + func (c *SlurmClient) ListReservationInfo(ctx context.Context) (*types.V0045ReservationInfoList, error) + func (c *SlurmClient) ListStats(ctx context.Context) (*types.V0045StatsList, error) + func (c *SlurmClient) UpdateJobInfo(ctx context.Context, jobId string, req any) error + func (c *SlurmClient) UpdateNode(ctx context.Context, nodeName string, req any) error + func (c *SlurmClient) UpdateReservationInfo(ctx context.Context, name string, req any) error + type StatsInterface interface + GetStats func(ctx context.Context) (*types.V0045Stats, error) + ListStats func(ctx context.Context) (*types.V0045StatsList, error) v1.2.0-rc1 Jun 24, 2026