Documentation ¶
Index ¶
- Variables
- func InitAwsSession() *session.Session
- type BatchCli
- func (b *BatchCli) CancelJob(jobID string) error
- func (b *BatchCli) FollowJob(jobID string) *JobFollower
- func (b *BatchCli) GetJob(jobID string) (*batch.JobDetail, error)
- func (b *BatchCli) PrepareBatchSubmitInput(request *SubmitRequest) *batch.SubmitJobInput
- func (b *BatchCli) SubmitJob(request *SubmitRequest) (string, error)
- type JobFollower
- type LogFollower
- type SubmitRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultCancelReason = "Requested by user"
)
Functions ¶
func InitAwsSession ¶
Types ¶
type BatchCli ¶
func (*BatchCli) FollowJob ¶
func (b *BatchCli) FollowJob(jobID string) *JobFollower
func (*BatchCli) PrepareBatchSubmitInput ¶
func (b *BatchCli) PrepareBatchSubmitInput(request *SubmitRequest) *batch.SubmitJobInput
type JobFollower ¶
type LogFollower ¶
func FollowCloudWatchLog ¶
type SubmitRequest ¶
type SubmitRequest struct { Name string Queue string Definition string Command []string Parameters map[string]string Environment map[string]string Timeout int Retries int ContainerMemory int ContainerVcpus int }
SubmitRequest simple wrapper of AWS SubmitJobInput
func (*SubmitRequest) SetCommandString ¶
func (s *SubmitRequest) SetCommandString(cmd string)
SetCommandString set batch command string
Click to show internal directories.
Click to hide internal directories.