Documentation
¶
Index ¶
- type NomadClient
- func (client *NomadClient) CreateCSIVolume(volume *model.CSIVolume) error
- func (client *NomadClient) CreateJob(jobJSON *map[string]interface{}) (map[string]interface{}, error)
- func (client *NomadClient) CreateSpaceJob(user *model.User, template *model.Template, space *model.Space, ...) error
- func (client *NomadClient) CreateSpaceVolumes(user *model.User, template *model.Template, space *model.Space, ...) error
- func (client *NomadClient) CreateVolume(vol *model.Volume, variables *map[string]interface{}) error
- func (client *NomadClient) DeleteCSIVolume(id string, namespace string) error
- func (client *NomadClient) DeleteJob(jobId string, namespace string) (map[string]interface{}, error)
- func (client *NomadClient) DeleteSpaceJob(space *model.Space) error
- func (client *NomadClient) DeleteSpaceVolumes(space *model.Space) error
- func (client *NomadClient) DeleteVolume(vol *model.Volume, variables *map[string]interface{}) error
- func (client *NomadClient) MonitorJobState(space *model.Space)
- func (client *NomadClient) ParseJobHCL(hcl string) (map[string]interface{}, error)
- func (client *NomadClient) ReadJob(jobId string, namespace string) (int, map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NomadClient ¶
type NomadClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient() *NomadClient
func (*NomadClient) CreateCSIVolume ¶
func (client *NomadClient) CreateCSIVolume(volume *model.CSIVolume) error
func (*NomadClient) CreateJob ¶
func (client *NomadClient) CreateJob(jobJSON *map[string]interface{}) (map[string]interface{}, error)
func (*NomadClient) CreateSpaceJob ¶
func (*NomadClient) CreateSpaceVolumes ¶
func (*NomadClient) CreateVolume ¶
func (client *NomadClient) CreateVolume(vol *model.Volume, variables *map[string]interface{}) error
func (*NomadClient) DeleteCSIVolume ¶
func (client *NomadClient) DeleteCSIVolume(id string, namespace string) error
func (*NomadClient) DeleteJob ¶
func (client *NomadClient) DeleteJob(jobId string, namespace string) (map[string]interface{}, error)
func (*NomadClient) DeleteSpaceJob ¶
func (client *NomadClient) DeleteSpaceJob(space *model.Space) error
func (*NomadClient) DeleteSpaceVolumes ¶
func (client *NomadClient) DeleteSpaceVolumes(space *model.Space) error
func (*NomadClient) DeleteVolume ¶
func (client *NomadClient) DeleteVolume(vol *model.Volume, variables *map[string]interface{}) error
func (*NomadClient) MonitorJobState ¶
func (client *NomadClient) MonitorJobState(space *model.Space)
func (*NomadClient) ParseJobHCL ¶
func (client *NomadClient) ParseJobHCL(hcl string) (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.