Documentation ¶
Index ¶
- Constants
- Variables
- func AddProcessRoutes(router *httprouter.Router)
- func InitImageManager(scratchPath string, imagePath string) (err error)
- func IsValidDownloadURL(s string) bool
- func New_logBufferFifo(maxsize uint32) (ret *logBufferFifo)
- func ProcessJobOp(DB *storage.MaestroDBInstance, msg maestroSpecs.JobOperation) (joberr *maestroSpecs.APIError, taskid string)
- func ShutdownImageManager()
- type Client
- type ImageManagerInstance
- type Msg_CreateContainer
- type Msg_EraseImage
- type Msg_JobStartRequest
- func (this *Msg_JobStartRequest) GetArgs() []string
- func (this *Msg_JobStartRequest) GetContainerTemplate() string
- func (this *Msg_JobStartRequest) GetDependsOn() []string
- func (this *Msg_JobStartRequest) GetEnv() []string
- func (this *Msg_JobStartRequest) GetExecCmd() string
- func (this *Msg_JobStartRequest) GetJobName() string
- func (this *Msg_JobStartRequest) GetMessageForProcess() string
- func (this *Msg_JobStartRequest) GetPgid() int
- func (this *Msg_JobStartRequest) GetRestartLimit() uint32
- func (this *Msg_JobStartRequest) GetRestartOnDependencyFail() bool
- func (this *Msg_JobStartRequest) GetRestartPause() uint32
- func (this *Msg_JobStartRequest) IsAutostart() bool
- func (this *Msg_JobStartRequest) IsDaemonize() bool
- func (this *Msg_JobStartRequest) IsInheritEnv() bool
- func (this *Msg_JobStartRequest) IsRestart() bool
- type Msg_SendImage
- type Msg_StartProcess
- type Msg_StopJob
- type Msg_StopProcess
- type Msg_TeardownContainer
- type StoredImageEntry
- type UnixHttpEndpoint
Constants ¶
View Source
const TIMEOUT = time.Second * 10
Variables ¶
View Source
var JobManagerInstance *jobManagerInstance
Functions ¶
func AddProcessRoutes ¶
func AddProcessRoutes(router *httprouter.Router)
func InitImageManager ¶
func IsValidDownloadURL ¶
func New_logBufferFifo ¶
func New_logBufferFifo(maxsize uint32) (ret *logBufferFifo)
func ProcessJobOp ¶
func ProcessJobOp(DB *storage.MaestroDBInstance, msg maestroSpecs.JobOperation) (joberr *maestroSpecs.APIError, taskid string)
func ShutdownImageManager ¶
func ShutdownImageManager()
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewSymphonyClient ¶
func NewSymphonyClient(url string, clientid string, maxBuffers uint32, heartbeatInterval time.Duration) *Client
maxBuffers: this number represents the amount of stored log buffers we will hold before dropping them. This can be from 1 to [max amount of bytes from greasego callback] In effect, this should be close to the same number as NumBanks is set in the target options for the greasego target
func (*Client) SubmitLogs ¶
func (client *Client) SubmitLogs(data *greasego.TargetCallbackData, godata []byte)
type ImageManagerInstance ¶
type ImageManagerInstance struct {
// contains filtered or unexported fields
}
func ImageManagerGetInstance ¶
func ImageManagerGetInstance() *ImageManagerInstance
func (*ImageManagerInstance) LookupImage ¶
func (this *ImageManagerInstance) LookupImage(appname string) (ret *StoredImageEntry, ok bool)
func (*ImageManagerInstance) SubmitTask ¶
func (this *ImageManagerInstance) SubmitTask(task *tasks.MaestroTask) (err error)
implements TaskHandler interface:
func (*ImageManagerInstance) ValidateTask ¶
func (this *ImageManagerInstance) ValidateTask(task *tasks.MaestroTask) (err error)
type Msg_CreateContainer ¶
type Msg_CreateContainer struct { }
type Msg_EraseImage ¶
type Msg_EraseImage struct { }
type Msg_JobStartRequest ¶
type Msg_JobStartRequest struct { Job string `json:"job"` ContainerTemplate string `json:"container_template"` Message string `json:"message"` NoAutoStart bool `json:"no_autostart"` Restart bool `json:"restart"` RestartOnDependencyFail bool `json:"restart_on_dependency_fail"` RestartLimit uint32 `json:"restart_limit"` RestartPause uint32 `json:"restart_pause"` DependsOn []string `json:"depends_on"` Pgid int `json:"pgid"` ExecCmd string `json:"exec_cmd"` ExecArgs []string `json:"exec_args"` Env []string `json:"env"` InheritEnv bool `json:"inherit_env"` Daemonize bool `json:"daemonize"` // create a new SID for this process ? }
func (*Msg_JobStartRequest) GetArgs ¶
func (this *Msg_JobStartRequest) GetArgs() []string
func (*Msg_JobStartRequest) GetContainerTemplate ¶
func (this *Msg_JobStartRequest) GetContainerTemplate() string
func (*Msg_JobStartRequest) GetDependsOn ¶
func (this *Msg_JobStartRequest) GetDependsOn() []string
func (*Msg_JobStartRequest) GetEnv ¶
func (this *Msg_JobStartRequest) GetEnv() []string
func (*Msg_JobStartRequest) GetExecCmd ¶
func (this *Msg_JobStartRequest) GetExecCmd() string
func (*Msg_JobStartRequest) GetJobName ¶
func (this *Msg_JobStartRequest) GetJobName() string
func (*Msg_JobStartRequest) GetMessageForProcess ¶
func (this *Msg_JobStartRequest) GetMessageForProcess() string
func (*Msg_JobStartRequest) GetPgid ¶
func (this *Msg_JobStartRequest) GetPgid() int
func (*Msg_JobStartRequest) GetRestartLimit ¶
func (this *Msg_JobStartRequest) GetRestartLimit() uint32
func (*Msg_JobStartRequest) GetRestartOnDependencyFail ¶
func (this *Msg_JobStartRequest) GetRestartOnDependencyFail() bool
func (*Msg_JobStartRequest) GetRestartPause ¶
func (this *Msg_JobStartRequest) GetRestartPause() uint32
func (*Msg_JobStartRequest) IsAutostart ¶
func (this *Msg_JobStartRequest) IsAutostart() bool
func (*Msg_JobStartRequest) IsDaemonize ¶
func (this *Msg_JobStartRequest) IsDaemonize() bool
func (*Msg_JobStartRequest) IsInheritEnv ¶
func (this *Msg_JobStartRequest) IsInheritEnv() bool
func (*Msg_JobStartRequest) IsRestart ¶
func (this *Msg_JobStartRequest) IsRestart() bool
type Msg_SendImage ¶
type Msg_SendImage struct { }
type Msg_StartProcess ¶
type Msg_StartProcess struct { Path string `json:"path"` Arguments []string `json:"arguments"` Environment []string `json:"environment"` // enherit the standard environment that // maestro was started in? InheritEnv bool `json:"inheritEnv"` ContainerId string `json:"ContainerId"` Pgid int `json:"pgid"` Daemonize bool `json:"daemonize"` }
type Msg_StopJob ¶
type Msg_StopJob struct { }
type Msg_StopProcess ¶
type Msg_StopProcess struct { }
type Msg_TeardownContainer ¶
type Msg_TeardownContainer struct { }
type StoredImageEntry ¶
type StoredImageEntry struct {
// contains filtered or unexported fields
}
type UnixHttpEndpoint ¶
type UnixHttpEndpoint struct { SocketPath string WG *sync.WaitGroup // contains filtered or unexported fields }
func (*UnixHttpEndpoint) Init ¶
func (sink *UnixHttpEndpoint) Init(path string) error
func (*UnixHttpEndpoint) Start ¶
func (sink *UnixHttpEndpoint) Start(router *httprouter.Router, wg *sync.WaitGroup) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.