nomad

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 7 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

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 (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) 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) ParseJobHCL

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

Jump to

Keyboard shortcuts

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