Documentation
¶
Index ¶
- type ClientInterface
- type ControllerPingInfoInterface
- type JobInfoInterface
- type NodeInterface
- type NodeResourceLayoutInterface
- type PartitionInterface
- type ReconfigureInterface
- type ReservationInterface
- type SlurmClient
- 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.V0044ControllerPing, error)
- func (c *SlurmClient) GetJobInfo(ctx context.Context, jobId string) (*types.V0044JobInfo, error)
- func (c *SlurmClient) GetNode(ctx context.Context, nodeName string) (*types.V0044Node, error)
- func (c *SlurmClient) GetNodeResourceLayout(ctx context.Context, jobId string) (*types.V0044NodeResourceLayout, error)
- func (c *SlurmClient) GetPartitionInfo(ctx context.Context, name string) (*types.V0044PartitionInfo, error)
- func (c *SlurmClient) GetReconfigure(ctx context.Context) (*types.V0044Reconfigure, error)
- func (c *SlurmClient) GetReservationInfo(ctx context.Context, name string) (*types.V0044ReservationInfo, error)
- func (c *SlurmClient) GetStats(ctx context.Context) (*types.V0044Stats, error)
- func (c *SlurmClient) ListControllerPing(ctx context.Context) (*types.V0044ControllerPingList, error)
- func (c *SlurmClient) ListJobInfo(ctx context.Context) (*types.V0044JobInfoList, error)
- func (c *SlurmClient) ListNodes(ctx context.Context) (*types.V0044NodeList, error)
- func (c *SlurmClient) ListPartitionInfo(ctx context.Context) (*types.V0044PartitionInfoList, error)
- func (c *SlurmClient) ListReconfigure(ctx context.Context) (*types.V0044ReconfigureList, error)
- func (c *SlurmClient) ListReservationInfo(ctx context.Context) (*types.V0044ReservationInfoList, error)
- func (c *SlurmClient) ListStats(ctx context.Context) (*types.V0044StatsList, 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInterface ¶
type ClientInterface interface {
api.ClientWithResponsesInterface
ControllerPingInfoInterface
JobInfoInterface
NodeInterface
NodeResourceLayoutInterface
PartitionInterface
ReconfigureInterface
ReservationInterface
StatsInterface
}
func NewSlurmClient ¶
func NewSlurmClient(server, token string, httpServer *http.Client) (ClientInterface, error)
type JobInfoInterface ¶
type JobInfoInterface interface {
CreateJobInfo(ctx context.Context, req any) (*int32, error)
DeleteJobInfo(ctx context.Context, jobId string) error
UpdateJobInfo(ctx context.Context, jobId string, req any) error
GetJobInfo(ctx context.Context, jobId string) (*types.V0044JobInfo, error)
ListJobInfo(ctx context.Context) (*types.V0044JobInfoList, error)
}
type NodeInterface ¶
type NodeInterface interface {
CreateNewNode(ctx context.Context, req any) (*string, error)
DeleteNode(ctx context.Context, nodeName string) error
UpdateNode(ctx context.Context, nodeName string, req any) error
GetNode(ctx context.Context, nodeName string) (*types.V0044Node, error)
ListNodes(ctx context.Context) (*types.V0044NodeList, error)
}
type PartitionInterface ¶
type ReconfigureInterface ¶
type ReconfigureInterface interface {
GetReconfigure(ctx context.Context) (*types.V0044Reconfigure, error)
ListReconfigure(ctx context.Context) (*types.V0044ReconfigureList, error)
}
type ReservationInterface ¶
type ReservationInterface interface {
CreateReservationInfo(ctx context.Context, req any) (string, error)
UpdateReservationInfo(ctx context.Context, name string, req any) error
DeleteReservationInfo(ctx context.Context, name string) error
GetReservationInfo(ctx context.Context, name string) (*types.V0044ReservationInfo, error)
ListReservationInfo(ctx context.Context) (*types.V0044ReservationInfoList, error)
}
type SlurmClient ¶
type SlurmClient struct {
api.ClientWithResponsesInterface
}
func (*SlurmClient) CreateJobInfo ¶
CreateJobInfo implements ClientInterface
func (*SlurmClient) CreateNewNode ¶
CreateNewNode implements ClientInterface
func (*SlurmClient) CreateReservationInfo ¶
CreateReservationInfo implements ClientInterface
func (*SlurmClient) DeleteJobInfo ¶
func (c *SlurmClient) DeleteJobInfo(ctx context.Context, jobId string) error
DeleteJobInfo implements ClientInterface
func (*SlurmClient) DeleteNode ¶
func (c *SlurmClient) DeleteNode(ctx context.Context, nodeName string) error
DeleteNode implements ClientInterface
func (*SlurmClient) DeleteReservationInfo ¶
func (c *SlurmClient) DeleteReservationInfo(ctx context.Context, name string) error
DeleteReservationInfo implements ClientInterface
func (*SlurmClient) GetControllerPing ¶
func (c *SlurmClient) GetControllerPing(ctx context.Context, host string) (*types.V0044ControllerPing, error)
GetControllerPing implements ClientInterface
func (*SlurmClient) GetJobInfo ¶
func (c *SlurmClient) GetJobInfo(ctx context.Context, jobId string) (*types.V0044JobInfo, error)
GetJobInfo implements ClientInterface
func (*SlurmClient) GetNodeResourceLayout ¶
func (c *SlurmClient) GetNodeResourceLayout(ctx context.Context, jobId string) (*types.V0044NodeResourceLayout, error)
GetNodeResourceLayout implements ClientInterface
func (*SlurmClient) GetPartitionInfo ¶
func (c *SlurmClient) GetPartitionInfo(ctx context.Context, name string) (*types.V0044PartitionInfo, error)
GetPartitionInfo implements ClientInterface
func (*SlurmClient) GetReconfigure ¶
func (c *SlurmClient) GetReconfigure(ctx context.Context) (*types.V0044Reconfigure, error)
GetReconfigure implements ClientInterface
func (*SlurmClient) GetReservationInfo ¶
func (c *SlurmClient) GetReservationInfo(ctx context.Context, name string) (*types.V0044ReservationInfo, error)
GetReservationInfo implements ClientInterface
func (*SlurmClient) GetStats ¶
func (c *SlurmClient) GetStats(ctx context.Context) (*types.V0044Stats, error)
GetStats implements ClientInterface
func (*SlurmClient) ListControllerPing ¶
func (c *SlurmClient) ListControllerPing(ctx context.Context) (*types.V0044ControllerPingList, error)
ListControllerPing implements ClientInterface
func (*SlurmClient) ListJobInfo ¶
func (c *SlurmClient) ListJobInfo(ctx context.Context) (*types.V0044JobInfoList, error)
ListJobInfo implements ClientInterface
func (*SlurmClient) ListNodes ¶
func (c *SlurmClient) ListNodes(ctx context.Context) (*types.V0044NodeList, error)
ListNodes implements ClientInterface
func (*SlurmClient) ListPartitionInfo ¶
func (c *SlurmClient) ListPartitionInfo(ctx context.Context) (*types.V0044PartitionInfoList, error)
ListPartitionInfo implements ClientInterface
func (*SlurmClient) ListReconfigure ¶
func (c *SlurmClient) ListReconfigure(ctx context.Context) (*types.V0044ReconfigureList, error)
ListReconfigure implements ClientInterface
func (*SlurmClient) ListReservationInfo ¶
func (c *SlurmClient) ListReservationInfo(ctx context.Context) (*types.V0044ReservationInfoList, error)
ListReservationInfo implements ClientInterface
func (*SlurmClient) ListStats ¶
func (c *SlurmClient) ListStats(ctx context.Context) (*types.V0044StatsList, error)
ListStats implements ClientInterface
func (*SlurmClient) UpdateJobInfo ¶
UpdateJobInfo implements ClientInterface
func (*SlurmClient) UpdateNode ¶
UpdateNode implements ClientInterface
func (*SlurmClient) UpdateReservationInfo ¶
UpdateReservationInfo implements ClientInterface
type StatsInterface ¶
type StatsInterface interface {
GetStats(ctx context.Context) (*types.V0044Stats, error)
ListStats(ctx context.Context) (*types.V0044StatsList, error)
}