Versions in this module Expand all Collapse all v0 v0.2.2 Jun 8, 2023 Changes in this version + var PLEX_TASK = TaskResource type DeployTarget + const PLEXBOX type ResourceValue + const XXLARGE v0.2.1 Jun 7, 2023 v0.2.0 Jun 7, 2023 Changes in this version type Job + Target DeployTarget + func (j *Job) GetNomadApiJob(force bool) (*nomadApi.Job, error) type JobType + const STORAGE_CONTROLLER + const STORAGE_NODE v0.1.1 Jun 3, 2023 Changes in this version type DeployTarget + const UNKNOWN_DEPLOY_TARGET type JobType + const UNKNOWN_JOB_TYPE v0.1.0 Jun 3, 2023 v0.0.1 Jun 3, 2023 Changes in this version + var COMPUTE_TASK = TaskResource + var DEFAULT_TASK = TaskResource + var DeployTargetRegex = map[DeployTarget]string + var LARGE_TASK = TaskResource + var MEM_TASK = TaskResource + var SMALL_TASK = TaskResource + var TINY_TASK = TaskResource + var XLARGE_TASK = TaskResource + func GetGroup(j *Job) *nomadStructs.TaskGroup + func GetService(taskName string, portLabel string) *nomadStructs.Service + func GetTask(j *Job) *nomadStructs.Task + func IntPtr(i int) *int + func IntValOr(ip *int, val int) int + func StringPtr(s string) *string + func StringValOr(sp *string, val string) string + type DeployTarget int + const ALL + const CODERBOX + const DEVBOX + const SERVER + const UNKNOWN + const WORKER + type Job struct + Args []string + Constraint string + Env map[string]string + Image string + Name string + Ports []*Port + Shape TaskResource + Storage string + Templates map[string]string + Type JobType + User string + Volumes []Volume + func NewAppJob(params JobParams) *Job + func NewStorageJob(params JobParams) *Job + func (j *Job) Deploy(force bool) error + func (j *Job) Plan(force bool) error + func (j *Job) ToNomadJob(force bool) (*nomadStructs.Job, *nomadApi.Job, error) + type JobParams struct + Name string + Target DeployTarget + Type JobType + type JobType int + const BATCH + const SERVICE + const SYSTEM + const UNKNOWN_JobType + func (jt JobType) String() string + type Port struct + From int + Label string + Static bool + To int + func BasicPortConfig(val int) []*Port + type ResourceValue int + const DEFAULT + const LARGE + const SMALL + const TINY + const XLARGE + type StorageParams struct + Storage *string + Volumes []Volume + type TaskConfigParams struct + Args []string + Env map[string]string + Ports []*Port + Shape TaskResource + Templates map[string]string + User string + type TaskResource struct + CPU ResourceValue + MEM ResourceValue + type Volume struct + Dst string + Mount bool + Src string