Skip to content

Commit

Permalink
~ using argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
Döll, Sebastian committed Jan 17, 2018
1 parent eca8869 commit 947f9b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ type Client struct {
type Error struct {
}

// Argument contains an job argument
type Argument string

// EnvironmentVariable contains a single env kv pair
type EnvironmentVariable struct {
Key string `json:"name,omitempty"`
Expand Down Expand Up @@ -80,7 +83,7 @@ type Job struct {
ErrorsSinceLastSuccess int `json:"errorsSinceLastSuccess,omitempty"`
URIs []string `json:"uris,omitempty"`
EnvironmentVariables []EnvironmentVariable `json:"environmentVariables,omitempty"`
Arguments []string `json:"arguments,omitempty"`
Arguments []Argument `json:"arguments,omitempty"`
HighPriority bool `json:"highPriority,omitempty"`
RunAsUser string `json:"runAsUser,omitempty"`
Container *Container `json:"container,omitempty"`
Expand All @@ -92,7 +95,7 @@ type Job struct {

// JobStartParams contains the parameters to start a job
type JobStartParams struct {
Arguments string `url:"arguments,omitempty"`
Arguments Argument `url:"arguments,omitempty"`
}

// NetworkInfo contains container infos to NetworkInfo
Expand Down

0 comments on commit 947f9b8

Please sign in to comment.