nomad

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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, error)

func (*NomadClient) CleanupSpaceArtifacts added in v0.25.0

func (client *NomadClient) CleanupSpaceArtifacts(space *model.Space) error

func (*NomadClient) CreateCSIVolume

func (client *NomadClient) CreateCSIVolume(volume *model.CSIVolume) error

func (*NomadClient) CreateHostVolume added in v0.19.0

func (client *NomadClient) CreateHostVolume(volume *model.CSIVolume) (string, error)

func (*NomadClient) CreateJob

func (client *NomadClient) CreateJob(jobJSON *map[string]interface{}) (map[string]interface{}, error)

func (*NomadClient) CreateSpaceJob

func (client *NomadClient) CreateSpaceJob(user *model.User, template *model.Template, space *model.Space, variables map[string]interface{}) error

func (*NomadClient) CreateSpaceVolumes

func (client *NomadClient) CreateSpaceVolumes(user *model.User, template *model.Template, space *model.Space, variables map[string]interface{}) error

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) DeleteHostVolume added in v0.19.0

func (client *NomadClient) DeleteHostVolume(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, onStopped func()) 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) GetIdHostVolume added in v0.19.0

func (client *NomadClient) GetIdHostVolume(name, namespace string) (string, error)

func (*NomadClient) ListJobs added in v0.25.0

func (client *NomadClient) ListJobs(ctx context.Context, namespace string) ([]map[string]interface{}, error)

func (*NomadClient) ListRunningSpaceRuntimeRefs added in v0.25.0

func (client *NomadClient) ListRunningSpaceRuntimeRefs(namespaces []string) (map[string]bool, error)

func (*NomadClient) MonitorJobState

func (client *NomadClient) MonitorJobState(space *model.Space, onDone func())

func (*NomadClient) ParseJobHCL

func (client *NomadClient) ParseJobHCL(hcl string) (map[string]interface{}, error)

func (*NomadClient) ReadJob

func (client *NomadClient) ReadJob(ctx context.Context, jobId string, namespace string) (int, map[string]interface{}, error)

func (*NomadClient) StopSpaceRuntime added in v0.25.0

func (client *NomadClient) StopSpaceRuntime(space *model.Space) error

Jump to

Keyboard shortcuts

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