Merge pull request #978 from hashicorp/f-enforce-user

Operator specifiable blacklist for task's using certain users
This commit is contained in:
Alex Dadgar
2016-03-25 12:44:05 -07:00
7 changed files with 163 additions and 37 deletions

View File

@@ -158,6 +158,7 @@ type TaskState struct {
const (
TaskDriverFailure = "Driver Failure"
TaskReceived = "Received"
TaskFailedValidation = "Failed Validation"
TaskStarted = "Started"
TaskTerminated = "Terminated"
TaskKilled = "Killed"
@@ -170,13 +171,14 @@ const (
// TaskEvent is an event that effects the state of a task and contains meta-data
// appropriate to the events type.
type TaskEvent struct {
Type string
Time int64
DriverError string
ExitCode int
Signal int
Message string
KillError string
StartDelay int64
DownloadError string
Type string
Time int64
DriverError string
ExitCode int
Signal int
Message string
KillError string
StartDelay int64
DownloadError string
ValidationError string
}