From 947f9b84b701052e76332fdf9086d7394382d47f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=B6ll=2C=20Sebastian?= Date: Wed, 17 Jan 2018 21:05:53 +0100 Subject: [PATCH] ~ using argument type --- types.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/types.go b/types.go index 14c397f..c1578b5 100644 --- a/types.go +++ b/types.go @@ -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"` @@ -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"` @@ -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