package service import ( "gcy_hpc_server/internal/slurm" ) // NewSlurmClient creates a Slurm SDK client with JWT authentication. // It reads the JWT key from the given keyPath and signs tokens automatically. func NewSlurmClient(apiURL, userName, jwtKeyPath string) (*slurm.Client, error) { return slurm.NewClientWithOpts( apiURL, slurm.WithUsername(userName), slurm.WithJWTKey(jwtKeyPath), ) }