diff --git a/cli/cdsctl/workflow_run_result.go b/cli/cdsctl/workflow_run_result.go index dd7d7d842c..00d352ff39 100644 --- a/cli/cdsctl/workflow_run_result.go +++ b/cli/cdsctl/workflow_run_result.go @@ -237,6 +237,12 @@ func toCLIRunResult(results []sdk.WorkflowRunResult) ([]RunResultCli, error) { return nil, err } name = artiResult.Name + case sdk.WorkflowRunResultTypeArtifactManager: + artiResult, err := r.GetArtifactManager() + if err != nil { + return nil, err + } + name = artiResult.Name } cliresults = append(cliresults, RunResultCli{ diff --git a/contrib/grpcplugins/action/plugin-archive/go.mod b/contrib/grpcplugins/action/plugin-archive/go.mod index 3d0fa93237..bf5a82279c 100644 --- a/contrib/grpcplugins/action/plugin-archive/go.mod +++ b/contrib/grpcplugins/action/plugin-archive/go.mod @@ -5,7 +5,6 @@ replace github.com/ovh/cds => ../../../../ go 1.16 require ( - github.com/dsnet/compress v0.0.1 // indirect github.com/golang/protobuf v1.5.0 github.com/mholt/archiver v3.1.1+incompatible github.com/ovh/cds v0.0.0-00010101000000-000000000000 diff --git a/contrib/grpcplugins/action/plugin-archive/go.sum b/contrib/grpcplugins/action/plugin-archive/go.sum index def1e2d78e..6e67922856 100644 --- a/contrib/grpcplugins/action/plugin-archive/go.sum +++ b/contrib/grpcplugins/action/plugin-archive/go.sum @@ -26,12 +26,15 @@ github.com/SSSaaS/sssa-golang v0.0.0-20170502204618-d37d7782d752/go.mod h1:PbJ8S github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/sarama v1.27.0/go.mod h1:aCdj6ymI8uyPEux1JJ9gcaDT6cinjGhNCAhs54taSUo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= github.com/alecthomas/jsonschema v0.0.0-20200123075451-43663a393755/go.mod h1:Juc2PrI3wtNfUwptSvAIeNx+HrETwHQs6nf+TkOJlOA= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= github.com/andygrunwald/go-gerrit v0.0.0-20181207071854-19ef3e9332a4/go.mod h1:0iuRQp6WJ44ts+iihy5E/WlPqfg5RNeQxOmzRkxCdtk= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/aokoli/goutils v1.1.0 h1:jy4ghdcYvs5EIoGssZNslIASX5m+KNMfyyKvRQ0TEVE= github.com/aokoli/goutils v1.1.0/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= @@ -48,6 +51,7 @@ github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdn github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/buger/goterm v0.0.0-20170918171949-d443b9114f9c/go.mod h1:u9UyCz2eTrSGy6fbupqJ54eY5c4IC8gREQ1053dK12U= +github.com/buger/jsonparser v0.0.0-20180910192245-6acdf747ae99/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -76,7 +80,6 @@ github.com/docker/docker v1.13.1/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsv github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.3.2/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e/go.mod h1:56wL82FO0bfMU5RvfXoIwSOP2ggqqxT+tAfNEIyxuHw= -github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76/go.mod h1:KjxHHirfLaw19iGT70HvVjHQsL1vq1SRQB4yOsAfy2s= github.com/dsnet/compress v0.0.1 h1:PlZu0n3Tuv04TzpfPbrnI0HW/YwodEXDS+oPKahKF0Q= github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= @@ -86,11 +89,13 @@ github.com/eapache/go-resiliency v1.2.0 h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUK github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.10.0 h1:Gfh+GAJZOAoKZsIZeZbdn2JF10kN1XHNvjsvQK8gVkE= github.com/frankban/quicktest v1.10.0/go.mod h1:ui7WezCLWMWxVWr1GETZY3smRy0G4KWq9vcPtJmFl7Y= @@ -105,6 +110,7 @@ github.com/gambol99/go-marathon v0.0.0-20170922093320-ec4a50170df7/go.mod h1:GLy github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gorp/gorp v2.0.0+incompatible h1:dIQPsBtl6/H1MjVseWuWPXa7ET4p6Dve4j3Hg+UjqYw= github.com/go-gorp/gorp v2.0.0+incompatible/go.mod h1:7IfkAQnO7jfT/9IQ3R9wL1dFhukN6aQxzKTHnkxzA/E= @@ -141,6 +147,7 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= @@ -153,6 +160,7 @@ github.com/google/uuid v0.0.0-20170306145142-6a5e28554805/go.mod h1:TIyPZe4Mgqvf github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/gookit/color v1.3.2/go.mod h1:R3ogXq2B9rTbXoSHJ1HyUVAZ3poOJHpd9nQmyGZsfvQ= github.com/gophercloud/gophercloud v0.0.0-20190504011306-6f9faf57fddc/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorhill/cronexpr v0.0.0-20161205141322-d520615e531a/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA= @@ -211,7 +219,10 @@ github.com/imdario/mergo v0.0.0-20180119215619-163f41321a19/go.mod h1:2EnlNZ0dea github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf/go.mod h1:hyb9oH7vZsitZCiBt0ZvifOrB+qc8PS5IiilCIb87rg= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933/go.mod h1:AYdLvrSBFloDBNt7Y8xkQ6gmhCODGl8CPikjyIOnNzA= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= +github.com/jfrog/gofrog v1.0.6/go.mod h1:HkDzg+tMNw23UryoOv0+LB94BzYcl6MCIoz8Tmlb+s8= +github.com/jfrog/jfrog-client-go v0.21.0/go.mod h1:0RYDrQKCIdJbx6pjopwtwXh4/PaEW9FqFc4b4ox8fl0= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jordan-wright/email v4.0.1-0.20200917010138-e1c00e156980+incompatible/go.mod h1:1c7szIrayyPPB/987hsnvNzLushdWf4o/79s3P08L8A= @@ -222,6 +233,7 @@ github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfV github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/keybase/go-crypto v0.0.0-20181127160227-255a5089e85a/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= github.com/keybase/go-keychain v0.0.0-20190828020956-aa639f275ae1/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/keybase/go.dbus v0.0.0-20190710215703-a33a09c8a604/go.mod h1:a8clEhrrGV/d76/f9r2I41BwANMihfZYV9C223vaxqE= @@ -230,6 +242,7 @@ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+o github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -265,6 +278,7 @@ github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1f github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mholt/archiver v3.1.1+incompatible h1:1dCVxuqs0dJseYEhi5pl7MYPH9zDa1wBi7mF09cbNkU= github.com/mholt/archiver v3.1.1+incompatible/go.mod h1:Dh2dOXnSdiLxRiPoVfIr/fI1TwETms9B8CTWfeh7ROU= +github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miscreant/miscreant.go v0.0.0-20200214223636-26d376326b75/go.mod h1:pBbZyGwC5i16IBkjVKoy/sznA8jPD/K9iedwe1ESE6w= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -296,8 +310,8 @@ github.com/ncw/swift v1.0.52/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/termbox-go v0.0.0-20190817171036-93860e161317/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= -github.com/nwaples/rardecode v1.0.0 h1:r7vGuS5akxOnR4JQSkko62RJ1ReCMXxQRPtxsiFMBOs= -github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= +github.com/nwaples/rardecode v1.1.0 h1:vSxaY8vQhOcVr4mm5e8XllHWTiM4JF507A0Katqw7MQ= +github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20160621093029-daf2955e742c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= @@ -321,6 +335,7 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c h1:MUyE44mTvnI5A0xrxIxaMqoWFzPfQvtE2IWUollMDMs= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.0 h1:Keo9qb7iRJs2voHvunFtuuYFsbWeOBh8/P9v/kVMFtw= github.com/pelletier/go-toml v1.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs= @@ -328,6 +343,7 @@ github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.5.2+incompatible h1:WCjObylUIOlKy/+7Abdn34TLIkXiA4UWUMhxq9m9ZXI= github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/browser v0.0.0-20170505125900-c90ca0c84f15/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -375,6 +391,7 @@ github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFo github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197 h1:qu90yDtRE5WEfRT5mn9v0Xz9RaopLguhbPwZKx4dHq8= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197/go.mod h1:0hhKrsUsoT7yvxwNGKa+TSYNA26DNWMqReeZEQq/9FI= github.com/shirou/gopsutil v0.0.0-20170406131756-e49a95f3d5f8/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= @@ -401,6 +418,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/src-d/gcfg v1.3.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8/go.mod h1:1WNBiOZtZQLpVAyu0iTduoJL9hEsMloAK5XWrtW0xdY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -419,15 +437,17 @@ github.com/tevino/abool v0.0.0-20170917061928-9b9efcf221b5/go.mod h1:f1SCnEOt6sc github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ulikunitz/xz v0.5.4/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= -github.com/ulikunitz/xz v0.5.6 h1:jGHAfXawEGZQ3blwU5wnWKQJvAraT7Ftq9EXjnXYgt8= github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.8 h1:ERv8V6GKqVi23rgu5cj9pVfVzJbOqAY2Ntl88O6c2nQ= +github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/vmware/go-nfs-client v0.0.0-20190605212624-d43b92724c1b/go.mod h1:psQdhrCc+fimC/8/U+PboPiIMcdmKgRdAtcMnhXhjzI= github.com/vmware/govmomi v0.23.0/go.mod h1:Y+Wq4lst78L85Ge/F8+ORXIWiKYqaro1vhAulACy9Lc= github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728/go.mod h1:x9oS4Wk2s2u4tS29nEaDLdzvuHdB19CvSGJjPgkZJNk= github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa/go.mod h1:2rx5KE5FLD0HRfkkpyn8JwbVLBdhgeiOb2D2D9LLKM4= github.com/xanzy/go-gitlab v0.15.0/go.mod h1:8zdQa/ri1dfn8eS3Ir1SyfvOKlw7WBJ8DVThkpGiXrs= +github.com/xanzy/ssh-agent v0.2.0/go.mod h1:0NyE30eGUDliuLEHJgYte/zncp2zdTStcOnWhgSqHD8= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 h1:nIPpBwaJSVYIxUFsDv3M8ofmx9yWTog9BfvIu0q41lo= @@ -461,6 +481,7 @@ golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -498,8 +519,9 @@ golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200528225125-3c3fba18258b h1:IYiJPiJfzktmDAO1HQiwjMjwjlYKHAL7KzeD544RJPs= golang.org/x/net v0.0.0-20200528225125-3c3fba18258b/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 h1:lwlPPsmjDKK0J6eG6xDWd5XPehI0R024zxjDnw3esPA= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -511,6 +533,7 @@ golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -532,13 +555,18 @@ golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200724161237-0e2f3a69832c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -631,8 +659,12 @@ gopkg.in/olivere/elastic.v6 v6.2.17/go.mod h1:2cTT8Z+/LcArSWpCgvZqBgt3VOqXiy7v00 gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/spacemonkeygo/httpsig.v0 v0.0.0-20170228231032-6732593ec966/go.mod h1:KUilIqVZdvg7tsZSnGqOnw8jL2WVzcC0RHV/Av0km2U= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/src-d/go-billy.v4 v4.3.0/go.mod h1:tm33zBoOwxjYHZIE+OV8bxTWFMJLrconzFMd38aARFk= +gopkg.in/src-d/go-git-fixtures.v3 v3.1.1/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g= +gopkg.in/src-d/go-git.v4 v4.7.0/go.mod h1:CzbUWqMn4pvmvndg3gnh5iZFmSsbhyhUWdI0IQ60AQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/contrib/grpcplugins/action/plugin-clair/go.mod b/contrib/grpcplugins/action/plugin-clair/go.mod index d82ceacb90..b704861232 100644 --- a/contrib/grpcplugins/action/plugin-clair/go.mod +++ b/contrib/grpcplugins/action/plugin-clair/go.mod @@ -36,5 +36,5 @@ require ( github.com/quay/clair/v2 v2.1.4 github.com/spf13/viper v1.7.0 github.com/vbatts/tar-split v0.11.1 // indirect - golang.org/x/net v0.0.0-20200602114024-627f9648deb9 + golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 ) diff --git a/contrib/grpcplugins/action/plugin-clair/go.sum b/contrib/grpcplugins/action/plugin-clair/go.sum index bdac17c64c..d529690301 100644 --- a/contrib/grpcplugins/action/plugin-clair/go.sum +++ b/contrib/grpcplugins/action/plugin-clair/go.sum @@ -32,12 +32,15 @@ github.com/SSSaaS/sssa-golang v0.0.0-20170502204618-d37d7782d752/go.mod h1:PbJ8S github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/sarama v1.27.0/go.mod h1:aCdj6ymI8uyPEux1JJ9gcaDT6cinjGhNCAhs54taSUo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= github.com/alecthomas/jsonschema v0.0.0-20200123075451-43663a393755/go.mod h1:Juc2PrI3wtNfUwptSvAIeNx+HrETwHQs6nf+TkOJlOA= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= github.com/andygrunwald/go-gerrit v0.0.0-20181207071854-19ef3e9332a4/go.mod h1:0iuRQp6WJ44ts+iihy5E/WlPqfg5RNeQxOmzRkxCdtk= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/aokoli/goutils v1.1.0 h1:jy4ghdcYvs5EIoGssZNslIASX5m+KNMfyyKvRQ0TEVE= github.com/aokoli/goutils v1.1.0/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= @@ -55,6 +58,7 @@ github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdn github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/buger/goterm v0.0.0-20170918171949-d443b9114f9c/go.mod h1:u9UyCz2eTrSGy6fbupqJ54eY5c4IC8gREQ1053dK12U= +github.com/buger/jsonparser v0.0.0-20180910192245-6acdf747ae99/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -106,8 +110,9 @@ github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDD github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 h1:UhxFibDNY/bfvqU5CAUmr9zpesgbU6SWc8/B4mflAE4= github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE= github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e/go.mod h1:56wL82FO0bfMU5RvfXoIwSOP2ggqqxT+tAfNEIyxuHw= -github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76 h1:eX+pdPPlD279OWgdx7f6KqIRSONuK7egk+jDx7OM3Ac= -github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76/go.mod h1:KjxHHirfLaw19iGT70HvVjHQsL1vq1SRQB4yOsAfy2s= +github.com/dsnet/compress v0.0.1 h1:PlZu0n3Tuv04TzpfPbrnI0HW/YwodEXDS+oPKahKF0Q= +github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= +github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= @@ -115,6 +120,7 @@ github.com/eapache/go-resiliency v1.2.0 h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUK github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= @@ -122,6 +128,7 @@ github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5Kwzbycv github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= github.com/fernet/fernet-go v0.0.0-20151007213151-1b2437bc582b h1:QqmfGmPkAbYcqM0YdHOS8JxqRJqEx+0rxjYZ1OiP6aw= github.com/fernet/fernet-go v0.0.0-20151007213151-1b2437bc582b/go.mod h1:2H9hjfbpSMHwY503FclkV/lZTBh2YlOmLLSda12uL8c= +github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.10.0 h1:Gfh+GAJZOAoKZsIZeZbdn2JF10kN1XHNvjsvQK8gVkE= github.com/frankban/quicktest v1.10.0/go.mod h1:ui7WezCLWMWxVWr1GETZY3smRy0G4KWq9vcPtJmFl7Y= @@ -136,6 +143,7 @@ github.com/gambol99/go-marathon v0.0.0-20170922093320-ec4a50170df7/go.mod h1:GLy github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gorp/gorp v2.0.0+incompatible h1:dIQPsBtl6/H1MjVseWuWPXa7ET4p6Dve4j3Hg+UjqYw= github.com/go-gorp/gorp v2.0.0+incompatible/go.mod h1:7IfkAQnO7jfT/9IQ3R9wL1dFhukN6aQxzKTHnkxzA/E= @@ -176,6 +184,7 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= @@ -187,6 +196,7 @@ github.com/google/uuid v0.0.0-20170306145142-6a5e28554805/go.mod h1:TIyPZe4Mgqvf github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/gookit/color v1.3.2/go.mod h1:R3ogXq2B9rTbXoSHJ1HyUVAZ3poOJHpd9nQmyGZsfvQ= github.com/gophercloud/gophercloud v0.0.0-20190504011306-6f9faf57fddc/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= @@ -250,7 +260,10 @@ github.com/imdario/mergo v0.0.0-20180119215619-163f41321a19/go.mod h1:2EnlNZ0dea github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf/go.mod h1:hyb9oH7vZsitZCiBt0ZvifOrB+qc8PS5IiilCIb87rg= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933/go.mod h1:AYdLvrSBFloDBNt7Y8xkQ6gmhCODGl8CPikjyIOnNzA= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= +github.com/jfrog/gofrog v1.0.6/go.mod h1:HkDzg+tMNw23UryoOv0+LB94BzYcl6MCIoz8Tmlb+s8= +github.com/jfrog/jfrog-client-go v0.21.0/go.mod h1:0RYDrQKCIdJbx6pjopwtwXh4/PaEW9FqFc4b4ox8fl0= github.com/jgsqware/xnet v0.0.0-20170203143001-13630f0737d2 h1:61SDpnYYuWhpwNMyu/WqqdndR3CJyvXfGgzBwPhWzRo= github.com/jgsqware/xnet v0.0.0-20170203143001-13630f0737d2/go.mod h1:IAg/pDB4RerQA8lMgjQv1JEG42LrZnRQBDNldFOqBNs= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= @@ -265,13 +278,17 @@ github.com/julienschmidt/httprouter v1.2.0 h1:TDTW5Yz1mjftljbcKqRcrYhd4XeOoI98t+ github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/keybase/go-crypto v0.0.0-20181127160227-255a5089e85a/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= github.com/keybase/go-keychain v0.0.0-20190828020956-aa639f275ae1/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/keybase/go.dbus v0.0.0-20190710215703-a33a09c8a604/go.mod h1:a8clEhrrGV/d76/f9r2I41BwANMihfZYV9C223vaxqE= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -311,6 +328,7 @@ github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1f github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mholt/archiver v3.1.1+incompatible h1:1dCVxuqs0dJseYEhi5pl7MYPH9zDa1wBi7mF09cbNkU= github.com/mholt/archiver v3.1.1+incompatible/go.mod h1:Dh2dOXnSdiLxRiPoVfIr/fI1TwETms9B8CTWfeh7ROU= +github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miscreant/miscreant.go v0.0.0-20200214223636-26d376326b75/go.mod h1:pBbZyGwC5i16IBkjVKoy/sznA8jPD/K9iedwe1ESE6w= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -344,8 +362,8 @@ github.com/ncw/swift v1.0.52/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/termbox-go v0.0.0-20190817171036-93860e161317/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= -github.com/nwaples/rardecode v1.0.0 h1:r7vGuS5akxOnR4JQSkko62RJ1ReCMXxQRPtxsiFMBOs= -github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= +github.com/nwaples/rardecode v1.1.0 h1:vSxaY8vQhOcVr4mm5e8XllHWTiM4JF507A0Katqw7MQ= +github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20160621093029-daf2955e742c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= @@ -384,6 +402,7 @@ github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTK github.com/pborman/uuid v0.0.0-20160209185913-a97ce2ca70fa/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c h1:MUyE44mTvnI5A0xrxIxaMqoWFzPfQvtE2IWUollMDMs= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.0 h1:Keo9qb7iRJs2voHvunFtuuYFsbWeOBh8/P9v/kVMFtw= github.com/pelletier/go-toml v1.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs= @@ -391,6 +410,7 @@ github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.5.2+incompatible h1:WCjObylUIOlKy/+7Abdn34TLIkXiA4UWUMhxq9m9ZXI= github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/browser v0.0.0-20170505125900-c90ca0c84f15/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1-0.20171018195549-f15c970de5b7/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -448,6 +468,7 @@ github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFo github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197 h1:qu90yDtRE5WEfRT5mn9v0Xz9RaopLguhbPwZKx4dHq8= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197/go.mod h1:0hhKrsUsoT7yvxwNGKa+TSYNA26DNWMqReeZEQq/9FI= github.com/shirou/gopsutil v0.0.0-20170406131756-e49a95f3d5f8/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= @@ -481,6 +502,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/src-d/gcfg v1.3.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8/go.mod h1:1WNBiOZtZQLpVAyu0iTduoJL9hEsMloAK5XWrtW0xdY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -501,8 +523,10 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1 github.com/tylerb/graceful v1.2.15/go.mod h1:LPYTbOYmUTdabwRt0TGhLllQ0MUNbs0Y5q1WXJOI9II= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ulikunitz/xz v0.5.4 h1:zATC2OoZ8H1TZll3FpbX+ikwmadbO699PE06cIkm9oU= -github.com/ulikunitz/xz v0.5.4/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.8 h1:ERv8V6GKqVi23rgu5cj9pVfVzJbOqAY2Ntl88O6c2nQ= +github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v0.0.0-20171014202726-7bc6a0acffa5/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/vbatts/tar-split v0.11.1 h1:0Odu65rhcZ3JZaPHxl7tCI3V/C/Q9Zf82UFravl02dE= @@ -512,6 +536,7 @@ github.com/vmware/govmomi v0.23.0/go.mod h1:Y+Wq4lst78L85Ge/F8+ORXIWiKYqaro1vhAu github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728/go.mod h1:x9oS4Wk2s2u4tS29nEaDLdzvuHdB19CvSGJjPgkZJNk= github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa/go.mod h1:2rx5KE5FLD0HRfkkpyn8JwbVLBdhgeiOb2D2D9LLKM4= github.com/xanzy/go-gitlab v0.15.0/go.mod h1:8zdQa/ri1dfn8eS3Ir1SyfvOKlw7WBJ8DVThkpGiXrs= +github.com/xanzy/ssh-agent v0.2.0/go.mod h1:0NyE30eGUDliuLEHJgYte/zncp2zdTStcOnWhgSqHD8= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 h1:nIPpBwaJSVYIxUFsDv3M8ofmx9yWTog9BfvIu0q41lo= @@ -546,6 +571,7 @@ golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -584,8 +610,8 @@ golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200528225125-3c3fba18258b/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200602114024-627f9648deb9 h1:pNX+40auqi2JqRfOP1akLGtYcn15TUbkhwuCO3foqqM= -golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 h1:lwlPPsmjDKK0J6eG6xDWd5XPehI0R024zxjDnw3esPA= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -599,6 +625,7 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sys v0.0.0-20170427041856-9ccfe848b9db/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -623,13 +650,18 @@ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191115151921-52ab43148777/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200724161237-0e2f3a69832c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 h1:SvFZT6jyqRaOeXpc5h/JSfZenJ2O330aBsf7JfSUXmQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -727,8 +759,12 @@ gopkg.in/olivere/elastic.v6 v6.2.17/go.mod h1:2cTT8Z+/LcArSWpCgvZqBgt3VOqXiy7v00 gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/spacemonkeygo/httpsig.v0 v0.0.0-20170228231032-6732593ec966/go.mod h1:KUilIqVZdvg7tsZSnGqOnw8jL2WVzcC0RHV/Av0km2U= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/src-d/go-billy.v4 v4.3.0/go.mod h1:tm33zBoOwxjYHZIE+OV8bxTWFMJLrconzFMd38aARFk= +gopkg.in/src-d/go-git-fixtures.v3 v3.1.1/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g= +gopkg.in/src-d/go-git.v4 v4.7.0/go.mod h1:CzbUWqMn4pvmvndg3gnh5iZFmSsbhyhUWdI0IQ60AQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170407172122-cd8b52f8269e/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/contrib/grpcplugins/action/plugin-download/go.sum b/contrib/grpcplugins/action/plugin-download/go.sum index a042c21bec..9308d113b0 100644 --- a/contrib/grpcplugins/action/plugin-download/go.sum +++ b/contrib/grpcplugins/action/plugin-download/go.sum @@ -26,12 +26,15 @@ github.com/SSSaaS/sssa-golang v0.0.0-20170502204618-d37d7782d752/go.mod h1:PbJ8S github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/sarama v1.27.0/go.mod h1:aCdj6ymI8uyPEux1JJ9gcaDT6cinjGhNCAhs54taSUo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= github.com/alecthomas/jsonschema v0.0.0-20200123075451-43663a393755/go.mod h1:Juc2PrI3wtNfUwptSvAIeNx+HrETwHQs6nf+TkOJlOA= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= github.com/andygrunwald/go-gerrit v0.0.0-20181207071854-19ef3e9332a4/go.mod h1:0iuRQp6WJ44ts+iihy5E/WlPqfg5RNeQxOmzRkxCdtk= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/aokoli/goutils v1.1.0 h1:jy4ghdcYvs5EIoGssZNslIASX5m+KNMfyyKvRQ0TEVE= github.com/aokoli/goutils v1.1.0/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= @@ -48,6 +51,7 @@ github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdn github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/buger/goterm v0.0.0-20170918171949-d443b9114f9c/go.mod h1:u9UyCz2eTrSGy6fbupqJ54eY5c4IC8gREQ1053dK12U= +github.com/buger/jsonparser v0.0.0-20180910192245-6acdf747ae99/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -76,18 +80,21 @@ github.com/docker/docker v1.13.1/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsv github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.3.2/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e/go.mod h1:56wL82FO0bfMU5RvfXoIwSOP2ggqqxT+tAfNEIyxuHw= -github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76/go.mod h1:KjxHHirfLaw19iGT70HvVjHQsL1vq1SRQB4yOsAfy2s= +github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= +github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-resiliency v1.2.0 h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUKorFR1Q= github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.10.0/go.mod h1:ui7WezCLWMWxVWr1GETZY3smRy0G4KWq9vcPtJmFl7Y= github.com/fsamin/go-dump v1.0.9 h1:3MAneAJLnGfKTJtFEAdgrD+QqqK2Hwj7EJUQMQZcDls= @@ -101,6 +108,7 @@ github.com/gambol99/go-marathon v0.0.0-20170922093320-ec4a50170df7/go.mod h1:GLy github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gorp/gorp v2.0.0+incompatible h1:dIQPsBtl6/H1MjVseWuWPXa7ET4p6Dve4j3Hg+UjqYw= github.com/go-gorp/gorp v2.0.0+incompatible/go.mod h1:7IfkAQnO7jfT/9IQ3R9wL1dFhukN6aQxzKTHnkxzA/E= @@ -136,6 +144,7 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= @@ -148,6 +157,7 @@ github.com/google/uuid v0.0.0-20170306145142-6a5e28554805/go.mod h1:TIyPZe4Mgqvf github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/gookit/color v1.3.2/go.mod h1:R3ogXq2B9rTbXoSHJ1HyUVAZ3poOJHpd9nQmyGZsfvQ= github.com/gophercloud/gophercloud v0.0.0-20190504011306-6f9faf57fddc/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorhill/cronexpr v0.0.0-20161205141322-d520615e531a/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA= @@ -206,7 +216,10 @@ github.com/imdario/mergo v0.0.0-20180119215619-163f41321a19/go.mod h1:2EnlNZ0dea github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf/go.mod h1:hyb9oH7vZsitZCiBt0ZvifOrB+qc8PS5IiilCIb87rg= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933/go.mod h1:AYdLvrSBFloDBNt7Y8xkQ6gmhCODGl8CPikjyIOnNzA= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= +github.com/jfrog/gofrog v1.0.6/go.mod h1:HkDzg+tMNw23UryoOv0+LB94BzYcl6MCIoz8Tmlb+s8= +github.com/jfrog/jfrog-client-go v0.21.0/go.mod h1:0RYDrQKCIdJbx6pjopwtwXh4/PaEW9FqFc4b4ox8fl0= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jordan-wright/email v4.0.1-0.20200917010138-e1c00e156980+incompatible/go.mod h1:1c7szIrayyPPB/987hsnvNzLushdWf4o/79s3P08L8A= @@ -217,12 +230,16 @@ github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfV github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/keybase/go-crypto v0.0.0-20181127160227-255a5089e85a/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= github.com/keybase/go-keychain v0.0.0-20190828020956-aa639f275ae1/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/keybase/go.dbus v0.0.0-20190710215703-a33a09c8a604/go.mod h1:a8clEhrrGV/d76/f9r2I41BwANMihfZYV9C223vaxqE= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -256,6 +273,7 @@ github.com/mcuadros/go-defaults v0.0.0-20161116231230-e1c978be3307/go.mod h1:vl9 github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mholt/archiver v3.1.1+incompatible/go.mod h1:Dh2dOXnSdiLxRiPoVfIr/fI1TwETms9B8CTWfeh7ROU= +github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miscreant/miscreant.go v0.0.0-20200214223636-26d376326b75/go.mod h1:pBbZyGwC5i16IBkjVKoy/sznA8jPD/K9iedwe1ESE6w= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -287,7 +305,7 @@ github.com/ncw/swift v1.0.52/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/termbox-go v0.0.0-20190817171036-93860e161317/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= -github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= +github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20160621093029-daf2955e742c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= @@ -311,12 +329,14 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c h1:MUyE44mTvnI5A0xrxIxaMqoWFzPfQvtE2IWUollMDMs= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.0 h1:Keo9qb7iRJs2voHvunFtuuYFsbWeOBh8/P9v/kVMFtw= github.com/pelletier/go-toml v1.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/browser v0.0.0-20170505125900-c90ca0c84f15/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= @@ -363,6 +383,7 @@ github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFo github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197 h1:qu90yDtRE5WEfRT5mn9v0Xz9RaopLguhbPwZKx4dHq8= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197/go.mod h1:0hhKrsUsoT7yvxwNGKa+TSYNA26DNWMqReeZEQq/9FI= github.com/shirou/gopsutil v0.0.0-20170406131756-e49a95f3d5f8/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= @@ -389,6 +410,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/src-d/gcfg v1.3.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8/go.mod h1:1WNBiOZtZQLpVAyu0iTduoJL9hEsMloAK5XWrtW0xdY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -407,13 +429,16 @@ github.com/tevino/abool v0.0.0-20170917061928-9b9efcf221b5/go.mod h1:f1SCnEOt6sc github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ulikunitz/xz v0.5.4/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/vmware/go-nfs-client v0.0.0-20190605212624-d43b92724c1b/go.mod h1:psQdhrCc+fimC/8/U+PboPiIMcdmKgRdAtcMnhXhjzI= github.com/vmware/govmomi v0.23.0/go.mod h1:Y+Wq4lst78L85Ge/F8+ORXIWiKYqaro1vhAulACy9Lc= github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728/go.mod h1:x9oS4Wk2s2u4tS29nEaDLdzvuHdB19CvSGJjPgkZJNk= github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa/go.mod h1:2rx5KE5FLD0HRfkkpyn8JwbVLBdhgeiOb2D2D9LLKM4= github.com/xanzy/go-gitlab v0.15.0/go.mod h1:8zdQa/ri1dfn8eS3Ir1SyfvOKlw7WBJ8DVThkpGiXrs= +github.com/xanzy/ssh-agent v0.2.0/go.mod h1:0NyE30eGUDliuLEHJgYte/zncp2zdTStcOnWhgSqHD8= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos= @@ -446,6 +471,7 @@ golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -483,8 +509,9 @@ golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200528225125-3c3fba18258b h1:IYiJPiJfzktmDAO1HQiwjMjwjlYKHAL7KzeD544RJPs= golang.org/x/net v0.0.0-20200528225125-3c3fba18258b/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 h1:lwlPPsmjDKK0J6eG6xDWd5XPehI0R024zxjDnw3esPA= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -496,6 +523,7 @@ golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -517,13 +545,18 @@ golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200724161237-0e2f3a69832c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -616,8 +649,12 @@ gopkg.in/olivere/elastic.v6 v6.2.17/go.mod h1:2cTT8Z+/LcArSWpCgvZqBgt3VOqXiy7v00 gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/spacemonkeygo/httpsig.v0 v0.0.0-20170228231032-6732593ec966/go.mod h1:KUilIqVZdvg7tsZSnGqOnw8jL2WVzcC0RHV/Av0km2U= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/src-d/go-billy.v4 v4.3.0/go.mod h1:tm33zBoOwxjYHZIE+OV8bxTWFMJLrconzFMd38aARFk= +gopkg.in/src-d/go-git-fixtures.v3 v3.1.1/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g= +gopkg.in/src-d/go-git.v4 v4.7.0/go.mod h1:CzbUWqMn4pvmvndg3gnh5iZFmSsbhyhUWdI0IQ60AQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/contrib/grpcplugins/action/plugin-group-tmpl/go.sum b/contrib/grpcplugins/action/plugin-group-tmpl/go.sum index a042c21bec..9308d113b0 100644 --- a/contrib/grpcplugins/action/plugin-group-tmpl/go.sum +++ b/contrib/grpcplugins/action/plugin-group-tmpl/go.sum @@ -26,12 +26,15 @@ github.com/SSSaaS/sssa-golang v0.0.0-20170502204618-d37d7782d752/go.mod h1:PbJ8S github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/sarama v1.27.0/go.mod h1:aCdj6ymI8uyPEux1JJ9gcaDT6cinjGhNCAhs54taSUo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= github.com/alecthomas/jsonschema v0.0.0-20200123075451-43663a393755/go.mod h1:Juc2PrI3wtNfUwptSvAIeNx+HrETwHQs6nf+TkOJlOA= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= github.com/andygrunwald/go-gerrit v0.0.0-20181207071854-19ef3e9332a4/go.mod h1:0iuRQp6WJ44ts+iihy5E/WlPqfg5RNeQxOmzRkxCdtk= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/aokoli/goutils v1.1.0 h1:jy4ghdcYvs5EIoGssZNslIASX5m+KNMfyyKvRQ0TEVE= github.com/aokoli/goutils v1.1.0/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= @@ -48,6 +51,7 @@ github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdn github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/buger/goterm v0.0.0-20170918171949-d443b9114f9c/go.mod h1:u9UyCz2eTrSGy6fbupqJ54eY5c4IC8gREQ1053dK12U= +github.com/buger/jsonparser v0.0.0-20180910192245-6acdf747ae99/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -76,18 +80,21 @@ github.com/docker/docker v1.13.1/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsv github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.3.2/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e/go.mod h1:56wL82FO0bfMU5RvfXoIwSOP2ggqqxT+tAfNEIyxuHw= -github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76/go.mod h1:KjxHHirfLaw19iGT70HvVjHQsL1vq1SRQB4yOsAfy2s= +github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= +github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-resiliency v1.2.0 h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUKorFR1Q= github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.10.0/go.mod h1:ui7WezCLWMWxVWr1GETZY3smRy0G4KWq9vcPtJmFl7Y= github.com/fsamin/go-dump v1.0.9 h1:3MAneAJLnGfKTJtFEAdgrD+QqqK2Hwj7EJUQMQZcDls= @@ -101,6 +108,7 @@ github.com/gambol99/go-marathon v0.0.0-20170922093320-ec4a50170df7/go.mod h1:GLy github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gorp/gorp v2.0.0+incompatible h1:dIQPsBtl6/H1MjVseWuWPXa7ET4p6Dve4j3Hg+UjqYw= github.com/go-gorp/gorp v2.0.0+incompatible/go.mod h1:7IfkAQnO7jfT/9IQ3R9wL1dFhukN6aQxzKTHnkxzA/E= @@ -136,6 +144,7 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= @@ -148,6 +157,7 @@ github.com/google/uuid v0.0.0-20170306145142-6a5e28554805/go.mod h1:TIyPZe4Mgqvf github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/gookit/color v1.3.2/go.mod h1:R3ogXq2B9rTbXoSHJ1HyUVAZ3poOJHpd9nQmyGZsfvQ= github.com/gophercloud/gophercloud v0.0.0-20190504011306-6f9faf57fddc/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorhill/cronexpr v0.0.0-20161205141322-d520615e531a/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA= @@ -206,7 +216,10 @@ github.com/imdario/mergo v0.0.0-20180119215619-163f41321a19/go.mod h1:2EnlNZ0dea github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf/go.mod h1:hyb9oH7vZsitZCiBt0ZvifOrB+qc8PS5IiilCIb87rg= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933/go.mod h1:AYdLvrSBFloDBNt7Y8xkQ6gmhCODGl8CPikjyIOnNzA= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= +github.com/jfrog/gofrog v1.0.6/go.mod h1:HkDzg+tMNw23UryoOv0+LB94BzYcl6MCIoz8Tmlb+s8= +github.com/jfrog/jfrog-client-go v0.21.0/go.mod h1:0RYDrQKCIdJbx6pjopwtwXh4/PaEW9FqFc4b4ox8fl0= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jordan-wright/email v4.0.1-0.20200917010138-e1c00e156980+incompatible/go.mod h1:1c7szIrayyPPB/987hsnvNzLushdWf4o/79s3P08L8A= @@ -217,12 +230,16 @@ github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfV github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/keybase/go-crypto v0.0.0-20181127160227-255a5089e85a/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= github.com/keybase/go-keychain v0.0.0-20190828020956-aa639f275ae1/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/keybase/go.dbus v0.0.0-20190710215703-a33a09c8a604/go.mod h1:a8clEhrrGV/d76/f9r2I41BwANMihfZYV9C223vaxqE= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -256,6 +273,7 @@ github.com/mcuadros/go-defaults v0.0.0-20161116231230-e1c978be3307/go.mod h1:vl9 github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mholt/archiver v3.1.1+incompatible/go.mod h1:Dh2dOXnSdiLxRiPoVfIr/fI1TwETms9B8CTWfeh7ROU= +github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miscreant/miscreant.go v0.0.0-20200214223636-26d376326b75/go.mod h1:pBbZyGwC5i16IBkjVKoy/sznA8jPD/K9iedwe1ESE6w= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -287,7 +305,7 @@ github.com/ncw/swift v1.0.52/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/termbox-go v0.0.0-20190817171036-93860e161317/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= -github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= +github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20160621093029-daf2955e742c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= @@ -311,12 +329,14 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c h1:MUyE44mTvnI5A0xrxIxaMqoWFzPfQvtE2IWUollMDMs= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.0 h1:Keo9qb7iRJs2voHvunFtuuYFsbWeOBh8/P9v/kVMFtw= github.com/pelletier/go-toml v1.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/browser v0.0.0-20170505125900-c90ca0c84f15/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= @@ -363,6 +383,7 @@ github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFo github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197 h1:qu90yDtRE5WEfRT5mn9v0Xz9RaopLguhbPwZKx4dHq8= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197/go.mod h1:0hhKrsUsoT7yvxwNGKa+TSYNA26DNWMqReeZEQq/9FI= github.com/shirou/gopsutil v0.0.0-20170406131756-e49a95f3d5f8/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= @@ -389,6 +410,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/src-d/gcfg v1.3.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8/go.mod h1:1WNBiOZtZQLpVAyu0iTduoJL9hEsMloAK5XWrtW0xdY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -407,13 +429,16 @@ github.com/tevino/abool v0.0.0-20170917061928-9b9efcf221b5/go.mod h1:f1SCnEOt6sc github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ulikunitz/xz v0.5.4/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/vmware/go-nfs-client v0.0.0-20190605212624-d43b92724c1b/go.mod h1:psQdhrCc+fimC/8/U+PboPiIMcdmKgRdAtcMnhXhjzI= github.com/vmware/govmomi v0.23.0/go.mod h1:Y+Wq4lst78L85Ge/F8+ORXIWiKYqaro1vhAulACy9Lc= github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728/go.mod h1:x9oS4Wk2s2u4tS29nEaDLdzvuHdB19CvSGJjPgkZJNk= github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa/go.mod h1:2rx5KE5FLD0HRfkkpyn8JwbVLBdhgeiOb2D2D9LLKM4= github.com/xanzy/go-gitlab v0.15.0/go.mod h1:8zdQa/ri1dfn8eS3Ir1SyfvOKlw7WBJ8DVThkpGiXrs= +github.com/xanzy/ssh-agent v0.2.0/go.mod h1:0NyE30eGUDliuLEHJgYte/zncp2zdTStcOnWhgSqHD8= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos= @@ -446,6 +471,7 @@ golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -483,8 +509,9 @@ golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200528225125-3c3fba18258b h1:IYiJPiJfzktmDAO1HQiwjMjwjlYKHAL7KzeD544RJPs= golang.org/x/net v0.0.0-20200528225125-3c3fba18258b/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 h1:lwlPPsmjDKK0J6eG6xDWd5XPehI0R024zxjDnw3esPA= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -496,6 +523,7 @@ golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -517,13 +545,18 @@ golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200724161237-0e2f3a69832c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -616,8 +649,12 @@ gopkg.in/olivere/elastic.v6 v6.2.17/go.mod h1:2cTT8Z+/LcArSWpCgvZqBgt3VOqXiy7v00 gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/spacemonkeygo/httpsig.v0 v0.0.0-20170228231032-6732593ec966/go.mod h1:KUilIqVZdvg7tsZSnGqOnw8jL2WVzcC0RHV/Av0km2U= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/src-d/go-billy.v4 v4.3.0/go.mod h1:tm33zBoOwxjYHZIE+OV8bxTWFMJLrconzFMd38aARFk= +gopkg.in/src-d/go-git-fixtures.v3 v3.1.1/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g= +gopkg.in/src-d/go-git.v4 v4.7.0/go.mod h1:CzbUWqMn4pvmvndg3gnh5iZFmSsbhyhUWdI0IQ60AQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/contrib/grpcplugins/action/plugin-kafka-publish/go.sum b/contrib/grpcplugins/action/plugin-kafka-publish/go.sum index 8038c2f075..75c520e6c8 100644 --- a/contrib/grpcplugins/action/plugin-kafka-publish/go.sum +++ b/contrib/grpcplugins/action/plugin-kafka-publish/go.sum @@ -32,12 +32,15 @@ github.com/Shopify/sarama v1.27.0 h1:tqo2zmyzPf1+gwTTwhI6W+EXDw4PVSczynpHKFtVAmo github.com/Shopify/sarama v1.27.0/go.mod h1:aCdj6ymI8uyPEux1JJ9gcaDT6cinjGhNCAhs54taSUo= github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= github.com/alecthomas/jsonschema v0.0.0-20200123075451-43663a393755/go.mod h1:Juc2PrI3wtNfUwptSvAIeNx+HrETwHQs6nf+TkOJlOA= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= github.com/andygrunwald/go-gerrit v0.0.0-20181207071854-19ef3e9332a4/go.mod h1:0iuRQp6WJ44ts+iihy5E/WlPqfg5RNeQxOmzRkxCdtk= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/aokoli/goutils v1.1.0 h1:jy4ghdcYvs5EIoGssZNslIASX5m+KNMfyyKvRQ0TEVE= github.com/aokoli/goutils v1.1.0/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= github.com/apache/thrift v0.12.0 h1:pODnxUFNcjP9UTLZGTdeh+j16A8lJbRvD3rOtrk/7bs= @@ -58,6 +61,7 @@ github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdn github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/buger/goterm v0.0.0-20170918171949-d443b9114f9c/go.mod h1:u9UyCz2eTrSGy6fbupqJ54eY5c4IC8gREQ1053dK12U= +github.com/buger/jsonparser v0.0.0-20180910192245-6acdf747ae99/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -87,7 +91,8 @@ github.com/docker/docker v1.13.1/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsv github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.3.2/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e/go.mod h1:56wL82FO0bfMU5RvfXoIwSOP2ggqqxT+tAfNEIyxuHw= -github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76/go.mod h1:KjxHHirfLaw19iGT70HvVjHQsL1vq1SRQB4yOsAfy2s= +github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= +github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-resiliency v1.2.0 h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUKorFR1Q= @@ -96,11 +101,13 @@ github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8 github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.10.0 h1:Gfh+GAJZOAoKZsIZeZbdn2JF10kN1XHNvjsvQK8gVkE= @@ -118,6 +125,7 @@ github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-ldap/ldap v3.0.2+incompatible/go.mod h1:qfd9rJvER9Q0/D/Sqn1DfHRoBp40uXYvFoEVrNEPqRc= @@ -153,6 +161,7 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= @@ -165,6 +174,7 @@ github.com/google/uuid v0.0.0-20170306145142-6a5e28554805/go.mod h1:TIyPZe4Mgqvf github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/gookit/color v1.3.2/go.mod h1:R3ogXq2B9rTbXoSHJ1HyUVAZ3poOJHpd9nQmyGZsfvQ= github.com/gophercloud/gophercloud v0.0.0-20190504011306-6f9faf57fddc/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorhill/cronexpr v0.0.0-20161205141322-d520615e531a/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA= @@ -230,8 +240,11 @@ github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf/go.mod h github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933/go.mod h1:AYdLvrSBFloDBNt7Y8xkQ6gmhCODGl8CPikjyIOnNzA= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jcmturner/gofork v1.0.0 h1:J7uCkflzTEhUZ64xqKnkDxq3kzc96ajM1Gli5ktUem8= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= +github.com/jfrog/gofrog v1.0.6/go.mod h1:HkDzg+tMNw23UryoOv0+LB94BzYcl6MCIoz8Tmlb+s8= +github.com/jfrog/jfrog-client-go v0.21.0/go.mod h1:0RYDrQKCIdJbx6pjopwtwXh4/PaEW9FqFc4b4ox8fl0= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= @@ -244,13 +257,17 @@ github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7V github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/keybase/go-crypto v0.0.0-20181127160227-255a5089e85a/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= github.com/keybase/go-keychain v0.0.0-20190828020956-aa639f275ae1/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/keybase/go.dbus v0.0.0-20190710215703-a33a09c8a604/go.mod h1:a8clEhrrGV/d76/f9r2I41BwANMihfZYV9C223vaxqE= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.10 h1:a/y8CglcM7gLGYmlbP/stPE5sR3hbhFRUjCBfd/0B3I= github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -289,6 +306,7 @@ github.com/mcuadros/go-defaults v0.0.0-20161116231230-e1c978be3307/go.mod h1:vl9 github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mholt/archiver v3.1.1+incompatible/go.mod h1:Dh2dOXnSdiLxRiPoVfIr/fI1TwETms9B8CTWfeh7ROU= +github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miscreant/miscreant.go v0.0.0-20200214223636-26d376326b75 h1:cUVxyR+UfmdEAZGJ8IiKld1O0dbGotEnkMolG5hfMSY= github.com/miscreant/miscreant.go v0.0.0-20200214223636-26d376326b75/go.mod h1:pBbZyGwC5i16IBkjVKoy/sznA8jPD/K9iedwe1ESE6w= @@ -323,7 +341,7 @@ github.com/ncw/swift v1.0.52/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/termbox-go v0.0.0-20190817171036-93860e161317/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= -github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= +github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20160621093029-daf2955e742c h1:1BS19mnpAe7Lm0etRs1uBVaki11WZ8fktvOQGipZPo4= @@ -352,6 +370,7 @@ github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaR github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c h1:MUyE44mTvnI5A0xrxIxaMqoWFzPfQvtE2IWUollMDMs= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.0 h1:Keo9qb7iRJs2voHvunFtuuYFsbWeOBh8/P9v/kVMFtw= github.com/pelletier/go-toml v1.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs= @@ -361,6 +380,7 @@ github.com/phayes/permbits v0.0.0-20190612203442-39d7c581d2ee/go.mod h1:3uODdxMg github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.5.2+incompatible h1:WCjObylUIOlKy/+7Abdn34TLIkXiA4UWUMhxq9m9ZXI= github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/browser v0.0.0-20170505125900-c90ca0c84f15/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= @@ -413,6 +433,7 @@ github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFo github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197 h1:qu90yDtRE5WEfRT5mn9v0Xz9RaopLguhbPwZKx4dHq8= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197/go.mod h1:0hhKrsUsoT7yvxwNGKa+TSYNA26DNWMqReeZEQq/9FI= github.com/shirou/gopsutil v0.0.0-20170406131756-e49a95f3d5f8/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= @@ -440,6 +461,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/src-d/gcfg v1.3.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8/go.mod h1:1WNBiOZtZQLpVAyu0iTduoJL9hEsMloAK5XWrtW0xdY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -458,13 +480,16 @@ github.com/tevino/abool v0.0.0-20170917061928-9b9efcf221b5/go.mod h1:f1SCnEOt6sc github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ulikunitz/xz v0.5.4/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/vmware/go-nfs-client v0.0.0-20190605212624-d43b92724c1b/go.mod h1:psQdhrCc+fimC/8/U+PboPiIMcdmKgRdAtcMnhXhjzI= github.com/vmware/govmomi v0.23.0/go.mod h1:Y+Wq4lst78L85Ge/F8+ORXIWiKYqaro1vhAulACy9Lc= github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728/go.mod h1:x9oS4Wk2s2u4tS29nEaDLdzvuHdB19CvSGJjPgkZJNk= github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa/go.mod h1:2rx5KE5FLD0HRfkkpyn8JwbVLBdhgeiOb2D2D9LLKM4= github.com/xanzy/go-gitlab v0.15.0/go.mod h1:8zdQa/ri1dfn8eS3Ir1SyfvOKlw7WBJ8DVThkpGiXrs= +github.com/xanzy/ssh-agent v0.2.0/go.mod h1:0NyE30eGUDliuLEHJgYte/zncp2zdTStcOnWhgSqHD8= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos= @@ -501,8 +526,9 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 h1:DZhuSZLsGlFL4CmhA8BcRA0mnthyA/nZ00AqCUo7vHg= golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9 h1:sYNJzB4J8toYPQTM6pAkcmBRgw9SnQKP9oXCHfgy604= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -540,8 +566,9 @@ golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200528225125-3c3fba18258b h1:IYiJPiJfzktmDAO1HQiwjMjwjlYKHAL7KzeD544RJPs= golang.org/x/net v0.0.0-20200528225125-3c3fba18258b/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 h1:lwlPPsmjDKK0J6eG6xDWd5XPehI0R024zxjDnw3esPA= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -554,6 +581,7 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEha golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -575,13 +603,19 @@ golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200724161237-0e2f3a69832c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -684,10 +718,14 @@ gopkg.in/spacemonkeygo/httpsig.v0 v0.0.0-20170228231032-6732593ec966 h1:8kepDsMT gopkg.in/spacemonkeygo/httpsig.v0 v0.0.0-20170228231032-6732593ec966/go.mod h1:KUilIqVZdvg7tsZSnGqOnw8jL2WVzcC0RHV/Av0km2U= gopkg.in/square/go-jose.v2 v2.3.1 h1:SK5KegNXmKmqE342YYN2qPHEnUYeoMiXXl1poUlI+o4= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/src-d/go-billy.v4 v4.3.0/go.mod h1:tm33zBoOwxjYHZIE+OV8bxTWFMJLrconzFMd38aARFk= +gopkg.in/src-d/go-git-fixtures.v3 v3.1.1/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g= +gopkg.in/src-d/go-git.v4 v4.7.0/go.mod h1:CzbUWqMn4pvmvndg3gnh5iZFmSsbhyhUWdI0IQ60AQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/urfave/cli.v1 v1.20.0 h1:NdAVW6RYxDif9DhDHaAortIu956m2c0v+09AZBPTbE0= gopkg.in/urfave/cli.v1 v1.20.0/go.mod h1:vuBzUtMdQeixQj8LVd+/98pzhxNGQoyuPBlsXHOQNO0= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/contrib/grpcplugins/action/plugin-marathon/go.sum b/contrib/grpcplugins/action/plugin-marathon/go.sum index a452ab3e24..2f20928c51 100644 --- a/contrib/grpcplugins/action/plugin-marathon/go.sum +++ b/contrib/grpcplugins/action/plugin-marathon/go.sum @@ -29,12 +29,15 @@ github.com/SSSaaS/sssa-golang v0.0.0-20170502204618-d37d7782d752/go.mod h1:PbJ8S github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/sarama v1.27.0/go.mod h1:aCdj6ymI8uyPEux1JJ9gcaDT6cinjGhNCAhs54taSUo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= github.com/alecthomas/jsonschema v0.0.0-20200123075451-43663a393755/go.mod h1:Juc2PrI3wtNfUwptSvAIeNx+HrETwHQs6nf+TkOJlOA= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= github.com/andygrunwald/go-gerrit v0.0.0-20181207071854-19ef3e9332a4/go.mod h1:0iuRQp6WJ44ts+iihy5E/WlPqfg5RNeQxOmzRkxCdtk= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/aokoli/goutils v1.1.0 h1:jy4ghdcYvs5EIoGssZNslIASX5m+KNMfyyKvRQ0TEVE= github.com/aokoli/goutils v1.1.0/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= github.com/apache/thrift v0.12.0 h1:pODnxUFNcjP9UTLZGTdeh+j16A8lJbRvD3rOtrk/7bs= @@ -53,6 +56,7 @@ github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdn github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/buger/goterm v0.0.0-20170918171949-d443b9114f9c/go.mod h1:u9UyCz2eTrSGy6fbupqJ54eY5c4IC8gREQ1053dK12U= +github.com/buger/jsonparser v0.0.0-20180910192245-6acdf747ae99/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -83,18 +87,21 @@ github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5Xh github.com/docker/go-units v0.3.2/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e h1:rMOGp6HPeMHbdLrZkX2nD+94uqDunc27tXVuS+ey4mQ= github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e/go.mod h1:56wL82FO0bfMU5RvfXoIwSOP2ggqqxT+tAfNEIyxuHw= -github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76/go.mod h1:KjxHHirfLaw19iGT70HvVjHQsL1vq1SRQB4yOsAfy2s= +github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= +github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-resiliency v1.2.0 h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUKorFR1Q= github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.10.0/go.mod h1:ui7WezCLWMWxVWr1GETZY3smRy0G4KWq9vcPtJmFl7Y= github.com/fsamin/go-dump v1.0.9 h1:3MAneAJLnGfKTJtFEAdgrD+QqqK2Hwj7EJUQMQZcDls= @@ -110,6 +117,7 @@ github.com/gambol99/go-marathon v0.7.1/go.mod h1:GLyXJD41gBO/NPKVPGQbhyyC06eugGy github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gorp/gorp v2.0.0+incompatible h1:dIQPsBtl6/H1MjVseWuWPXa7ET4p6Dve4j3Hg+UjqYw= github.com/go-gorp/gorp v2.0.0+incompatible/go.mod h1:7IfkAQnO7jfT/9IQ3R9wL1dFhukN6aQxzKTHnkxzA/E= @@ -145,6 +153,7 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= @@ -158,6 +167,7 @@ github.com/google/uuid v0.0.0-20170306145142-6a5e28554805/go.mod h1:TIyPZe4Mgqvf github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/gookit/color v1.3.2/go.mod h1:R3ogXq2B9rTbXoSHJ1HyUVAZ3poOJHpd9nQmyGZsfvQ= github.com/gophercloud/gophercloud v0.0.0-20190504011306-6f9faf57fddc/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorhill/cronexpr v0.0.0-20161205141322-d520615e531a/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA= @@ -220,7 +230,10 @@ github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf/go.mod h github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933/go.mod h1:AYdLvrSBFloDBNt7Y8xkQ6gmhCODGl8CPikjyIOnNzA= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= +github.com/jfrog/gofrog v1.0.6/go.mod h1:HkDzg+tMNw23UryoOv0+LB94BzYcl6MCIoz8Tmlb+s8= +github.com/jfrog/jfrog-client-go v0.21.0/go.mod h1:0RYDrQKCIdJbx6pjopwtwXh4/PaEW9FqFc4b4ox8fl0= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jordan-wright/email v4.0.1-0.20200917010138-e1c00e156980+incompatible/go.mod h1:1c7szIrayyPPB/987hsnvNzLushdWf4o/79s3P08L8A= @@ -232,12 +245,16 @@ github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7V github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/keybase/go-crypto v0.0.0-20181127160227-255a5089e85a/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= github.com/keybase/go-keychain v0.0.0-20190828020956-aa639f275ae1/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/keybase/go.dbus v0.0.0-20190710215703-a33a09c8a604/go.mod h1:a8clEhrrGV/d76/f9r2I41BwANMihfZYV9C223vaxqE= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -274,6 +291,7 @@ github.com/mcuadros/go-defaults v0.0.0-20161116231230-e1c978be3307/go.mod h1:vl9 github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mholt/archiver v3.1.1+incompatible/go.mod h1:Dh2dOXnSdiLxRiPoVfIr/fI1TwETms9B8CTWfeh7ROU= +github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miscreant/miscreant.go v0.0.0-20200214223636-26d376326b75/go.mod h1:pBbZyGwC5i16IBkjVKoy/sznA8jPD/K9iedwe1ESE6w= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -305,7 +323,7 @@ github.com/ncw/swift v1.0.52/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/termbox-go v0.0.0-20190817171036-93860e161317/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= -github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= +github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20160621093029-daf2955e742c h1:1BS19mnpAe7Lm0etRs1uBVaki11WZ8fktvOQGipZPo4= @@ -331,12 +349,14 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c h1:MUyE44mTvnI5A0xrxIxaMqoWFzPfQvtE2IWUollMDMs= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.0 h1:Keo9qb7iRJs2voHvunFtuuYFsbWeOBh8/P9v/kVMFtw= github.com/pelletier/go-toml v1.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/browser v0.0.0-20170505125900-c90ca0c84f15/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= @@ -387,6 +407,7 @@ github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFo github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197 h1:qu90yDtRE5WEfRT5mn9v0Xz9RaopLguhbPwZKx4dHq8= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197/go.mod h1:0hhKrsUsoT7yvxwNGKa+TSYNA26DNWMqReeZEQq/9FI= github.com/shirou/gopsutil v0.0.0-20170406131756-e49a95f3d5f8/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= @@ -414,6 +435,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/src-d/gcfg v1.3.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8/go.mod h1:1WNBiOZtZQLpVAyu0iTduoJL9hEsMloAK5XWrtW0xdY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -432,13 +454,16 @@ github.com/tevino/abool v0.0.0-20170917061928-9b9efcf221b5/go.mod h1:f1SCnEOt6sc github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ulikunitz/xz v0.5.4/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/vmware/go-nfs-client v0.0.0-20190605212624-d43b92724c1b/go.mod h1:psQdhrCc+fimC/8/U+PboPiIMcdmKgRdAtcMnhXhjzI= github.com/vmware/govmomi v0.23.0/go.mod h1:Y+Wq4lst78L85Ge/F8+ORXIWiKYqaro1vhAulACy9Lc= github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728/go.mod h1:x9oS4Wk2s2u4tS29nEaDLdzvuHdB19CvSGJjPgkZJNk= github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa/go.mod h1:2rx5KE5FLD0HRfkkpyn8JwbVLBdhgeiOb2D2D9LLKM4= github.com/xanzy/go-gitlab v0.15.0/go.mod h1:8zdQa/ri1dfn8eS3Ir1SyfvOKlw7WBJ8DVThkpGiXrs= +github.com/xanzy/ssh-agent v0.2.0/go.mod h1:0NyE30eGUDliuLEHJgYte/zncp2zdTStcOnWhgSqHD8= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c= @@ -477,8 +502,9 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 h1:DZhuSZLsGlFL4CmhA8BcRA0mnthyA/nZ00AqCUo7vHg= golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9 h1:sYNJzB4J8toYPQTM6pAkcmBRgw9SnQKP9oXCHfgy604= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -516,8 +542,9 @@ golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200528225125-3c3fba18258b h1:IYiJPiJfzktmDAO1HQiwjMjwjlYKHAL7KzeD544RJPs= golang.org/x/net v0.0.0-20200528225125-3c3fba18258b/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 h1:lwlPPsmjDKK0J6eG6xDWd5XPehI0R024zxjDnw3esPA= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -530,6 +557,7 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEha golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -551,13 +579,19 @@ golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200724161237-0e2f3a69832c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -652,8 +686,12 @@ gopkg.in/olivere/elastic.v6 v6.2.17/go.mod h1:2cTT8Z+/LcArSWpCgvZqBgt3VOqXiy7v00 gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/spacemonkeygo/httpsig.v0 v0.0.0-20170228231032-6732593ec966/go.mod h1:KUilIqVZdvg7tsZSnGqOnw8jL2WVzcC0RHV/Av0km2U= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/src-d/go-billy.v4 v4.3.0/go.mod h1:tm33zBoOwxjYHZIE+OV8bxTWFMJLrconzFMd38aARFk= +gopkg.in/src-d/go-git-fixtures.v3 v3.1.1/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g= +gopkg.in/src-d/go-git.v4 v4.7.0/go.mod h1:CzbUWqMn4pvmvndg3gnh5iZFmSsbhyhUWdI0IQ60AQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/contrib/grpcplugins/action/plugin-npm-audit-parser/go.sum b/contrib/grpcplugins/action/plugin-npm-audit-parser/go.sum index a042c21bec..9308d113b0 100644 --- a/contrib/grpcplugins/action/plugin-npm-audit-parser/go.sum +++ b/contrib/grpcplugins/action/plugin-npm-audit-parser/go.sum @@ -26,12 +26,15 @@ github.com/SSSaaS/sssa-golang v0.0.0-20170502204618-d37d7782d752/go.mod h1:PbJ8S github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/sarama v1.27.0/go.mod h1:aCdj6ymI8uyPEux1JJ9gcaDT6cinjGhNCAhs54taSUo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= github.com/alecthomas/jsonschema v0.0.0-20200123075451-43663a393755/go.mod h1:Juc2PrI3wtNfUwptSvAIeNx+HrETwHQs6nf+TkOJlOA= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= github.com/andygrunwald/go-gerrit v0.0.0-20181207071854-19ef3e9332a4/go.mod h1:0iuRQp6WJ44ts+iihy5E/WlPqfg5RNeQxOmzRkxCdtk= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/aokoli/goutils v1.1.0 h1:jy4ghdcYvs5EIoGssZNslIASX5m+KNMfyyKvRQ0TEVE= github.com/aokoli/goutils v1.1.0/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= @@ -48,6 +51,7 @@ github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdn github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/buger/goterm v0.0.0-20170918171949-d443b9114f9c/go.mod h1:u9UyCz2eTrSGy6fbupqJ54eY5c4IC8gREQ1053dK12U= +github.com/buger/jsonparser v0.0.0-20180910192245-6acdf747ae99/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -76,18 +80,21 @@ github.com/docker/docker v1.13.1/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsv github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.3.2/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e/go.mod h1:56wL82FO0bfMU5RvfXoIwSOP2ggqqxT+tAfNEIyxuHw= -github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76/go.mod h1:KjxHHirfLaw19iGT70HvVjHQsL1vq1SRQB4yOsAfy2s= +github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= +github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-resiliency v1.2.0 h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUKorFR1Q= github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.10.0/go.mod h1:ui7WezCLWMWxVWr1GETZY3smRy0G4KWq9vcPtJmFl7Y= github.com/fsamin/go-dump v1.0.9 h1:3MAneAJLnGfKTJtFEAdgrD+QqqK2Hwj7EJUQMQZcDls= @@ -101,6 +108,7 @@ github.com/gambol99/go-marathon v0.0.0-20170922093320-ec4a50170df7/go.mod h1:GLy github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gorp/gorp v2.0.0+incompatible h1:dIQPsBtl6/H1MjVseWuWPXa7ET4p6Dve4j3Hg+UjqYw= github.com/go-gorp/gorp v2.0.0+incompatible/go.mod h1:7IfkAQnO7jfT/9IQ3R9wL1dFhukN6aQxzKTHnkxzA/E= @@ -136,6 +144,7 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= @@ -148,6 +157,7 @@ github.com/google/uuid v0.0.0-20170306145142-6a5e28554805/go.mod h1:TIyPZe4Mgqvf github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/gookit/color v1.3.2/go.mod h1:R3ogXq2B9rTbXoSHJ1HyUVAZ3poOJHpd9nQmyGZsfvQ= github.com/gophercloud/gophercloud v0.0.0-20190504011306-6f9faf57fddc/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorhill/cronexpr v0.0.0-20161205141322-d520615e531a/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA= @@ -206,7 +216,10 @@ github.com/imdario/mergo v0.0.0-20180119215619-163f41321a19/go.mod h1:2EnlNZ0dea github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf/go.mod h1:hyb9oH7vZsitZCiBt0ZvifOrB+qc8PS5IiilCIb87rg= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933/go.mod h1:AYdLvrSBFloDBNt7Y8xkQ6gmhCODGl8CPikjyIOnNzA= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= +github.com/jfrog/gofrog v1.0.6/go.mod h1:HkDzg+tMNw23UryoOv0+LB94BzYcl6MCIoz8Tmlb+s8= +github.com/jfrog/jfrog-client-go v0.21.0/go.mod h1:0RYDrQKCIdJbx6pjopwtwXh4/PaEW9FqFc4b4ox8fl0= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jordan-wright/email v4.0.1-0.20200917010138-e1c00e156980+incompatible/go.mod h1:1c7szIrayyPPB/987hsnvNzLushdWf4o/79s3P08L8A= @@ -217,12 +230,16 @@ github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfV github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/keybase/go-crypto v0.0.0-20181127160227-255a5089e85a/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= github.com/keybase/go-keychain v0.0.0-20190828020956-aa639f275ae1/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/keybase/go.dbus v0.0.0-20190710215703-a33a09c8a604/go.mod h1:a8clEhrrGV/d76/f9r2I41BwANMihfZYV9C223vaxqE= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -256,6 +273,7 @@ github.com/mcuadros/go-defaults v0.0.0-20161116231230-e1c978be3307/go.mod h1:vl9 github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mholt/archiver v3.1.1+incompatible/go.mod h1:Dh2dOXnSdiLxRiPoVfIr/fI1TwETms9B8CTWfeh7ROU= +github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miscreant/miscreant.go v0.0.0-20200214223636-26d376326b75/go.mod h1:pBbZyGwC5i16IBkjVKoy/sznA8jPD/K9iedwe1ESE6w= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -287,7 +305,7 @@ github.com/ncw/swift v1.0.52/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/termbox-go v0.0.0-20190817171036-93860e161317/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= -github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= +github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20160621093029-daf2955e742c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= @@ -311,12 +329,14 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c h1:MUyE44mTvnI5A0xrxIxaMqoWFzPfQvtE2IWUollMDMs= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.0 h1:Keo9qb7iRJs2voHvunFtuuYFsbWeOBh8/P9v/kVMFtw= github.com/pelletier/go-toml v1.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/browser v0.0.0-20170505125900-c90ca0c84f15/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= @@ -363,6 +383,7 @@ github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFo github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197 h1:qu90yDtRE5WEfRT5mn9v0Xz9RaopLguhbPwZKx4dHq8= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197/go.mod h1:0hhKrsUsoT7yvxwNGKa+TSYNA26DNWMqReeZEQq/9FI= github.com/shirou/gopsutil v0.0.0-20170406131756-e49a95f3d5f8/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= @@ -389,6 +410,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/src-d/gcfg v1.3.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8/go.mod h1:1WNBiOZtZQLpVAyu0iTduoJL9hEsMloAK5XWrtW0xdY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -407,13 +429,16 @@ github.com/tevino/abool v0.0.0-20170917061928-9b9efcf221b5/go.mod h1:f1SCnEOt6sc github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ulikunitz/xz v0.5.4/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/vmware/go-nfs-client v0.0.0-20190605212624-d43b92724c1b/go.mod h1:psQdhrCc+fimC/8/U+PboPiIMcdmKgRdAtcMnhXhjzI= github.com/vmware/govmomi v0.23.0/go.mod h1:Y+Wq4lst78L85Ge/F8+ORXIWiKYqaro1vhAulACy9Lc= github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728/go.mod h1:x9oS4Wk2s2u4tS29nEaDLdzvuHdB19CvSGJjPgkZJNk= github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa/go.mod h1:2rx5KE5FLD0HRfkkpyn8JwbVLBdhgeiOb2D2D9LLKM4= github.com/xanzy/go-gitlab v0.15.0/go.mod h1:8zdQa/ri1dfn8eS3Ir1SyfvOKlw7WBJ8DVThkpGiXrs= +github.com/xanzy/ssh-agent v0.2.0/go.mod h1:0NyE30eGUDliuLEHJgYte/zncp2zdTStcOnWhgSqHD8= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos= @@ -446,6 +471,7 @@ golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -483,8 +509,9 @@ golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200528225125-3c3fba18258b h1:IYiJPiJfzktmDAO1HQiwjMjwjlYKHAL7KzeD544RJPs= golang.org/x/net v0.0.0-20200528225125-3c3fba18258b/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 h1:lwlPPsmjDKK0J6eG6xDWd5XPehI0R024zxjDnw3esPA= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -496,6 +523,7 @@ golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -517,13 +545,18 @@ golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200724161237-0e2f3a69832c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -616,8 +649,12 @@ gopkg.in/olivere/elastic.v6 v6.2.17/go.mod h1:2cTT8Z+/LcArSWpCgvZqBgt3VOqXiy7v00 gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/spacemonkeygo/httpsig.v0 v0.0.0-20170228231032-6732593ec966/go.mod h1:KUilIqVZdvg7tsZSnGqOnw8jL2WVzcC0RHV/Av0km2U= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/src-d/go-billy.v4 v4.3.0/go.mod h1:tm33zBoOwxjYHZIE+OV8bxTWFMJLrconzFMd38aARFk= +gopkg.in/src-d/go-git-fixtures.v3 v3.1.1/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g= +gopkg.in/src-d/go-git.v4 v4.7.0/go.mod h1:CzbUWqMn4pvmvndg3gnh5iZFmSsbhyhUWdI0IQ60AQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/contrib/grpcplugins/action/plugin-ssh-cmd/go.mod b/contrib/grpcplugins/action/plugin-ssh-cmd/go.mod index 495c1d407a..e14a7b9467 100644 --- a/contrib/grpcplugins/action/plugin-ssh-cmd/go.mod +++ b/contrib/grpcplugins/action/plugin-ssh-cmd/go.mod @@ -7,5 +7,5 @@ go 1.16 require ( github.com/golang/protobuf v1.5.0 github.com/ovh/cds v0.0.0-00010101000000-000000000000 - golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 + golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9 ) diff --git a/contrib/grpcplugins/action/plugin-ssh-cmd/go.sum b/contrib/grpcplugins/action/plugin-ssh-cmd/go.sum index ec4adb719b..e0b00150dc 100644 --- a/contrib/grpcplugins/action/plugin-ssh-cmd/go.sum +++ b/contrib/grpcplugins/action/plugin-ssh-cmd/go.sum @@ -26,12 +26,15 @@ github.com/SSSaaS/sssa-golang v0.0.0-20170502204618-d37d7782d752/go.mod h1:PbJ8S github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/sarama v1.27.0/go.mod h1:aCdj6ymI8uyPEux1JJ9gcaDT6cinjGhNCAhs54taSUo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= github.com/alecthomas/jsonschema v0.0.0-20200123075451-43663a393755/go.mod h1:Juc2PrI3wtNfUwptSvAIeNx+HrETwHQs6nf+TkOJlOA= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= github.com/andygrunwald/go-gerrit v0.0.0-20181207071854-19ef3e9332a4/go.mod h1:0iuRQp6WJ44ts+iihy5E/WlPqfg5RNeQxOmzRkxCdtk= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/aokoli/goutils v1.1.0 h1:jy4ghdcYvs5EIoGssZNslIASX5m+KNMfyyKvRQ0TEVE= github.com/aokoli/goutils v1.1.0/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= @@ -48,6 +51,7 @@ github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdn github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/buger/goterm v0.0.0-20170918171949-d443b9114f9c/go.mod h1:u9UyCz2eTrSGy6fbupqJ54eY5c4IC8gREQ1053dK12U= +github.com/buger/jsonparser v0.0.0-20180910192245-6acdf747ae99/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -76,18 +80,21 @@ github.com/docker/docker v1.13.1/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsv github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.3.2/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e/go.mod h1:56wL82FO0bfMU5RvfXoIwSOP2ggqqxT+tAfNEIyxuHw= -github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76/go.mod h1:KjxHHirfLaw19iGT70HvVjHQsL1vq1SRQB4yOsAfy2s= +github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= +github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-resiliency v1.2.0 h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUKorFR1Q= github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.10.0/go.mod h1:ui7WezCLWMWxVWr1GETZY3smRy0G4KWq9vcPtJmFl7Y= github.com/fsamin/go-dump v1.0.9 h1:3MAneAJLnGfKTJtFEAdgrD+QqqK2Hwj7EJUQMQZcDls= @@ -101,6 +108,7 @@ github.com/gambol99/go-marathon v0.0.0-20170922093320-ec4a50170df7/go.mod h1:GLy github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gorp/gorp v2.0.0+incompatible h1:dIQPsBtl6/H1MjVseWuWPXa7ET4p6Dve4j3Hg+UjqYw= github.com/go-gorp/gorp v2.0.0+incompatible/go.mod h1:7IfkAQnO7jfT/9IQ3R9wL1dFhukN6aQxzKTHnkxzA/E= @@ -136,6 +144,7 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= @@ -148,6 +157,7 @@ github.com/google/uuid v0.0.0-20170306145142-6a5e28554805/go.mod h1:TIyPZe4Mgqvf github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/gookit/color v1.3.2/go.mod h1:R3ogXq2B9rTbXoSHJ1HyUVAZ3poOJHpd9nQmyGZsfvQ= github.com/gophercloud/gophercloud v0.0.0-20190504011306-6f9faf57fddc/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorhill/cronexpr v0.0.0-20161205141322-d520615e531a/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA= @@ -206,7 +216,10 @@ github.com/imdario/mergo v0.0.0-20180119215619-163f41321a19/go.mod h1:2EnlNZ0dea github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf/go.mod h1:hyb9oH7vZsitZCiBt0ZvifOrB+qc8PS5IiilCIb87rg= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933/go.mod h1:AYdLvrSBFloDBNt7Y8xkQ6gmhCODGl8CPikjyIOnNzA= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= +github.com/jfrog/gofrog v1.0.6/go.mod h1:HkDzg+tMNw23UryoOv0+LB94BzYcl6MCIoz8Tmlb+s8= +github.com/jfrog/jfrog-client-go v0.21.0/go.mod h1:0RYDrQKCIdJbx6pjopwtwXh4/PaEW9FqFc4b4ox8fl0= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jordan-wright/email v4.0.1-0.20200917010138-e1c00e156980+incompatible/go.mod h1:1c7szIrayyPPB/987hsnvNzLushdWf4o/79s3P08L8A= @@ -217,12 +230,16 @@ github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfV github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/keybase/go-crypto v0.0.0-20181127160227-255a5089e85a/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= github.com/keybase/go-keychain v0.0.0-20190828020956-aa639f275ae1/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/keybase/go.dbus v0.0.0-20190710215703-a33a09c8a604/go.mod h1:a8clEhrrGV/d76/f9r2I41BwANMihfZYV9C223vaxqE= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -256,6 +273,7 @@ github.com/mcuadros/go-defaults v0.0.0-20161116231230-e1c978be3307/go.mod h1:vl9 github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mholt/archiver v3.1.1+incompatible/go.mod h1:Dh2dOXnSdiLxRiPoVfIr/fI1TwETms9B8CTWfeh7ROU= +github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miscreant/miscreant.go v0.0.0-20200214223636-26d376326b75/go.mod h1:pBbZyGwC5i16IBkjVKoy/sznA8jPD/K9iedwe1ESE6w= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -287,7 +305,7 @@ github.com/ncw/swift v1.0.52/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/termbox-go v0.0.0-20190817171036-93860e161317/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= -github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= +github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20160621093029-daf2955e742c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= @@ -311,12 +329,14 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c h1:MUyE44mTvnI5A0xrxIxaMqoWFzPfQvtE2IWUollMDMs= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.0 h1:Keo9qb7iRJs2voHvunFtuuYFsbWeOBh8/P9v/kVMFtw= github.com/pelletier/go-toml v1.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/browser v0.0.0-20170505125900-c90ca0c84f15/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= @@ -363,6 +383,7 @@ github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFo github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197 h1:qu90yDtRE5WEfRT5mn9v0Xz9RaopLguhbPwZKx4dHq8= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197/go.mod h1:0hhKrsUsoT7yvxwNGKa+TSYNA26DNWMqReeZEQq/9FI= github.com/shirou/gopsutil v0.0.0-20170406131756-e49a95f3d5f8/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= @@ -389,6 +410,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/src-d/gcfg v1.3.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8/go.mod h1:1WNBiOZtZQLpVAyu0iTduoJL9hEsMloAK5XWrtW0xdY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -407,13 +429,16 @@ github.com/tevino/abool v0.0.0-20170917061928-9b9efcf221b5/go.mod h1:f1SCnEOt6sc github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ulikunitz/xz v0.5.4/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/vmware/go-nfs-client v0.0.0-20190605212624-d43b92724c1b/go.mod h1:psQdhrCc+fimC/8/U+PboPiIMcdmKgRdAtcMnhXhjzI= github.com/vmware/govmomi v0.23.0/go.mod h1:Y+Wq4lst78L85Ge/F8+ORXIWiKYqaro1vhAulACy9Lc= github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728/go.mod h1:x9oS4Wk2s2u4tS29nEaDLdzvuHdB19CvSGJjPgkZJNk= github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa/go.mod h1:2rx5KE5FLD0HRfkkpyn8JwbVLBdhgeiOb2D2D9LLKM4= github.com/xanzy/go-gitlab v0.15.0/go.mod h1:8zdQa/ri1dfn8eS3Ir1SyfvOKlw7WBJ8DVThkpGiXrs= +github.com/xanzy/ssh-agent v0.2.0/go.mod h1:0NyE30eGUDliuLEHJgYte/zncp2zdTStcOnWhgSqHD8= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos= @@ -445,8 +470,9 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 h1:DZhuSZLsGlFL4CmhA8BcRA0mnthyA/nZ00AqCUo7vHg= golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9 h1:sYNJzB4J8toYPQTM6pAkcmBRgw9SnQKP9oXCHfgy604= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -484,8 +510,9 @@ golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200528225125-3c3fba18258b h1:IYiJPiJfzktmDAO1HQiwjMjwjlYKHAL7KzeD544RJPs= golang.org/x/net v0.0.0-20200528225125-3c3fba18258b/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 h1:lwlPPsmjDKK0J6eG6xDWd5XPehI0R024zxjDnw3esPA= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -497,6 +524,7 @@ golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -518,13 +546,19 @@ golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200724161237-0e2f3a69832c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -617,8 +651,12 @@ gopkg.in/olivere/elastic.v6 v6.2.17/go.mod h1:2cTT8Z+/LcArSWpCgvZqBgt3VOqXiy7v00 gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/spacemonkeygo/httpsig.v0 v0.0.0-20170228231032-6732593ec966/go.mod h1:KUilIqVZdvg7tsZSnGqOnw8jL2WVzcC0RHV/Av0km2U= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/src-d/go-billy.v4 v4.3.0/go.mod h1:tm33zBoOwxjYHZIE+OV8bxTWFMJLrconzFMd38aARFk= +gopkg.in/src-d/go-git-fixtures.v3 v3.1.1/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g= +gopkg.in/src-d/go-git.v4 v4.7.0/go.mod h1:CzbUWqMn4pvmvndg3gnh5iZFmSsbhyhUWdI0IQ60AQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/contrib/grpcplugins/action/plugin-tmpl/go.sum b/contrib/grpcplugins/action/plugin-tmpl/go.sum index a042c21bec..9308d113b0 100644 --- a/contrib/grpcplugins/action/plugin-tmpl/go.sum +++ b/contrib/grpcplugins/action/plugin-tmpl/go.sum @@ -26,12 +26,15 @@ github.com/SSSaaS/sssa-golang v0.0.0-20170502204618-d37d7782d752/go.mod h1:PbJ8S github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/sarama v1.27.0/go.mod h1:aCdj6ymI8uyPEux1JJ9gcaDT6cinjGhNCAhs54taSUo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= github.com/alecthomas/jsonschema v0.0.0-20200123075451-43663a393755/go.mod h1:Juc2PrI3wtNfUwptSvAIeNx+HrETwHQs6nf+TkOJlOA= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= github.com/andygrunwald/go-gerrit v0.0.0-20181207071854-19ef3e9332a4/go.mod h1:0iuRQp6WJ44ts+iihy5E/WlPqfg5RNeQxOmzRkxCdtk= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/aokoli/goutils v1.1.0 h1:jy4ghdcYvs5EIoGssZNslIASX5m+KNMfyyKvRQ0TEVE= github.com/aokoli/goutils v1.1.0/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= @@ -48,6 +51,7 @@ github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdn github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/buger/goterm v0.0.0-20170918171949-d443b9114f9c/go.mod h1:u9UyCz2eTrSGy6fbupqJ54eY5c4IC8gREQ1053dK12U= +github.com/buger/jsonparser v0.0.0-20180910192245-6acdf747ae99/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -76,18 +80,21 @@ github.com/docker/docker v1.13.1/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsv github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.3.2/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e/go.mod h1:56wL82FO0bfMU5RvfXoIwSOP2ggqqxT+tAfNEIyxuHw= -github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76/go.mod h1:KjxHHirfLaw19iGT70HvVjHQsL1vq1SRQB4yOsAfy2s= +github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= +github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-resiliency v1.2.0 h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUKorFR1Q= github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.10.0/go.mod h1:ui7WezCLWMWxVWr1GETZY3smRy0G4KWq9vcPtJmFl7Y= github.com/fsamin/go-dump v1.0.9 h1:3MAneAJLnGfKTJtFEAdgrD+QqqK2Hwj7EJUQMQZcDls= @@ -101,6 +108,7 @@ github.com/gambol99/go-marathon v0.0.0-20170922093320-ec4a50170df7/go.mod h1:GLy github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gorp/gorp v2.0.0+incompatible h1:dIQPsBtl6/H1MjVseWuWPXa7ET4p6Dve4j3Hg+UjqYw= github.com/go-gorp/gorp v2.0.0+incompatible/go.mod h1:7IfkAQnO7jfT/9IQ3R9wL1dFhukN6aQxzKTHnkxzA/E= @@ -136,6 +144,7 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= @@ -148,6 +157,7 @@ github.com/google/uuid v0.0.0-20170306145142-6a5e28554805/go.mod h1:TIyPZe4Mgqvf github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/gookit/color v1.3.2/go.mod h1:R3ogXq2B9rTbXoSHJ1HyUVAZ3poOJHpd9nQmyGZsfvQ= github.com/gophercloud/gophercloud v0.0.0-20190504011306-6f9faf57fddc/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorhill/cronexpr v0.0.0-20161205141322-d520615e531a/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA= @@ -206,7 +216,10 @@ github.com/imdario/mergo v0.0.0-20180119215619-163f41321a19/go.mod h1:2EnlNZ0dea github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf/go.mod h1:hyb9oH7vZsitZCiBt0ZvifOrB+qc8PS5IiilCIb87rg= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933/go.mod h1:AYdLvrSBFloDBNt7Y8xkQ6gmhCODGl8CPikjyIOnNzA= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= +github.com/jfrog/gofrog v1.0.6/go.mod h1:HkDzg+tMNw23UryoOv0+LB94BzYcl6MCIoz8Tmlb+s8= +github.com/jfrog/jfrog-client-go v0.21.0/go.mod h1:0RYDrQKCIdJbx6pjopwtwXh4/PaEW9FqFc4b4ox8fl0= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jordan-wright/email v4.0.1-0.20200917010138-e1c00e156980+incompatible/go.mod h1:1c7szIrayyPPB/987hsnvNzLushdWf4o/79s3P08L8A= @@ -217,12 +230,16 @@ github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfV github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/keybase/go-crypto v0.0.0-20181127160227-255a5089e85a/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= github.com/keybase/go-keychain v0.0.0-20190828020956-aa639f275ae1/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/keybase/go.dbus v0.0.0-20190710215703-a33a09c8a604/go.mod h1:a8clEhrrGV/d76/f9r2I41BwANMihfZYV9C223vaxqE= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -256,6 +273,7 @@ github.com/mcuadros/go-defaults v0.0.0-20161116231230-e1c978be3307/go.mod h1:vl9 github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mholt/archiver v3.1.1+incompatible/go.mod h1:Dh2dOXnSdiLxRiPoVfIr/fI1TwETms9B8CTWfeh7ROU= +github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miscreant/miscreant.go v0.0.0-20200214223636-26d376326b75/go.mod h1:pBbZyGwC5i16IBkjVKoy/sznA8jPD/K9iedwe1ESE6w= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -287,7 +305,7 @@ github.com/ncw/swift v1.0.52/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/termbox-go v0.0.0-20190817171036-93860e161317/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= -github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= +github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20160621093029-daf2955e742c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= @@ -311,12 +329,14 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c h1:MUyE44mTvnI5A0xrxIxaMqoWFzPfQvtE2IWUollMDMs= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.0 h1:Keo9qb7iRJs2voHvunFtuuYFsbWeOBh8/P9v/kVMFtw= github.com/pelletier/go-toml v1.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/browser v0.0.0-20170505125900-c90ca0c84f15/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= @@ -363,6 +383,7 @@ github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFo github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197 h1:qu90yDtRE5WEfRT5mn9v0Xz9RaopLguhbPwZKx4dHq8= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197/go.mod h1:0hhKrsUsoT7yvxwNGKa+TSYNA26DNWMqReeZEQq/9FI= github.com/shirou/gopsutil v0.0.0-20170406131756-e49a95f3d5f8/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= @@ -389,6 +410,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/src-d/gcfg v1.3.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8/go.mod h1:1WNBiOZtZQLpVAyu0iTduoJL9hEsMloAK5XWrtW0xdY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -407,13 +429,16 @@ github.com/tevino/abool v0.0.0-20170917061928-9b9efcf221b5/go.mod h1:f1SCnEOt6sc github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ulikunitz/xz v0.5.4/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/vmware/go-nfs-client v0.0.0-20190605212624-d43b92724c1b/go.mod h1:psQdhrCc+fimC/8/U+PboPiIMcdmKgRdAtcMnhXhjzI= github.com/vmware/govmomi v0.23.0/go.mod h1:Y+Wq4lst78L85Ge/F8+ORXIWiKYqaro1vhAulACy9Lc= github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728/go.mod h1:x9oS4Wk2s2u4tS29nEaDLdzvuHdB19CvSGJjPgkZJNk= github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa/go.mod h1:2rx5KE5FLD0HRfkkpyn8JwbVLBdhgeiOb2D2D9LLKM4= github.com/xanzy/go-gitlab v0.15.0/go.mod h1:8zdQa/ri1dfn8eS3Ir1SyfvOKlw7WBJ8DVThkpGiXrs= +github.com/xanzy/ssh-agent v0.2.0/go.mod h1:0NyE30eGUDliuLEHJgYte/zncp2zdTStcOnWhgSqHD8= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos= @@ -446,6 +471,7 @@ golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -483,8 +509,9 @@ golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200528225125-3c3fba18258b h1:IYiJPiJfzktmDAO1HQiwjMjwjlYKHAL7KzeD544RJPs= golang.org/x/net v0.0.0-20200528225125-3c3fba18258b/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 h1:lwlPPsmjDKK0J6eG6xDWd5XPehI0R024zxjDnw3esPA= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -496,6 +523,7 @@ golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -517,13 +545,18 @@ golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200724161237-0e2f3a69832c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -616,8 +649,12 @@ gopkg.in/olivere/elastic.v6 v6.2.17/go.mod h1:2cTT8Z+/LcArSWpCgvZqBgt3VOqXiy7v00 gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/spacemonkeygo/httpsig.v0 v0.0.0-20170228231032-6732593ec966/go.mod h1:KUilIqVZdvg7tsZSnGqOnw8jL2WVzcC0RHV/Av0km2U= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/src-d/go-billy.v4 v4.3.0/go.mod h1:tm33zBoOwxjYHZIE+OV8bxTWFMJLrconzFMd38aARFk= +gopkg.in/src-d/go-git-fixtures.v3 v3.1.1/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g= +gopkg.in/src-d/go-git.v4 v4.7.0/go.mod h1:CzbUWqMn4pvmvndg3gnh5iZFmSsbhyhUWdI0IQ60AQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/contrib/grpcplugins/action/plugin-venom/go.sum b/contrib/grpcplugins/action/plugin-venom/go.sum index 841b21335f..0019c9426e 100644 --- a/contrib/grpcplugins/action/plugin-venom/go.sum +++ b/contrib/grpcplugins/action/plugin-venom/go.sum @@ -30,12 +30,15 @@ github.com/Shopify/sarama v1.27.0 h1:tqo2zmyzPf1+gwTTwhI6W+EXDw4PVSczynpHKFtVAmo github.com/Shopify/sarama v1.27.0/go.mod h1:aCdj6ymI8uyPEux1JJ9gcaDT6cinjGhNCAhs54taSUo= github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= github.com/alecthomas/jsonschema v0.0.0-20200123075451-43663a393755/go.mod h1:Juc2PrI3wtNfUwptSvAIeNx+HrETwHQs6nf+TkOJlOA= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= github.com/andygrunwald/go-gerrit v0.0.0-20181207071854-19ef3e9332a4/go.mod h1:0iuRQp6WJ44ts+iihy5E/WlPqfg5RNeQxOmzRkxCdtk= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/aokoli/goutils v1.1.0 h1:jy4ghdcYvs5EIoGssZNslIASX5m+KNMfyyKvRQ0TEVE= github.com/aokoli/goutils v1.1.0/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= @@ -54,6 +57,7 @@ github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dR github.com/bsm/sarama-cluster v2.1.15+incompatible h1:RkV6WiNRnqEEbp81druK8zYhmnIgdOjqSVi0+9Cnl2A= github.com/bsm/sarama-cluster v2.1.15+incompatible/go.mod h1:r7ao+4tTNXvWm+VRpRJchr2kQhqxgmAp2iEX5W96gMM= github.com/buger/goterm v0.0.0-20170918171949-d443b9114f9c/go.mod h1:u9UyCz2eTrSGy6fbupqJ54eY5c4IC8gREQ1053dK12U= +github.com/buger/jsonparser v0.0.0-20180910192245-6acdf747ae99/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -84,7 +88,8 @@ github.com/docker/docker v1.13.1/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsv github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-units v0.3.2/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e/go.mod h1:56wL82FO0bfMU5RvfXoIwSOP2ggqqxT+tAfNEIyxuHw= -github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76/go.mod h1:KjxHHirfLaw19iGT70HvVjHQsL1vq1SRQB4yOsAfy2s= +github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= +github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-resiliency v1.2.0 h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUKorFR1Q= @@ -93,11 +98,13 @@ github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8 github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.10.0 h1:Gfh+GAJZOAoKZsIZeZbdn2JF10kN1XHNvjsvQK8gVkE= @@ -115,6 +122,7 @@ github.com/garyburd/redigo v1.6.2/go.mod h1:NR3MbYisc3/PwhQ00EMzDiPmrwpPxAn5GI05 github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gorp/gorp v2.0.0+incompatible h1:dIQPsBtl6/H1MjVseWuWPXa7ET4p6Dve4j3Hg+UjqYw= github.com/go-gorp/gorp v2.0.0+incompatible/go.mod h1:7IfkAQnO7jfT/9IQ3R9wL1dFhukN6aQxzKTHnkxzA/E= @@ -151,6 +159,7 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= @@ -163,6 +172,7 @@ github.com/google/uuid v0.0.0-20170306145142-6a5e28554805/go.mod h1:TIyPZe4Mgqvf github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/gookit/color v1.3.2/go.mod h1:R3ogXq2B9rTbXoSHJ1HyUVAZ3poOJHpd9nQmyGZsfvQ= github.com/gophercloud/gophercloud v0.0.0-20190504011306-6f9faf57fddc/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= @@ -223,8 +233,11 @@ github.com/imdario/mergo v0.0.0-20180119215619-163f41321a19/go.mod h1:2EnlNZ0dea github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf/go.mod h1:hyb9oH7vZsitZCiBt0ZvifOrB+qc8PS5IiilCIb87rg= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933/go.mod h1:AYdLvrSBFloDBNt7Y8xkQ6gmhCODGl8CPikjyIOnNzA= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jcmturner/gofork v1.0.0 h1:J7uCkflzTEhUZ64xqKnkDxq3kzc96ajM1Gli5ktUem8= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= +github.com/jfrog/gofrog v1.0.6/go.mod h1:HkDzg+tMNw23UryoOv0+LB94BzYcl6MCIoz8Tmlb+s8= +github.com/jfrog/jfrog-client-go v0.21.0/go.mod h1:0RYDrQKCIdJbx6pjopwtwXh4/PaEW9FqFc4b4ox8fl0= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= @@ -238,13 +251,17 @@ github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfV github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/keybase/go-crypto v0.0.0-20181127160227-255a5089e85a/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= github.com/keybase/go-keychain v0.0.0-20190828020956-aa639f275ae1/go.mod h1:JJNrCn9otv/2QP4D7SMJBgaleKpOf66PnW6F5WGNRIc= github.com/keybase/go.dbus v0.0.0-20190710215703-a33a09c8a604/go.mod h1:a8clEhrrGV/d76/f9r2I41BwANMihfZYV9C223vaxqE= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.10 h1:a/y8CglcM7gLGYmlbP/stPE5sR3hbhFRUjCBfd/0B3I= github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -286,6 +303,7 @@ github.com/mcuadros/go-defaults v0.0.0-20161116231230-e1c978be3307/go.mod h1:vl9 github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mholt/archiver v3.1.1+incompatible/go.mod h1:Dh2dOXnSdiLxRiPoVfIr/fI1TwETms9B8CTWfeh7ROU= +github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miscreant/miscreant.go v0.0.0-20200214223636-26d376326b75/go.mod h1:pBbZyGwC5i16IBkjVKoy/sznA8jPD/K9iedwe1ESE6w= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -319,7 +337,7 @@ github.com/ncw/swift v1.0.52/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/termbox-go v0.0.0-20190817171036-93860e161317/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= -github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= +github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20160621093029-daf2955e742c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= @@ -346,6 +364,7 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c h1:MUyE44mTvnI5A0xrxIxaMqoWFzPfQvtE2IWUollMDMs= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.0 h1:Keo9qb7iRJs2voHvunFtuuYFsbWeOBh8/P9v/kVMFtw= github.com/pelletier/go-toml v1.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs= @@ -353,6 +372,7 @@ github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.5.2+incompatible h1:WCjObylUIOlKy/+7Abdn34TLIkXiA4UWUMhxq9m9ZXI= github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/browser v0.0.0-20170505125900-c90ca0c84f15/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= @@ -403,6 +423,7 @@ github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdh github.com/sclevine/agouti v3.0.0+incompatible h1:8IBJS6PWz3uTlMP3YBIR5f+KAldcGuOeFkFbUWfBgK4= github.com/sclevine/agouti v3.0.0+incompatible/go.mod h1:b4WX9W9L1sfQKXeJf1mUTLZKJ48R1S7H23Ji7oFO5Bw= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197 h1:qu90yDtRE5WEfRT5mn9v0Xz9RaopLguhbPwZKx4dHq8= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197/go.mod h1:0hhKrsUsoT7yvxwNGKa+TSYNA26DNWMqReeZEQq/9FI= github.com/shirou/gopsutil v0.0.0-20170406131756-e49a95f3d5f8/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= @@ -430,6 +451,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/src-d/gcfg v1.3.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8/go.mod h1:1WNBiOZtZQLpVAyu0iTduoJL9hEsMloAK5XWrtW0xdY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -448,13 +470,16 @@ github.com/tevino/abool v0.0.0-20170917061928-9b9efcf221b5/go.mod h1:f1SCnEOt6sc github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ulikunitz/xz v0.5.4/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/vmware/go-nfs-client v0.0.0-20190605212624-d43b92724c1b/go.mod h1:psQdhrCc+fimC/8/U+PboPiIMcdmKgRdAtcMnhXhjzI= github.com/vmware/govmomi v0.23.0/go.mod h1:Y+Wq4lst78L85Ge/F8+ORXIWiKYqaro1vhAulACy9Lc= github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728/go.mod h1:x9oS4Wk2s2u4tS29nEaDLdzvuHdB19CvSGJjPgkZJNk= github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa/go.mod h1:2rx5KE5FLD0HRfkkpyn8JwbVLBdhgeiOb2D2D9LLKM4= github.com/xanzy/go-gitlab v0.15.0/go.mod h1:8zdQa/ri1dfn8eS3Ir1SyfvOKlw7WBJ8DVThkpGiXrs= +github.com/xanzy/ssh-agent v0.2.0/go.mod h1:0NyE30eGUDliuLEHJgYte/zncp2zdTStcOnWhgSqHD8= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos= @@ -489,8 +514,9 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 h1:DZhuSZLsGlFL4CmhA8BcRA0mnthyA/nZ00AqCUo7vHg= golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9 h1:sYNJzB4J8toYPQTM6pAkcmBRgw9SnQKP9oXCHfgy604= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -528,8 +554,9 @@ golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200528225125-3c3fba18258b h1:IYiJPiJfzktmDAO1HQiwjMjwjlYKHAL7KzeD544RJPs= golang.org/x/net v0.0.0-20200528225125-3c3fba18258b/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 h1:lwlPPsmjDKK0J6eG6xDWd5XPehI0R024zxjDnw3esPA= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -541,6 +568,7 @@ golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -562,13 +590,19 @@ golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200724161237-0e2f3a69832c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -667,10 +701,14 @@ gopkg.in/olivere/elastic.v6 v6.2.17/go.mod h1:2cTT8Z+/LcArSWpCgvZqBgt3VOqXiy7v00 gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/spacemonkeygo/httpsig.v0 v0.0.0-20170228231032-6732593ec966/go.mod h1:KUilIqVZdvg7tsZSnGqOnw8jL2WVzcC0RHV/Av0km2U= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/src-d/go-billy.v4 v4.3.0/go.mod h1:tm33zBoOwxjYHZIE+OV8bxTWFMJLrconzFMd38aARFk= +gopkg.in/src-d/go-git-fixtures.v3 v3.1.1/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g= +gopkg.in/src-d/go-git.v4 v4.7.0/go.mod h1:CzbUWqMn4pvmvndg3gnh5iZFmSsbhyhUWdI0IQ60AQo= gopkg.in/testfixtures.v2 v2.6.0 h1:j5opJyoW6CCx46qGQHvfoY6k1XK5/KhWecuL7MpMWZg= gopkg.in/testfixtures.v2 v2.6.0/go.mod h1:rGPtsOtPcZhs7AsHYf1WmufW1hEsM6DXdLrYz60nrQQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/contrib/integrations/arsenal/arsenal.yml b/contrib/integrations/arsenal/arsenal.yml index 8eed0731e7..378c7da066 100644 --- a/contrib/integrations/arsenal/arsenal.yml +++ b/contrib/integrations/arsenal/arsenal.yml @@ -3,7 +3,7 @@ default_config: host: type: string deployment: true -deployment_default_config: +additional_default_config: version: type: string value: "{{.cds.version}}" diff --git a/contrib/integrations/artifactory/artifactory.yml b/contrib/integrations/artifactory/artifactory.yml new file mode 100644 index 0000000000..dfbc738f03 --- /dev/null +++ b/contrib/integrations/artifactory/artifactory.yml @@ -0,0 +1,19 @@ +name: Artifactory +default_config: + artifactory.url: + type: string + artifactory.token.name: + type: string + artifactory.token: + type: password + artifactory.cds_repository: + type: string + artifactory.promotion.low.maturity: + type: string + artifactory.promotion.high.maturity: + type: string +additional_default_config: + build.info.path: + type: string + value: "" +artifact_manager: true diff --git a/contrib/integrations/artifactory/plugin-artifactory-download-artifact/Makefile b/contrib/integrations/artifactory/plugin-artifactory-download-artifact/Makefile new file mode 100644 index 0000000000..2ff6fd5a31 --- /dev/null +++ b/contrib/integrations/artifactory/plugin-artifactory-download-artifact/Makefile @@ -0,0 +1,59 @@ +.PHONY: clean + +VERSION := $(if ${CDS_SEMVER},${CDS_SEMVER},snapshot) +GITHASH := $(if ${GIT_HASH},${GIT_HASH},`git log -1 --format="%H"`) +BUILDTIME := `date "+%m/%d/%y-%H:%M:%S"` +CDSCTL := $(if ${CDSCTL},${CDSCTL},cdsctl) + +TARGET_DIR = ./dist +TARGET_NAME = plugin-artifactory-download-artifact + +define PLUGIN_MANIFEST_BINARY +os: %os% +arch: %arch% +cmd: ./%filename% +endef +export PLUGIN_MANIFEST_BINARY + +TARGET_LDFLAGS = -ldflags "-X github.com/ovh/cds/sdk.VERSION=$(VERSION) -X github.com/ovh/cds/sdk.GOOS=$$GOOS -X github.com/ovh/cds/sdk.GOARCH=$$GOARCH -X github.com/ovh/cds/sdk.GITHASH=$(GITHASH) -X github.com/ovh/cds/sdk.BUILDTIME=$(BUILDTIME) -X github.com/ovh/cds/sdk.BINARY=$(TARGET_NAME)" +TARGET_OS = $(if ${OS},${OS},windows darwin linux freebsd) +TARGET_ARCH = $(if ${ARCH},${ARCH},amd64 arm 386 arm64) + +GO_BUILD = go build + +$(TARGET_DIR): + $(info create $(TARGET_DIR) directory) + @mkdir -p $(TARGET_DIR) + +default: build + +clean: + @rm -rf $(TARGET_DIR) + +build: $(TARGET_DIR) + @cp $(TARGET_NAME).yml $(TARGET_DIR)/$(TARGET_NAME).yml + @for GOOS in $(TARGET_OS); do \ + for GOARCH in $(TARGET_ARCH); do \ + EXTENSION=""; \ + if test "$$GOOS" = "windows" ; then EXTENSION=".exe"; fi; \ + echo Compiling $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH$$EXTENSION $(VERSION); \ + FILENAME=$(TARGET_NAME)-$$GOOS-$$GOARCH$$EXTENSION; \ + GOOS=$$GOOS GOARCH=$$GOARCH CGO_ENABLED=0 $(GO_BUILD) $(TARGET_LDFLAGS) -o $(TARGET_DIR)/$$FILENAME; \ + echo "$$PLUGIN_MANIFEST_BINARY" > $(TARGET_DIR)/plugin-artifactory-download-artifact-$$GOOS-$$GOARCH.yml; \ + perl -pi -e s,%os%,$$GOOS,g $(TARGET_DIR)/plugin-artifactory-download-artifact-$$GOOS-$$GOARCH.yml; \ + perl -pi -e s,%arch%,$$GOARCH,g $(TARGET_DIR)/plugin-artifactory-download-artifact-$$GOOS-$$GOARCH.yml; \ + perl -pi -e s,%filename%,$$FILENAME,g $(TARGET_DIR)/plugin-artifactory-download-artifact-$$GOOS-$$GOARCH.yml; \ + done; \ + done + +publish: + @echo "Updating plugin..." + $(CDSCTL) admin plugins import $(TARGET_DIR)/$(TARGET_NAME).yml + @for GOOS in $(TARGET_OS); do \ + for GOARCH in $(TARGET_ARCH); do \ + EXTENSION=""; \ + if test "$$GOOS" = "windows" ; then EXTENSION=".exe"; fi; \ + echo "Updating plugin binary $(TARGET_NAME)-$$GOOS-$$GOARCH$$EXTENSION"; \ + $(CDSCTL) admin plugins binary-add artifactory-download-artifact-plugin $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH.yml $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH$$EXTENSION; \ + done; \ + done diff --git a/contrib/integrations/artifactory/plugin-artifactory-download-artifact/main.go b/contrib/integrations/artifactory/plugin-artifactory-download-artifact/main.go new file mode 100644 index 0000000000..b866d6ceb1 --- /dev/null +++ b/contrib/integrations/artifactory/plugin-artifactory-download-artifact/main.go @@ -0,0 +1,148 @@ +package main + +import ( + "context" + "fmt" + "os" + "strconv" + + "github.com/golang/protobuf/ptypes/empty" + "github.com/jfrog/jfrog-client-go/artifactory" + "github.com/jfrog/jfrog-client-go/artifactory/auth" + "github.com/jfrog/jfrog-client-go/artifactory/services" + "github.com/jfrog/jfrog-client-go/artifactory/services/utils" + "github.com/jfrog/jfrog-client-go/config" + "github.com/jfrog/jfrog-client-go/utils/log" + + "github.com/ovh/cds/sdk" + "github.com/ovh/cds/sdk/grpcplugin/integrationplugin" +) + +/* +This plugin have to be used as a download artifact integration plugin + +Artifactory download artifact plugin must configured as following: + name: artifactory-download-artifact-plugin + type: integration + author: "Steven Guiheux" + description: "OVH Artifactory Upload Artifact Plugin" + +$ cdsctl admin plugins import artifactory-download-artifact-plugin.yml + +Build the present binaries and import in CDS: + os: linux + arch: amd64 + cmd: + +$ cdsctl admin plugins binary-add artifactory-download-artifact-plugin artifactory-download-artifact-plugin-bin.yml + +Artifactory integration must configured as following + name: Artifactory + default_config: + artifactory.url: + type: string + artifactory.token: + type: password + artifactory.cds_repository: + type: string + artifact_manager: true +*/ + +type artifactoryDownloadArtifactPlugin struct { + integrationplugin.Common +} + +func (e *artifactoryDownloadArtifactPlugin) Manifest(_ context.Context, _ *empty.Empty) (*integrationplugin.IntegrationPluginManifest, error) { + return &integrationplugin.IntegrationPluginManifest{ + Name: "OVH Artifactory Download Artifact Plugin", + Author: "Steven Guiheux", + Description: "OVH Artifactory Download Artifact Plugin", + Version: sdk.VERSION, + }, nil +} + +func createArtifactoryClient(url, token string) (artifactory.ArtifactoryServicesManager, error) { + rtDetails := auth.NewArtifactoryDetails() + rtDetails.SetUrl(url) + rtDetails.SetAccessToken(token) + serviceConfig, err := config.NewConfigBuilder(). + SetServiceDetails(rtDetails). + SetThreads(1). + SetDryRun(false). + Build() + if err != nil { + return nil, fmt.Errorf("unable to create service config: %v", err) + } + return artifactory.New(serviceConfig) +} + +func (e *artifactoryDownloadArtifactPlugin) Run(_ context.Context, opts *integrationplugin.RunQuery) (*integrationplugin.RunResult, error) { + cdsRepo := opts.GetOptions()["cds.integration.artifact_manager.artifactory.cds_repository"] + artifactoryURL := opts.GetOptions()["cds.integration.artifact_manager.artifactory.url"] + token := opts.GetOptions()["cds.integration.artifact_manager.artifactory.token"] + + filePath := opts.GetOptions()[sdk.ArtifactDownloadPluginInputFilePath] + path := opts.GetOptions()[sdk.ArtifactDownloadPluginInputDestinationPath] + md5 := opts.GetOptions()[sdk.ArtifactDownloadPluginInputMd5] + permS := opts.GetOptions()[sdk.ArtifactDownloadPluginInputPerm] + + perm, err := strconv.ParseUint(permS, 10, 32) + if err != nil { + return fail("unable to read file permission %s: %v", permS, err) + } + + artiClient, err := createArtifactoryClient(artifactoryURL, token) + if err != nil { + return fail("unable to create artifactory client: %v", err) + } + log.SetLogger(log.NewLogger(log.ERROR, os.Stdout)) + + params := services.NewDownloadParams() + params.Pattern = fmt.Sprintf("%s/%s", cdsRepo, filePath) + params.Target = path + params.Flat = true + params.Retries = 5 + + summary, err := artiClient.DownloadFilesWithSummary(params) + if err != nil || summary.TotalFailed > 0 { + return fail("unable to download files %s from artifactory %s: %v", filePath, params.Target, err) + } + defer summary.Close() + for artDetails := new(utils.ArtifactDetails); summary.ArtifactsDetailsReader.NextRecord(artDetails) == nil; artDetails = new(utils.ArtifactDetails) { + if md5 != artDetails.Checksums.Md5 { + return fail("wrong md5 for file %s. Got %s Want %s", filePath, artDetails.Checksums.Md5, md5) + } + } + + fileMode, err := os.Stat(path) + if err != nil { + return fail("unable to get file stat: %v", err) + } + currentperm := uint32(fileMode.Mode().Perm()) + if currentperm != uint32(perm) { + if err := os.Chmod(path, os.FileMode(uint32(perm))); err != nil { + return fail("unable to chmod file %s: %v", path, err) + } + } + return &integrationplugin.RunResult{ + Status: sdk.StatusSuccess, + }, nil +} + +func main() { + e := artifactoryDownloadArtifactPlugin{} + if err := integrationplugin.Start(context.Background(), &e); err != nil { + panic(err) + } + return + +} + +func fail(format string, args ...interface{}) (*integrationplugin.RunResult, error) { + msg := fmt.Sprintf(format, args...) + fmt.Println(msg) + return &integrationplugin.RunResult{ + Details: msg, + Status: sdk.StatusFail, + }, nil +} diff --git a/contrib/integrations/artifactory/plugin-artifactory-download-artifact/plugin-artifactory-download-artifact.yml b/contrib/integrations/artifactory/plugin-artifactory-download-artifact/plugin-artifactory-download-artifact.yml new file mode 100644 index 0000000000..04ad4df175 --- /dev/null +++ b/contrib/integrations/artifactory/plugin-artifactory-download-artifact/plugin-artifactory-download-artifact.yml @@ -0,0 +1,5 @@ +name: artifactory-download-artifact-plugin +type: integration-download_artifact +integration: Artifactory +author: "OVH SAS" +description: "OVH Artifactory Download Artifact Plugin" diff --git a/contrib/integrations/artifactory/plugin-artifactory-upload-artifact/Makefile b/contrib/integrations/artifactory/plugin-artifactory-upload-artifact/Makefile new file mode 100644 index 0000000000..c457d06a9e --- /dev/null +++ b/contrib/integrations/artifactory/plugin-artifactory-upload-artifact/Makefile @@ -0,0 +1,59 @@ +.PHONY: clean + +VERSION := $(if ${CDS_SEMVER},${CDS_SEMVER},snapshot) +GITHASH := $(if ${GIT_HASH},${GIT_HASH},`git log -1 --format="%H"`) +BUILDTIME := `date "+%m/%d/%y-%H:%M:%S"` +CDSCTL := $(if ${CDSCTL},${CDSCTL},cdsctl) + +TARGET_DIR = ./dist +TARGET_NAME = plugin-artifactory-upload-artifact + +define PLUGIN_MANIFEST_BINARY +os: %os% +arch: %arch% +cmd: ./%filename% +endef +export PLUGIN_MANIFEST_BINARY + +TARGET_LDFLAGS = -ldflags "-X github.com/ovh/cds/sdk.VERSION=$(VERSION) -X github.com/ovh/cds/sdk.GOOS=$$GOOS -X github.com/ovh/cds/sdk.GOARCH=$$GOARCH -X github.com/ovh/cds/sdk.GITHASH=$(GITHASH) -X github.com/ovh/cds/sdk.BUILDTIME=$(BUILDTIME) -X github.com/ovh/cds/sdk.BINARY=$(TARGET_NAME)" +TARGET_OS = $(if ${OS},${OS},windows darwin linux freebsd) +TARGET_ARCH = $(if ${ARCH},${ARCH},amd64 arm 386 arm64) + +GO_BUILD = go build + +$(TARGET_DIR): + $(info create $(TARGET_DIR) directory) + @mkdir -p $(TARGET_DIR) + +default: build + +clean: + @rm -rf $(TARGET_DIR) + +build: $(TARGET_DIR) + @cp $(TARGET_NAME).yml $(TARGET_DIR)/$(TARGET_NAME).yml + @for GOOS in $(TARGET_OS); do \ + for GOARCH in $(TARGET_ARCH); do \ + EXTENSION=""; \ + if test "$$GOOS" = "windows" ; then EXTENSION=".exe"; fi; \ + echo Compiling $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH$$EXTENSION $(VERSION); \ + FILENAME=$(TARGET_NAME)-$$GOOS-$$GOARCH$$EXTENSION; \ + GOOS=$$GOOS GOARCH=$$GOARCH CGO_ENABLED=0 $(GO_BUILD) $(TARGET_LDFLAGS) -o $(TARGET_DIR)/$$FILENAME; \ + echo "$$PLUGIN_MANIFEST_BINARY" > $(TARGET_DIR)/plugin-artifactory-upload-artifact-$$GOOS-$$GOARCH.yml; \ + perl -pi -e s,%os%,$$GOOS,g $(TARGET_DIR)/plugin-artifactory-upload-artifact-$$GOOS-$$GOARCH.yml; \ + perl -pi -e s,%arch%,$$GOARCH,g $(TARGET_DIR)/plugin-artifactory-upload-artifact-$$GOOS-$$GOARCH.yml; \ + perl -pi -e s,%filename%,$$FILENAME,g $(TARGET_DIR)/plugin-artifactory-upload-artifact-$$GOOS-$$GOARCH.yml; \ + done; \ + done + +publish: + @echo "Updating plugin..." + $(CDSCTL) admin plugins import $(TARGET_DIR)/$(TARGET_NAME).yml + @for GOOS in $(TARGET_OS); do \ + for GOARCH in $(TARGET_ARCH); do \ + EXTENSION=""; \ + if test "$$GOOS" = "windows" ; then EXTENSION=".exe"; fi; \ + echo "Updating plugin binary $(TARGET_NAME)-$$GOOS-$$GOARCH$$EXTENSION"; \ + $(CDSCTL) admin plugins binary-add artifactory-upload-artifact-plugin $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH.yml $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH$$EXTENSION; \ + done; \ + done diff --git a/contrib/integrations/artifactory/plugin-artifactory-upload-artifact/main.go b/contrib/integrations/artifactory/plugin-artifactory-upload-artifact/main.go new file mode 100644 index 0000000000..64bba9ef98 --- /dev/null +++ b/contrib/integrations/artifactory/plugin-artifactory-upload-artifact/main.go @@ -0,0 +1,148 @@ +package main + +import ( + "context" + "fmt" + "net/url" + "os" + "strconv" + "strings" + "time" + + "github.com/golang/protobuf/ptypes/empty" + "github.com/jfrog/jfrog-client-go/artifactory" + "github.com/jfrog/jfrog-client-go/artifactory/auth" + "github.com/jfrog/jfrog-client-go/artifactory/services" + "github.com/jfrog/jfrog-client-go/artifactory/services/utils" + "github.com/jfrog/jfrog-client-go/config" + "github.com/jfrog/jfrog-client-go/utils/log" + + "github.com/ovh/cds/sdk" + "github.com/ovh/cds/sdk/grpcplugin/integrationplugin" +) + +/* +This plugin have to be used as a upload artifact integration plugin + +Artifactory upload artifact plugin must configured as following: + name: artifactory-upload-artifact-plugin + type: integration + author: "Steven Guiheux" + description: "OVH Artifactory Upload Artifact Plugin" + +$ cdsctl admin plugins import artifactory-upload-artifact-plugin.yml + +Build the present binaries and import in CDS: + os: linux + arch: amd64 + cmd: + +$ cdsctl admin plugins binary-add artifactory-upload-artifact-plugin artifactory-upload-artifact-plugin-bin.yml + +Artifactory integration must configured as following + name: Artifactory + default_config: + artifactory.url: + type: string + artifactory.token: + type: password + artifactory.cds_repository: + type: string + artifact_manager: true +*/ + +type artifactoryUploadArtifactPlugin struct { + integrationplugin.Common +} + +func (e *artifactoryUploadArtifactPlugin) Manifest(_ context.Context, _ *empty.Empty) (*integrationplugin.IntegrationPluginManifest, error) { + return &integrationplugin.IntegrationPluginManifest{ + Name: "OVH Artifactory Upload Artifact Plugin", + Author: "Steven Guiheux", + Description: "OVH Artifactory Upload Artifact Plugin", + Version: sdk.VERSION, + }, nil +} + +func (e *artifactoryUploadArtifactPlugin) createArtifactoryClient(url, token string) (artifactory.ArtifactoryServicesManager, error) { + rtDetails := auth.NewArtifactoryDetails() + rtDetails.SetUrl(url) + rtDetails.SetAccessToken(token) + serviceConfig, err := config.NewConfigBuilder(). + SetServiceDetails(rtDetails). + SetThreads(1). + SetDryRun(false). + Build() + if err != nil { + return nil, fmt.Errorf("unable to create service config: %v", err) + } + return artifactory.New(serviceConfig) +} + +func (e *artifactoryUploadArtifactPlugin) Run(_ context.Context, opts *integrationplugin.RunQuery) (*integrationplugin.RunResult, error) { + cdsRepo := opts.GetOptions()["cds.integration.artifact_manager.artifactory.cds_repository"] + artifactoryURL := opts.GetOptions()["cds.integration.artifact_manager.artifactory.url"] + token := opts.GetOptions()["cds.integration.artifact_manager.artifactory.token"] + pathToUpload := opts.GetOptions()["cds.integration.artifact_manager.upload.path"] + projectKey := opts.GetOptions()["cds.project"] + workflowName := opts.GetOptions()["cds.workflow"] + buildInfo := opts.GetOptions()["cds.integration.artifact_manager.build.info.path"] + version := opts.GetOptions()["cds.version"] + + artiClient, err := e.createArtifactoryClient(artifactoryURL, token) + if err != nil { + return fail("unable to create artifactory client: %v", err) + } + log.SetLogger(log.NewLogger(log.INFO, os.Stdout)) + + params := services.NewUploadParams() + params.Pattern = pathToUpload + params.Target = fmt.Sprintf("%s/%s/%s/%s/", cdsRepo, projectKey, workflowName, version) + params.Flat = true + params.BuildProps = fmt.Sprintf("build.name=%s/%s/%s;build.number=%s;build.timestamp=%d", buildInfo, projectKey, workflowName, url.QueryEscape(version), time.Now().Unix()) + params.Retries = 5 + + summary, err := artiClient.UploadFilesWithSummary(params) + if err != nil || summary.TotalFailed > 0 { + return fail("unable to upload file %s into artifactory %s: %v", pathToUpload, params.Target, err) + } + defer summary.Close() + + result := make(map[string]string) + for artDetails := new(utils.ArtifactDetails); summary.ArtifactsDetailsReader.NextRecord(artDetails) == nil; artDetails = new(utils.ArtifactDetails) { + result[sdk.ArtifactUploadPluginOutputPathMD5] = artDetails.Checksums.Md5 + result[sdk.ArtifactUploadPluginOutputPathFilePath] = strings.TrimPrefix(artDetails.ToBuildInfoArtifact().Path, cdsRepo+"/") + result[sdk.ArtifactUploadPluginOutputPathFileName] = artDetails.ToBuildInfoArtifact().Name + result[sdk.ArtifactUploadPluginOutputPathRepoType] = "generic" + result[sdk.ArtifactUploadPluginOutputPathRepoName] = cdsRepo + } + + fileMode, err := os.Stat(pathToUpload) + if err != nil { + return fail("unable to get file stat: %v", err) + } + result[sdk.ArtifactUploadPluginOutputPerm] = strconv.FormatUint(uint64(fileMode.Mode().Perm()), 10) + result[sdk.ArtifactUploadPluginOutputSize] = strconv.FormatInt(fileMode.Size(), 10) + + return &integrationplugin.RunResult{ + Status: sdk.StatusSuccess, + Outputs: result, + }, nil +} + +func main() { + e := artifactoryUploadArtifactPlugin{} + if err := integrationplugin.Start(context.Background(), &e); err != nil { + panic(err) + } + return + +} + +func fail(format string, args ...interface{}) (*integrationplugin.RunResult, error) { + msg := fmt.Sprintf(format, args...) + return &integrationplugin.RunResult{ + Details: msg, + Status: sdk.StatusFail, + }, nil +} diff --git a/contrib/integrations/artifactory/plugin-artifactory-upload-artifact/plugin-artifactory-upload-artifact.yml b/contrib/integrations/artifactory/plugin-artifactory-upload-artifact/plugin-artifactory-upload-artifact.yml new file mode 100644 index 0000000000..aa0c09cb67 --- /dev/null +++ b/contrib/integrations/artifactory/plugin-artifactory-upload-artifact/plugin-artifactory-upload-artifact.yml @@ -0,0 +1,5 @@ +name: artifactory-upload-artifact-plugin +type: integration-upload_artifact +integration: Artifactory +author: "OVH SAS" +description: "OVH Artifactory Upload Artifact Plugin" diff --git a/engine/api/api_routes.go b/engine/api/api_routes.go index d793204c66..fe5a0ff7c5 100644 --- a/engine/api/api_routes.go +++ b/engine/api/api_routes.go @@ -226,7 +226,7 @@ func (api *API) InitRouter() { r.Handle("/project/{key}/workflows/{permWorkflowName}/retention/maxruns", Scope(sdk.AuthConsumerScopeProject), r.POST(api.postWorkflowMaxRunHandler, service.OverrideAuth(api.authAdminMiddleware))) r.Handle("/project/{key}/workflows/{permWorkflowName}/retention/dryrun", Scope(sdk.AuthConsumerScopeProject), r.POST(api.postWorkflowRetentionPolicyDryRun)) r.Handle("/project/{key}/workflows/{permWorkflowName}/retention/suggest", Scope(sdk.AuthConsumerScopeProject), r.GET(api.getRetentionPolicySuggestionHandler)) - r.Handle("/project/{key}/workflows/{permWorkflowName}/eventsintegration/{integrationID}", Scope(sdk.AuthConsumerScopeProject), r.DELETE(api.deleteWorkflowEventsIntegrationHandler)) + r.Handle("/project/{key}/workflows/{permWorkflowName}/integration/{integrationID}", Scope(sdk.AuthConsumerScopeProject), r.DELETE(api.deleteWorkflowEventsIntegrationHandler)) r.Handle("/project/{key}/workflows/{permWorkflowName}/icon", Scope(sdk.AuthConsumerScopeProject), r.PUT(api.putWorkflowIconHandler), r.DELETE(api.deleteWorkflowIconHandler)) r.Handle("/project/{key}/workflows/{permWorkflowName}/ascode", Scope(sdk.AuthConsumerScopeProject), r.POST(api.postWorkflowAsCodeHandler)) r.Handle("/project/{key}/workflows/{permWorkflowName}/ascode/events/resync", Scope(sdk.AuthConsumerScopeProject), r.POST(api.postWorkflowAsCodeEventsResyncHandler)) diff --git a/engine/api/application/application_parser.go b/engine/api/application/application_parser.go index 6dc366a4bd..573c4b9315 100644 --- a/engine/api/application/application_parser.go +++ b/engine/api/application/application_parser.go @@ -190,8 +190,8 @@ func ParseAndImport(ctx context.Context, db gorpmapper.SqlExecutorWithTx, cache msgList = append(msgList, sdk.NewMessage(sdk.MsgWorkflowErrorBadIntegrationName, pfName)) return app, nil, msgList, sdk.WrapError(sdk.NewErrorFrom(sdk.ErrWrongRequest, "deployment platform not found"), "deployment platform %s not found", pfName) } - if projIt.Model.DeploymentDefaultConfig != nil { - deploymentStrategies[pfName] = projIt.Model.DeploymentDefaultConfig.Clone() + if projIt.Model.AdditionalDefaultConfig != nil { + deploymentStrategies[pfName] = projIt.Model.AdditionalDefaultConfig.Clone() } else { deploymentStrategies[pfName] = make(map[string]sdk.IntegrationConfigValue) } diff --git a/engine/api/application/dao_application_integration_test.go b/engine/api/application/dao_application_integration_test.go index f31ca21f89..4b359e2492 100644 --- a/engine/api/application/dao_application_integration_test.go +++ b/engine/api/application/dao_application_integration_test.go @@ -32,7 +32,7 @@ func Test_LoadAllDeploymentAllApps(t *testing.T) { pf := sdk.IntegrationModel{ Name: pfname, Deployment: true, - DeploymentDefaultConfig: sdk.IntegrationConfig{ + AdditionalDefaultConfig: sdk.IntegrationConfig{ "token": sdk.IntegrationConfigValue{ Type: sdk.IntegrationConfigTypePassword, Value: "my-secret-token", diff --git a/engine/api/application_deployment.go b/engine/api/application_deployment.go index 995fb834ef..ab664f0a91 100644 --- a/engine/api/application_deployment.go +++ b/engine/api/application_deployment.go @@ -78,8 +78,8 @@ func (api *API) postApplicationDeploymentStrategyConfigHandler() service.Handler oldPfConfig, has := app.DeploymentStrategies[pfName] if !has { - if pf.Model.DeploymentDefaultConfig != nil { - oldPfConfig = pf.Model.DeploymentDefaultConfig + if pf.Model.AdditionalDefaultConfig != nil { + oldPfConfig = pf.Model.AdditionalDefaultConfig } else { oldPfConfig = sdk.IntegrationConfig{} } diff --git a/engine/api/application_deployment_test.go b/engine/api/application_deployment_test.go index 3d56bbcad9..67e8e84232 100644 --- a/engine/api/application_deployment_test.go +++ b/engine/api/application_deployment_test.go @@ -310,7 +310,7 @@ func Test_postApplicationDeploymentStrategyConfigHandlerAsProvider(t *testing.T) pf := sdk.IntegrationModel{ Name: "test-deploy-3" + pkey, Deployment: true, - DeploymentDefaultConfig: sdk.IntegrationConfig{ + AdditionalDefaultConfig: sdk.IntegrationConfig{ "token": sdk.IntegrationConfigValue{ Type: sdk.IntegrationConfigTypePassword, Value: "my-secret-token", diff --git a/engine/api/application_import_test.go b/engine/api/application_import_test.go index e513addd19..cc493ee42d 100644 --- a/engine/api/application_import_test.go +++ b/engine/api/application_import_test.go @@ -642,7 +642,7 @@ func Test_postApplicationImportHandler_ExistingAppWithDeploymentStrategy(t *test pf := sdk.IntegrationModel{ Name: pfname, Deployment: true, - DeploymentDefaultConfig: sdk.IntegrationConfig{ + AdditionalDefaultConfig: sdk.IntegrationConfig{ "token": sdk.IntegrationConfigValue{ Type: sdk.IntegrationConfigTypePassword, Value: "my-secret-token", @@ -753,7 +753,7 @@ func Test_postApplicationImportHandler_DontOverrideDeploymentPasswordIfNotGiven( pf := sdk.IntegrationModel{ Name: pfname, Deployment: true, - DeploymentDefaultConfig: sdk.IntegrationConfig{ + AdditionalDefaultConfig: sdk.IntegrationConfig{ "token": sdk.IntegrationConfigValue{ Type: sdk.IntegrationConfigTypePassword, Value: "my-secret-token", diff --git a/engine/api/event/publish_workflow.go b/engine/api/event/publish_workflow.go index 7ef0ddc3cc..fc6e63779e 100644 --- a/engine/api/event/publish_workflow.go +++ b/engine/api/event/publish_workflow.go @@ -10,10 +10,10 @@ import ( ) // publishWorkflowEvent publish workflow event -func publishWorkflowEvent(ctx context.Context, payload interface{}, key, workflowName string, eventIntegrations []sdk.ProjectIntegration, u sdk.Identifiable) { +func publishWorkflowEvent(ctx context.Context, payload interface{}, key, workflowName string, eventIntegrations []sdk.WorkflowProjectIntegration, u sdk.Identifiable) { eventIntegrationsID := make([]int64, len(eventIntegrations)) for i, eventIntegration := range eventIntegrations { - eventIntegrationsID[i] = eventIntegration.ID + eventIntegrationsID[i] = eventIntegration.ProjectIntegrationID } bts, _ := json.Marshal(payload) diff --git a/engine/api/event/publish_workflow_run.go b/engine/api/event/publish_workflow_run.go index 2c5efb34c2..084bfafe25 100644 --- a/engine/api/event/publish_workflow_run.go +++ b/engine/api/event/publish_workflow_run.go @@ -21,14 +21,14 @@ type publishWorkflowRunData struct { workflowRunSubNum int64 status string workflowRunTags []sdk.WorkflowRunTag - eventIntegrations []sdk.ProjectIntegration + eventIntegrations []sdk.WorkflowProjectIntegration workflowNodeRunID int64 } func publishRunWorkflow(ctx context.Context, payload interface{}, data publishWorkflowRunData) { eventIntegrationsID := make([]int64, len(data.eventIntegrations)) for i, eventIntegration := range data.eventIntegrations { - eventIntegrationsID[i] = eventIntegration.ID + eventIntegrationsID[i] = eventIntegration.ProjectIntegrationID } bts, _ := json.Marshal(payload) diff --git a/engine/api/integration/dao_model.go b/engine/api/integration/dao_model.go index db3b33e53d..50faf7edbd 100644 --- a/engine/api/integration/dao_model.go +++ b/engine/api/integration/dao_model.go @@ -183,7 +183,6 @@ func UpdateModel(db gorpmapper.SqlExecutorWithTx, m *sdk.IntegrationModel) error } m.PublicConfigurations = givenPublicConfig - dbm := integrationModel{IntegrationModel: *m} if err := gorpmapping.UpdateAndSign(context.Background(), db, &dbm); err != nil { return sdk.WrapError(err, "Unable to update integration model %s", m.Name) diff --git a/engine/api/integration/dao_project_integration.go b/engine/api/integration/dao_project_integration.go index b1b593ff0d..33674d956c 100644 --- a/engine/api/integration/dao_project_integration.go +++ b/engine/api/integration/dao_project_integration.go @@ -204,44 +204,6 @@ func UpdateIntegration(db gorpmapper.SqlExecutorWithTx, pp sdk.ProjectIntegratio return nil } -// AddOnWorkflow link a project integration on a workflow -func AddOnWorkflow(db gorp.SqlExecutor, workflowID int64, projectIntegrationID int64) error { - query := "INSERT INTO workflow_project_integration (workflow_id, project_integration_id) VALUES ($1, $2) ON CONFLICT DO NOTHING" - if _, err := db.Exec(query, workflowID, projectIntegrationID); err != nil { - return sdk.WithStack(err) - } - return nil -} - -// LoadWorkflowIntegrationsByWorkflowID load workflow integrations by workflowid -func LoadWorkflowIntegrationsByWorkflowID(db gorp.SqlExecutor, id int64) ([]sdk.ProjectIntegration, error) { - query := gorpmapping.NewQuery(` - SELECT project_integration.* - FROM project_integration - JOIN workflow_project_integration ON project_integration.id = workflow_project_integration.project_integration_id - WHERE workflow_project_integration.workflow_id = $1 - `).Args(id) - return loadAll(db, query) -} - -// RemoveFromWorkflow remove a project integration on a workflow -func RemoveFromWorkflow(db gorp.SqlExecutor, workflowID int64, projectIntegrationID int64) error { - query := "DELETE FROM workflow_project_integration WHERE workflow_id = $1 AND project_integration_id = $2" - if _, err := db.Exec(query, workflowID, projectIntegrationID); err != nil { - return sdk.WithStack(err) - } - return nil -} - -// DeleteFromWorkflow remove a project integration on a workflow -func DeleteFromWorkflow(db gorp.SqlExecutor, workflowID int64) error { - query := "DELETE FROM workflow_project_integration WHERE workflow_id = $1" - if _, err := db.Exec(query, workflowID); err != nil { - return sdk.WithStack(err) - } - return nil -} - // LoadAllIntegrationsForProjectsWithDecryption load all integrations for all given project, with decryption func LoadAllIntegrationsForProjectsWithDecryption(ctx context.Context, db gorp.SqlExecutor, projIDs []int64) (map[int64][]sdk.ProjectIntegration, error) { return loadAllIntegrationsForProjects(ctx, db, projIDs, gorpmapping.GetOptions.WithDecryption) diff --git a/engine/api/workflow.go b/engine/api/workflow.go index bca290b7d6..332f3a24e6 100644 --- a/engine/api/workflow.go +++ b/engine/api/workflow.go @@ -17,7 +17,6 @@ import ( "github.com/ovh/cds/engine/api/application" "github.com/ovh/cds/engine/api/environment" "github.com/ovh/cds/engine/api/event" - "github.com/ovh/cds/engine/api/integration" "github.com/ovh/cds/engine/api/permission" "github.com/ovh/cds/engine/api/pipeline" "github.com/ovh/cds/engine/api/project" @@ -771,7 +770,17 @@ func (api *API) deleteWorkflowEventsIntegrationHandler() service.Handler { return sdk.WrapError(err, "cannot load Workflow %s", key) } - if err := integration.RemoveFromWorkflow(db, wf.ID, prjIntegrationID); err != nil { + var integ *sdk.WorkflowProjectIntegration + for i := range wf.Integrations { + if wf.Integrations[i].ProjectIntegrationID == prjIntegrationID { + integ = &wf.Integrations[i] + } + } + if integ == nil { + return sdk.NewErrorFrom(sdk.ErrNotFound, "unable to find integration %d", prjIntegrationID) + } + + if err := workflow.RemoveIntegrationFromWorkflow(db, *integ); err != nil { return sdk.WrapError(err, "cannot remove integration id %d from workflow %s (id: %d)", prjIntegrationID, wf.Name, wf.ID) } diff --git a/engine/api/workflow/dao.go b/engine/api/workflow/dao.go index a24f58c03f..a87aa180be 100644 --- a/engine/api/workflow/dao.go +++ b/engine/api/workflow/dao.go @@ -17,7 +17,6 @@ import ( "github.com/ovh/cds/engine/api/application" "github.com/ovh/cds/engine/api/environment" "github.com/ovh/cds/engine/api/group" - "github.com/ovh/cds/engine/api/integration" "github.com/ovh/cds/engine/api/keys" "github.com/ovh/cds/engine/api/pipeline" "github.com/ovh/cds/engine/cache" @@ -32,8 +31,8 @@ type PushSecrets struct { EnvironmentdSecrets map[int64][]sdk.Variable } -// LoadAllByProjectIDs returns all workflow for given project ids. -func LoadAllNamesByProjectIDs(ctx context.Context, db gorp.SqlExecutor, projectIDs []int64) ([]sdk.WorkflowName, error) { +// LoadAllNamesByProjectIDs returns all workflow for given project ids. +func LoadAllNamesByProjectIDs(_ context.Context, db gorp.SqlExecutor, projectIDs []int64) ([]sdk.WorkflowName, error) { query := ` SELECT workflow.*, project.projectkey FROM workflow @@ -133,7 +132,7 @@ func UpdateMetadata(db gorp.SqlExecutor, workflowID int64, metadata sdk.Metadata return nil } -// updateFromRepository update the from_repository of a workflow +// UpdateFromRepository update the from_repository of a workflow func UpdateFromRepository(db gorp.SqlExecutor, workflowID int64, fromRepository string) error { if _, err := db.Exec("UPDATE workflow SET from_repository = $1, last_modified = current_timestamp WHERE id = $2", fromRepository, workflowID); err != nil { return sdk.WithStack(err) @@ -173,7 +172,7 @@ func (w *Workflow) PostGet(db gorp.SqlExecutor) error { } // PreUpdate is a db hook -func (w *Workflow) PreUpdate(db gorp.SqlExecutor) error { +func (w *Workflow) PreUpdate(_ gorp.SqlExecutor) error { if w.FromRepository != "" && strings.HasPrefix(w.FromRepository, "http") { fromRepoURL, err := url.Parse(w.FromRepository) if err != nil { @@ -187,9 +186,14 @@ func (w *Workflow) PreUpdate(db gorp.SqlExecutor) error { // PostUpdate is a db hook func (w *Workflow) PostUpdate(db gorp.SqlExecutor) error { - for _, integ := range w.Integrations { - if err := integration.AddOnWorkflow(db, w.ID, integ.ID); err != nil { - return sdk.WrapError(err, "cannot add project event integration (%d) on workflow (%d)", integ.ID, w.ID) + for i := range w.Integrations { + integ := &w.Integrations[i] + if integ.ID != 0 { + continue + } + integ.WorkflowID = w.ID + if err := AddWorkflowIntegration(db, integ); err != nil { + return sdk.WrapError(err, "cannot add project event integration (%d) on workflow (%d)", integ.ProjectIntegration.ID, w.ID) } } return nil @@ -241,7 +245,7 @@ func LoadAllNames(db gorp.SqlExecutor, projID int64) (sdk.IDNames, error) { } // Load loads a workflow for a given user (ie. checking permissions) -func Load(ctx context.Context, db gorp.SqlExecutor, store cache.Store, proj sdk.Project, name string, opts LoadOptions) (*sdk.Workflow, error) { +func Load(ctx context.Context, db gorp.SqlExecutor, _ cache.Store, proj sdk.Project, name string, opts LoadOptions) (*sdk.Workflow, error) { ctx, end := telemetry.Span(ctx, "workflow.Load") defer end() @@ -266,7 +270,7 @@ func Load(ctx context.Context, db gorp.SqlExecutor, store cache.Store, proj sdk. // LoadAndLockByID loads a workflow // LoadByID loads a workflow -func LoadByID(ctx context.Context, db gorp.SqlExecutor, store cache.Store, proj sdk.Project, id int64, opts LoadOptions) (*sdk.Workflow, error) { +func LoadByID(ctx context.Context, db gorp.SqlExecutor, _ cache.Store, proj sdk.Project, id int64, opts LoadOptions) (*sdk.Workflow, error) { dao := opts.GetWorkflowDAO() dao.Filters.WorkflowIDs = []int64{id} @@ -434,7 +438,7 @@ func RenameNode(ctx context.Context, db gorp.SqlExecutor, w *sdk.Workflow) error maxNumberByHookModel := map[int64]int{} var maxForkNumber int - nodesToNamed := []*sdk.Node{} + nodesToNamed := make([]*sdk.Node, 0) // Search max numbers by nodes type for i := range nodes { if nodes[i].Name == "" { @@ -608,7 +612,6 @@ func Update(ctx context.Context, db gorpmapper.SqlExecutorWithTx, store cache.St if err := CompleteWorkflow(ctx, db, wf, proj, LoadOptions{}); err != nil { return err } - if err := CheckValidity(ctx, db, wf); err != nil { return err } @@ -617,10 +620,9 @@ func Update(ctx context.Context, db gorpmapper.SqlExecutorWithTx, store cache.St return sdk.WrapError(err, "unable to delete all notifications on workflow(%d - %s)", wf.ID, wf.Name) } - if err := integration.DeleteFromWorkflow(db, wf.ID); err != nil { + if err := DeleteIntegrationsFromWorkflow(db, wf.ID); err != nil { return sdk.WrapError(err, "unable to delete all integrations on workflow(%d - %s)", wf.ID, wf.Name) } - // reload workflow to delete the current workflow data oldWf, err := LoadByID(ctx, db, store, proj, wf.ID, LoadOptions{Minimal: true}) if err != nil { @@ -647,15 +649,14 @@ func Update(ctx context.Context, db gorpmapper.SqlExecutorWithTx, store cache.St // Keep MaxRun wf.MaxRuns = oldWf.MaxRuns - if err := DeleteWorkflowData(db, *oldWf); err != nil { return sdk.WrapError(err, "unable to delete from old workflow data(%d - %s)", wf.ID, wf.Name) } - // Delete all node ID + // Delete all nodes,joins, integration ID wf.ResetIDs() - filteredPurgeTags := []string{} + filteredPurgeTags := make([]string, 0) for _, t := range wf.PurgeTags { if t != "" { filteredPurgeTags = append(filteredPurgeTags, t) @@ -706,7 +707,6 @@ func Update(ctx context.Context, db gorpmapper.SqlExecutorWithTx, store cache.St return sdk.WrapError(err, "Unable to update workflow") } *wf = dbw.Get() - return nil } @@ -761,7 +761,7 @@ func CompleteWorkflow(ctx context.Context, db gorp.SqlExecutor, w *sdk.Workflow, nodesArray := w.WorkflowData.Array() - if err := checkEventIntegration(proj, w); err != nil { + if err := checkIntegration(proj, w); err != nil { return err } @@ -803,7 +803,7 @@ func CompleteWorkflow(ctx context.Context, db gorp.SqlExecutor, w *sdk.Workflow, } // CheckValidity checks workflow validity -func CheckValidity(ctx context.Context, db gorp.SqlExecutor, w *sdk.Workflow) error { +func CheckValidity(_ context.Context, _ gorp.SqlExecutor, w *sdk.Workflow) error { //Check project is not empty if w.ProjectKey == "" { return sdk.NewErrorFrom(sdk.ErrWorkflowInvalid, "invalid project key") @@ -982,24 +982,25 @@ func checkProjectIntegration(proj sdk.Project, w *sdk.Workflow, n *sdk.Node) err return nil } -// checkEventIntegration checks event integration data -func checkEventIntegration(proj sdk.Project, w *sdk.Workflow) error { +// checkIntegration checks integration data +func checkIntegration(proj sdk.Project, w *sdk.Workflow) error { for i := range w.Integrations { - eventIntegration := w.Integrations[i] + workflowIntegration := &w.Integrations[i] found := false for _, projInt := range proj.Integrations { - if eventIntegration.Name == projInt.Name { - eventIntegration.ID = projInt.ID - w.Integrations[i] = eventIntegration + if workflowIntegration.ProjectIntegration.Name == projInt.Name { + workflowIntegration.ProjectIntegrationID = projInt.ID + workflowIntegration.WorkflowID = w.ID + workflowIntegration.MergeWithModel(projInt.Model) + w.Integrations[i] = *workflowIntegration found = true break } } if !found { - return sdk.WithData(sdk.ErrIntegrationtNotFound, eventIntegration.Name) + return sdk.WithData(sdk.ErrIntegrationtNotFound, workflowIntegration.ProjectIntegration.Name) } } - return nil } diff --git a/engine/api/workflow/dao_test.go b/engine/api/workflow/dao_test.go index cc8fcecd33..243b682d8d 100644 --- a/engine/api/workflow/dao_test.go +++ b/engine/api/workflow/dao_test.go @@ -5,6 +5,7 @@ import ( "context" "encoding/json" "fmt" + "github.com/ovh/cds/engine/api/integration" "io/ioutil" "net/http" "reflect" @@ -206,6 +207,103 @@ func TestInsertSimpleWorkflowWithApplicationAndEnv(t *testing.T) { assert.Equal(t, w.WorkflowData.Node.Context.Mutex, w1.WorkflowData.Node.Context.Mutex) } +func TestUpdateWorkflowIntegration(t *testing.T) { + db, cache := test.SetupPG(t, bootstrap.InitiliazeDB) + + u, _ := assets.InsertAdminUser(t, db) + + // Create project + key := sdk.RandomString(10) + proj := assets.InsertTestProject(t, db, cache, key, key) + + fooModel := sdk.IntegrationModel{ + Name: sdk.RandomString(10), + Author: "foo", + ArtifactManager: true, + DefaultConfig: map[string]sdk.IntegrationConfigValue{ + "Host": { + Type: sdk.IntegrationConfigTypeString, + }, + "Token": { + Type: sdk.IntegrationConfigTypePassword, + }, + }, + AdditionalDefaultConfig: map[string]sdk.IntegrationConfigValue{ + "BuildInfo": { + Type: sdk.IntegrationConfigTypeString, + Value: "defaultValue", + }, + }, + } + require.NoError(t, integration.InsertModel(db, &fooModel)) + t.Cleanup(func() { + integration.DeleteModel(db, fooModel.ID) + }) + + projInt := sdk.ProjectIntegration{ + Name: "Artifactory", + Config: fooModel.DefaultConfig.Clone(), + Model: fooModel, + IntegrationModelID: fooModel.ID, + ProjectID: proj.ID, + } + projInt.Config["Host"] = sdk.IntegrationConfigValue{ + Type: sdk.IntegrationConfigTypeString, + Value: "myhost", + } + projInt.Config["Token"] = sdk.IntegrationConfigValue{ + Type: sdk.IntegrationConfigTypePassword, + Value: "mypassword", + } + require.NoError(t, integration.InsertIntegration(db, &projInt)) + + proj.Integrations = append(proj.Integrations, projInt) + + pip := createEmptyPipeline(t, db, cache, proj, u) + + // RELOAD PROJECT WITH DEPENDENCIES + proj.Pipelines = append(proj.Pipelines, *pip) + + // WORKFLOW TO RUN + w := sdk.Workflow{ + ProjectID: proj.ID, + ProjectKey: proj.Key, + Name: sdk.RandomString(10), + WorkflowData: sdk.WorkflowData{ + Node: sdk.Node{ + Name: "root", + Ref: "root", + Type: sdk.NodeTypePipeline, + Context: &sdk.NodeContext{ + PipelineID: proj.Pipelines[0].ID, + }, + }, + }, + Pipelines: map[int64]sdk.Pipeline{ + proj.Pipelines[0].ID: proj.Pipelines[0], + }, + Integrations: []sdk.WorkflowProjectIntegration{ + { + ProjectIntegration: projInt, + ProjectIntegrationID: projInt.ID, + }, + }, + } + require.NoError(t, workflow.Insert(context.TODO(), db, cache, *proj, &w)) + + buildInfoValue, has := w.Integrations[0].Config["BuildInfo"] + require.True(t, has) + + // Update buildinf + buildInfoValue.Value = "newValue" + w.Integrations[0].Config["BuildInfo"] = buildInfoValue + require.NoError(t, workflow.Update(context.TODO(), db, cache, *proj, &w, workflow.UpdateOptions{})) + + wfDb, err := workflow.LoadByID(context.TODO(), db, cache, *proj, w.ID, workflow.LoadOptions{}) + require.NoError(t, err) + require.Equal(t, "newValue", wfDb.Integrations[0].Config["BuildInfo"].Value) +} + func TestInsertComplexeWorkflowAndExport(t *testing.T) { db, cache := test.SetupPG(t) diff --git a/engine/api/workflow/dao_workflow_integration.go b/engine/api/workflow/dao_workflow_integration.go new file mode 100644 index 0000000000..d194d14577 --- /dev/null +++ b/engine/api/workflow/dao_workflow_integration.go @@ -0,0 +1,63 @@ +package workflow + +import ( + "context" + "github.com/go-gorp/gorp" + "github.com/ovh/cds/engine/api/database/gorpmapping" + "github.com/ovh/cds/engine/api/integration" + "github.com/ovh/cds/sdk" +) + +// AddWorkflowIntegration link a project integration on a workflow +func AddWorkflowIntegration(db gorp.SqlExecutor, integ *sdk.WorkflowProjectIntegration) error { + dbInteg := dbWorkflowProjectIntegration(*integ) + if err := gorpmapping.Insert(db, &dbInteg); err != nil { + return err + } + integ.ID = dbInteg.ID + return nil + +} + +// LoadWorkflowIntegrationsByWorkflowID load workflow integrations by workflowid +func LoadWorkflowIntegrationsByWorkflowID(db gorp.SqlExecutor, id int64) ([]sdk.WorkflowProjectIntegration, error) { + query := gorpmapping.NewQuery(` + SELECT workflow_project_integration.* + FROM workflow_project_integration + WHERE workflow_project_integration.workflow_id = $1 + `).Args(id) + return loadAll(db, query) +} + +// RemoveIntegrationFromWorkflow remove a project integration on a workflow +func RemoveIntegrationFromWorkflow(db gorp.SqlExecutor, workflowInteg sdk.WorkflowProjectIntegration) error { + dbInteg := dbWorkflowProjectIntegration(workflowInteg) + return gorpmapping.Delete(db, &dbInteg) +} + +// DeleteIntegrationsFromWorkflow remove a project integration on a workflow +func DeleteIntegrationsFromWorkflow(db gorp.SqlExecutor, workflowID int64) error { + query := "DELETE FROM workflow_project_integration WHERE workflow_id = $1" + if _, err := db.Exec(query, workflowID); err != nil { + return sdk.WithStack(err) + } + return nil +} + +func loadAll(db gorp.SqlExecutor, query gorpmapping.Query) ([]sdk.WorkflowProjectIntegration, error) { + var integDB []dbWorkflowProjectIntegration + if err := gorpmapping.GetAll(context.Background(), db, query, &integDB); err != nil { + return nil, err + } + var integrations = make([]sdk.WorkflowProjectIntegration, 0, len(integDB)) + for _, workflowInteg := range integDB { + pi, err := integration.LoadProjectIntegrationByID(db, workflowInteg.ProjectIntegrationID) + if err != nil { + return nil, err + } + pi.Blur() + workflowInteg.ProjectIntegration = *pi + integrations = append(integrations, sdk.WorkflowProjectIntegration(workflowInteg)) + } + return integrations, nil +} diff --git a/engine/api/workflow/execute_node_job_run.go b/engine/api/workflow/execute_node_job_run.go index 8186ba1569..b9706911e6 100644 --- a/engine/api/workflow/execute_node_job_run.go +++ b/engine/api/workflow/execute_node_job_run.go @@ -315,7 +315,7 @@ func checkStatusWaiting(ctx context.Context, store cache.Store, jobID int64, sta return nil } -// LoadSecrets loads all secrets for a job run +// LoadDecryptSecrets loads all secrets for a job run func LoadDecryptSecrets(ctx context.Context, db gorp.SqlExecutor, wr *sdk.WorkflowRun, nodeRun *sdk.WorkflowNodeRun) ([]sdk.Variable, error) { entities := []string{SecretProjContext} if nodeRun != nil { @@ -323,6 +323,12 @@ func LoadDecryptSecrets(ctx context.Context, db gorp.SqlExecutor, wr *sdk.Workfl if node == nil { return nil, sdk.WrapError(sdk.ErrWorkflowNodeNotFound, "unable to find node %d in worflow run", nodeRun.WorkflowNodeID) } + for _, integ := range wr.Workflow.Integrations { + if integ.ProjectIntegration.Model.Event { + continue + } + entities = append(entities, fmt.Sprintf(SecretProjIntegrationContext, integ.ProjectIntegrationID)) + } if node.Context != nil { if node.Context.ApplicationID != 0 { entities = append(entities, fmt.Sprintf(SecretAppContext, node.Context.ApplicationID)) diff --git a/engine/api/workflow/execute_node_run.go b/engine/api/workflow/execute_node_run.go index 2c1b1bf707..fdc5c97911 100644 --- a/engine/api/workflow/execute_node_run.go +++ b/engine/api/workflow/execute_node_run.go @@ -590,8 +590,8 @@ func getIntegrationPlugins(db gorp.SqlExecutor, wr *sdk.WorkflowRun, nr *sdk.Wor var artifactManagerModelID int64 for _, int := range wr.Workflow.Integrations { - if int.Model.ArtifactManager { - artifactManagerModelID = int.Model.ID + if int.ProjectIntegration.Model.ArtifactManager { + artifactManagerModelID = int.ProjectIntegration.Model.ID } } if artifactManagerModelID != 0 { @@ -723,9 +723,10 @@ func NodeBuildParametersFromRun(wr sdk.WorkflowRun, id int64) ([]sdk.Parameter, //NodeBuildParametersFromWorkflow returns build_parameters for a node given its id func NodeBuildParametersFromWorkflow(proj sdk.Project, wf *sdk.Workflow, refNode *sdk.Node, ancestorsIds []int64) ([]sdk.Parameter, error) { runContext := nodeRunContext{ - ProjectIntegrations: wf.Integrations, + WorkflowProjectIntegrations: wf.Integrations, + ProjectIntegrations: make([]sdk.ProjectIntegration, 0), } - res := []sdk.Parameter{} + res := make([]sdk.Parameter, 0) if refNode != nil && refNode.Context != nil { if refNode.Context.PipelineID != 0 && wf.Pipelines != nil { pip, has := wf.Pipelines[refNode.Context.PipelineID] diff --git a/engine/api/workflow/factory_dao.go b/engine/api/workflow/factory_dao.go index 468f52d33a..21d7807f44 100644 --- a/engine/api/workflow/factory_dao.go +++ b/engine/api/workflow/factory_dao.go @@ -502,7 +502,7 @@ func (dao WorkflowDAO) withIntegrations(db gorp.SqlExecutor, ws *[]Workflow) err for x := range *ws { w := &(*ws)[x] var err error - w.Integrations, err = integration.LoadWorkflowIntegrationsByWorkflowID(db, w.ID) + w.Integrations, err = LoadWorkflowIntegrationsByWorkflowID(db, w.ID) if err != nil { return err } diff --git a/engine/api/workflow/gorp_model.go b/engine/api/workflow/gorp_model.go index 994725f602..5ebe81afc8 100644 --- a/engine/api/workflow/gorp_model.go +++ b/engine/api/workflow/gorp_model.go @@ -36,6 +36,8 @@ type Coverage sdk.WorkflowNodeRunCoverage type dbNodeRunVulenrabilitiesReport sdk.WorkflowNodeRunVulnerabilityReport +type dbWorkflowProjectIntegration sdk.WorkflowProjectIntegration + // NodeRun is a gorp wrapper around sdk.WorkflowNodeRun type NodeRun struct { WorkflowID sql.NullInt64 `db:"workflow_id"` @@ -254,4 +256,5 @@ func init() { gorpmapping.Register(gorpmapping.New(dbAsCodeEvents{}, "as_code_events", true, "id")) gorpmapping.Register(gorpmapping.New(dbWorkflowRunSecret{}, "workflow_run_secret", false, "id")) gorpmapping.Register(gorpmapping.New(dbRunResult{}, "workflow_run_result", false, "id")) + gorpmapping.Register(gorpmapping.New(dbWorkflowProjectIntegration{}, "workflow_project_integration", true, "id")) } diff --git a/engine/api/workflow/process_data.go b/engine/api/workflow/process_data.go index 3008b8b5db..7dab8263e8 100644 --- a/engine/api/workflow/process_data.go +++ b/engine/api/workflow/process_data.go @@ -14,11 +14,12 @@ import ( ) type nodeRunContext struct { - Application sdk.Application - Pipeline sdk.Pipeline - Environment sdk.Environment - ProjectIntegrations []sdk.ProjectIntegration - NodeGroups []sdk.GroupPermission + Application sdk.Application + Pipeline sdk.Pipeline + Environment sdk.Environment + WorkflowProjectIntegrations []sdk.WorkflowProjectIntegration + ProjectIntegrations []sdk.ProjectIntegration + NodeGroups []sdk.GroupPermission } func processWorkflowDataRun(ctx context.Context, db gorpmapper.SqlExecutorWithTx, store cache.Store, proj sdk.Project, wr *sdk.WorkflowRun, hookEvent *sdk.WorkflowNodeRunHookEvent, manual *sdk.WorkflowNodeRunManual, startingFromNode *int64) (*ProcessorReport, bool, error) { diff --git a/engine/api/workflow/process_node.go b/engine/api/workflow/process_node.go index 1de532bceb..438a369261 100644 --- a/engine/api/workflow/process_node.go +++ b/engine/api/workflow/process_node.go @@ -135,7 +135,8 @@ func processNode(ctx context.Context, db gorpmapper.SqlExecutorWithTx, store cac // BUILD RUN CONTEXT // Process parameters for the jobs runContext := nodeRunContext{ - ProjectIntegrations: wr.Workflow.Integrations, + WorkflowProjectIntegrations: wr.Workflow.Integrations, + ProjectIntegrations: make([]sdk.ProjectIntegration, 0), } if n.Context.PipelineID != 0 { runContext.Pipeline = wr.Workflow.Pipelines[n.Context.PipelineID] @@ -149,7 +150,7 @@ func processNode(ctx context.Context, db gorpmapper.SqlExecutorWithTx, store cac if n.Context.ProjectIntegrationID != 0 { runContext.ProjectIntegrations = append(runContext.ProjectIntegrations, wr.Workflow.ProjectIntegrations[n.Context.ProjectIntegrationID]) } - runContext.ProjectIntegrations = append(runContext.ProjectIntegrations, wr.Workflow.Integrations...) + runContext.WorkflowProjectIntegrations = append(runContext.WorkflowProjectIntegrations, wr.Workflow.Integrations...) // NODE CONTEXT BUILD PARAMETER computeNodeContextBuildParameters(ctx, proj, wr, nr, n, runContext) diff --git a/engine/api/workflow/process_node_test.go b/engine/api/workflow/process_node_test.go index 71e56f90f9..7f7a28d7c4 100644 --- a/engine/api/workflow/process_node_test.go +++ b/engine/api/workflow/process_node_test.go @@ -17,6 +17,7 @@ import ( "github.com/ovh/cds/engine/api/application" "github.com/ovh/cds/engine/api/authentication" "github.com/ovh/cds/engine/api/bootstrap" + "github.com/ovh/cds/engine/api/integration" "github.com/ovh/cds/engine/api/pipeline" "github.com/ovh/cds/engine/api/repositoriesmanager" "github.com/ovh/cds/engine/api/services" @@ -2227,6 +2228,123 @@ func TestGitParamWithJoin(t *testing.T) { assert.Equal(t, "feat/branch", wr.WorkflowNodeRuns[w.WorkflowData.Joins[0].Triggers[0].ChildNode.ID][0].VCSBranch) } +// Test with artifact manager parameter +func TestIntegrationParam(t *testing.T) { + db, cache := test.SetupPG(t, bootstrap.InitiliazeDB) + + u, _ := assets.InsertAdminUser(t, db) + + // Create project + key := sdk.RandomString(10) + proj := assets.InsertTestProject(t, db, cache, key, key) + + fooModel := sdk.IntegrationModel{ + Name: sdk.RandomString(10), + Author: "foo", + ArtifactManager: true, + DefaultConfig: map[string]sdk.IntegrationConfigValue{ + "Host": { + Type: sdk.IntegrationConfigTypeString, + }, + "Token": { + Type: sdk.IntegrationConfigTypePassword, + }, + }, + AdditionalDefaultConfig: map[string]sdk.IntegrationConfigValue{ + "BuildInfo": { + Type: sdk.IntegrationConfigTypeString, + Value: "defaultValue", + }, + }, + } + require.NoError(t, integration.InsertModel(db, &fooModel)) + t.Cleanup(func() { + integration.DeleteModel(db, fooModel.ID) + }) + + projInt := sdk.ProjectIntegration{ + Name: "Artifactory", + Config: fooModel.DefaultConfig.Clone(), + Model: fooModel, + IntegrationModelID: fooModel.ID, + ProjectID: proj.ID, + } + projInt.Config["Host"] = sdk.IntegrationConfigValue{ + Type: sdk.IntegrationConfigTypeString, + Value: "myhost", + } + projInt.Config["Token"] = sdk.IntegrationConfigValue{ + Type: sdk.IntegrationConfigTypePassword, + Value: "mypassword", + } + require.NoError(t, integration.InsertIntegration(db, &projInt)) + + proj.Integrations = append(proj.Integrations, projInt) + + pip := createEmptyPipeline(t, db, cache, proj, u) + + // RELOAD PROJECT WITH DEPENDENCIES + proj.Pipelines = append(proj.Pipelines, *pip) + + // WORKFLOW TO RUN + w := sdk.Workflow{ + ProjectID: proj.ID, + ProjectKey: proj.Key, + Name: sdk.RandomString(10), + WorkflowData: sdk.WorkflowData{ + Node: sdk.Node{ + Name: "root", + Ref: "root", + Type: sdk.NodeTypePipeline, + Context: &sdk.NodeContext{ + PipelineID: proj.Pipelines[0].ID, + }, + }, + }, + Pipelines: map[int64]sdk.Pipeline{ + proj.Pipelines[0].ID: proj.Pipelines[0], + }, + Integrations: []sdk.WorkflowProjectIntegration{ + { + ProjectIntegration: projInt, + ProjectIntegrationID: projInt.ID, + }, + }, + } + + require.NoError(t, workflow.Insert(context.TODO(), db, cache, *proj, &w)) + + // CREATE RUN + var manualEvent sdk.WorkflowNodeRunManual + manualEvent.Payload = map[string]string{ + "git.branch": "feat/branch", + "my.value": "bar", + } + + consumer, _ := authentication.LoadConsumerByTypeAndUserID(context.TODO(), db, sdk.ConsumerLocal, u.ID, authentication.LoadConsumerOptions.WithAuthentifiedUser) + opts := &sdk.WorkflowRunPostHandlerOption{ + Manual: &manualEvent, + AuthConsumerID: consumer.ID, + } + wr, err := workflow.CreateRun(db.DbMap, &w, *opts) + require.NoError(t, err) + wr.Workflow = w + + _, errR := workflow.StartWorkflowRun(context.TODO(), db, cache, *proj, wr, opts, *consumer, nil) + require.NoError(t, errR) + + require.Equal(t, 1, len(wr.WorkflowNodeRuns)) + require.Equal(t, 1, len(wr.WorkflowNodeRuns[w.WorkflowData.Node.ID])) + + mapParams := sdk.ParametersToMap(wr.WorkflowNodeRuns[w.WorkflowData.Node.ID][0].BuildParameters) + require.Equal(t, "Artifactory", mapParams["cds.integration.artifact_manager"]) + require.Equal(t, "myhost", mapParams["cds.integration.artifact_manager.Host"]) + require.Equal(t, "defaultValue", mapParams["cds.integration.artifact_manager.BuildInfo"]) + + _, has := mapParams["cds.integration.artifact_manager.Token"] + require.False(t, has) +} + // Payload: branch only func TestGitParamOn2ApplicationSameRepoWithFork(t *testing.T) { db, cache := test.SetupPG(t, bootstrap.InitiliazeDB) diff --git a/engine/api/workflow/process_parameters.go b/engine/api/workflow/process_parameters.go index d0d4328081..18ba415a36 100644 --- a/engine/api/workflow/process_parameters.go +++ b/engine/api/workflow/process_parameters.go @@ -75,11 +75,26 @@ func getBuildParameterFromNodeContext(proj sdk.Project, w sdk.Workflow, runConte } } - // COMPUTE INTEGRATION VARIABLE FROM NODE CONTEXT - for _, integ := range runContext.ProjectIntegrations { - if !sdk.AllowIntegrationInVariable(integ.Model) { + // COmpute integration from workflow + for _, integ := range runContext.WorkflowProjectIntegrations { + if !sdk.AllowIntegrationInVariable(integ.ProjectIntegration.Model) { continue } + prefix := sdk.GetIntegrationVariablePrefix(integ.ProjectIntegration.Model) + vars["cds.integration."+prefix] = integ.ProjectIntegration.Name + tmp := sdk.ParametersFromIntegration(prefix, integ.ProjectIntegration.Config) + for k, v := range tmp { + vars[k] = v + } + + tmpWkfConf := sdk.ParametersFromIntegration(prefix, integ.Config) + for k, v := range tmpWkfConf { + vars[k] = v + } + } + + // COMPUTE INTEGRATION VARIABLE FROM NODE CONTEXT + for _, integ := range runContext.ProjectIntegrations { prefix := sdk.GetIntegrationVariablePrefix(integ.Model) vars["cds.integration."+prefix] = integ.Name tmp := sdk.ParametersFromIntegration(prefix, integ.Config) diff --git a/engine/api/workflow/workflow_run_results.go b/engine/api/workflow/workflow_run_results.go index 02cbf51fd9..b4b0594492 100644 --- a/engine/api/workflow/workflow_run_results.go +++ b/engine/api/workflow/workflow_run_results.go @@ -21,9 +21,9 @@ func GetRunResultKey(runID int64, t sdk.WorkflowRunResultType, fileName string) return cache.Key(KeyResult, string(t), strconv.Itoa(int(runID)), fileName) } -func CanUploadRunResult(ctx context.Context, db *gorp.DbMap, store cache.Store, wr sdk.WorkflowRun, apiRef sdk.CDNRunResultAPIRef) (bool, error) { +func CanUploadRunResult(ctx context.Context, db *gorp.DbMap, store cache.Store, wr sdk.WorkflowRun, runResultCheck sdk.WorkflowRunResultCheck) (bool, error) { // Check run - if wr.ID != apiRef.RunID { + if wr.ID != runResultCheck.RunID { return false, sdk.WrapError(sdk.ErrInvalidData, "unable to upload and artifact for this run") } if sdk.StatusIsTerminated(wr.Status) { @@ -38,7 +38,7 @@ func CanUploadRunResult(ctx context.Context, db *gorp.DbMap, store cache.Store, } // Get last noderun nodeRun := nodeRuns[0] - if nodeRun.ID != apiRef.RunNodeID { + if nodeRun.ID != runResultCheck.RunNodeID { continue } nrs = nodeRuns @@ -47,29 +47,29 @@ func CanUploadRunResult(ctx context.Context, db *gorp.DbMap, store cache.Store, } } if len(nrs) == 0 { - return false, sdk.WrapError(sdk.ErrNotFound, "unable to find node run: %d", apiRef.RunNodeID) + return false, sdk.WrapError(sdk.ErrNotFound, "unable to find node run: %d", runResultCheck.RunNodeID) } // Check job data - nodeRunJob, err := LoadNodeJobRun(ctx, db, store, apiRef.RunJobID) + nodeRunJob, err := LoadNodeJobRun(ctx, db, store, runResultCheck.RunJobID) if err != nil { return false, err } - if nodeRunJob.WorkflowNodeRunID != apiRef.RunNodeID { - return false, sdk.WrapError(sdk.ErrInvalidData, "invalid node run %d", apiRef.RunNodeID) + if nodeRunJob.WorkflowNodeRunID != runResultCheck.RunNodeID { + return false, sdk.WrapError(sdk.ErrInvalidData, "invalid node run %d", runResultCheck.RunNodeID) } if sdk.StatusIsTerminated(nodeRunJob.Status) { return false, sdk.WrapError(sdk.ErrInvalidData, "unable to upload artifact on a terminated job") } // Check File Name - runResults, err := LoadRunResultsByRunIDAndType(ctx, db, apiRef.RunID, apiRef.RunResultType) + runResults, err := LoadRunResultsByRunIDAndType(ctx, db, runResultCheck.RunID, runResultCheck.ResultType) if err != nil { - return false, sdk.WrapError(err, "unable to load run results for run %d", apiRef.RunID) + return false, sdk.WrapError(err, "unable to load run results for run %d", runResultCheck.RunID) } for _, result := range runResults { var fileName string - switch apiRef.RunResultType { + switch runResultCheck.ResultType { case sdk.WorkflowRunResultTypeArtifact: refArt, err := result.GetArtifact() if err != nil { @@ -82,9 +82,15 @@ func CanUploadRunResult(ctx context.Context, db *gorp.DbMap, store cache.Store, return false, err } fileName = refCov.Name + case sdk.WorkflowRunResultTypeArtifactManager: + refArt, err := result.GetArtifactManager() + if err != nil { + return false, err + } + fileName = refArt.Name } - if fileName != apiRef.ToFilename() { + if fileName != runResultCheck.Name { continue } @@ -98,15 +104,15 @@ func CanUploadRunResult(ctx context.Context, db *gorp.DbMap, store cache.Store, break } if previousNodeRunUpload == nil { - return false, sdk.WrapError(sdk.ErrConflictData, "artifact %s has already been uploaded from another pipeline", apiRef.ArtifactName) + return false, sdk.WrapError(sdk.ErrConflictData, "artifact %s has already been uploaded from another pipeline", runResultCheck.Name) } // Check Sub num if result.SubNum == nrs[0].SubNumber { - return false, sdk.WrapError(sdk.ErrConflictData, "artifact %s has already been uploaded", apiRef.ArtifactName) + return false, sdk.WrapError(sdk.ErrConflictData, "artifact %s has already been uploaded", runResultCheck.Name) } if result.SubNum > nrs[0].SubNumber { - return false, sdk.WrapError(sdk.ErrConflictData, "artifact %s cannot be uploaded into a previous run", apiRef.ArtifactName) + return false, sdk.WrapError(sdk.ErrConflictData, "artifact %s cannot be uploaded into a previous run", runResultCheck.Name) } } return true, nil @@ -127,6 +133,12 @@ func AddResult(db *gorp.DbMap, store cache.Store, runResult *sdk.WorkflowRunResu if err != nil { return err } + case sdk.WorkflowRunResultTypeArtifactManager: + var err error + cacheKey, err = verifyAddResultArtifactManager(store, runResult) + if err != nil { + return err + } default: return sdk.WrapError(sdk.ErrInvalidData, "unkonwn result type %s", runResult.Type) } @@ -146,6 +158,25 @@ func AddResult(db *gorp.DbMap, store cache.Store, runResult *sdk.WorkflowRunResu return sdk.WithStack(store.Delete(cacheKey)) } +func verifyAddResultArtifactManager(store cache.Store, runResult *sdk.WorkflowRunResult) (string, error) { + artResult, err := runResult.GetArtifactManager() + if err != nil { + return "", err + } + if err := artResult.IsValid(); err != nil { + return "", err + } + cacheKey := GetRunResultKey(runResult.WorkflowRunID, runResult.Type, artResult.Name) + b, err := store.Exist(cacheKey) + if err != nil { + return cacheKey, err + } + if !b { + return cacheKey, sdk.WrapError(sdk.ErrForbidden, "unable to upload an unchecked artifact manager file") + } + return cacheKey, nil +} + func verifyAddResultCoverage(store cache.Store, runResult *sdk.WorkflowRunResult) (string, error) { coverageRunResult, err := runResult.GetCoverage() if err != nil { diff --git a/engine/api/workflow/workflow_run_results_test.go b/engine/api/workflow/workflow_run_results_test.go index f2b2acf931..47c7932636 100644 --- a/engine/api/workflow/workflow_run_results_test.go +++ b/engine/api/workflow/workflow_run_results_test.go @@ -65,16 +65,13 @@ func TestCanUploadArtifactTerminatedJob(t *testing.T) { ctx := context.Background() db, store := test.SetupPG(t) - proj, wk, workflowRun, nodeRun, jobRun := createRunNodeRunAndJob(t, db, store) - - artifactRef := sdk.CDNRunResultAPIRef{ - ProjectKey: proj.Name, - WorkflowName: wk.Name, - WorkflowID: wk.ID, - RunJobID: jobRun.ID, - RunNodeID: nodeRun.ID, - RunID: workflowRun.ID, - ArtifactName: "myartifact", + _, _, workflowRun, nodeRun, jobRun := createRunNodeRunAndJob(t, db, store) + + artifactRef := sdk.WorkflowRunResultCheck{ + RunJobID: jobRun.ID, + RunNodeID: nodeRun.ID, + RunID: workflowRun.ID, + Name: "myartifact", } jobRun.Status = sdk.StatusSuccess @@ -89,16 +86,13 @@ func TestCanUploadArtifactWrongNodeRun(t *testing.T) { ctx := context.Background() db, store := test.SetupPG(t) - proj, wk, workflowRun, nodeRun, jobRun := createRunNodeRunAndJob(t, db, store) + _, _, workflowRun, nodeRun, jobRun := createRunNodeRunAndJob(t, db, store) - artifactRef := sdk.CDNRunResultAPIRef{ - ProjectKey: proj.Key, - WorkflowName: wk.Name, - WorkflowID: wk.ID, - RunJobID: jobRun.ID, - RunNodeID: nodeRun.ID + 1, - RunID: workflowRun.ID, - ArtifactName: "myartifact", + artifactRef := sdk.WorkflowRunResultCheck{ + RunJobID: jobRun.ID, + RunNodeID: nodeRun.ID + 1, + RunID: workflowRun.ID, + Name: "myartifact", } _, err := workflow.CanUploadRunResult(ctx, db.DbMap, store, workflowRun, artifactRef) @@ -110,17 +104,14 @@ func TestCanUploadArtifactAlreadyExist(t *testing.T) { ctx := context.Background() db, store := test.SetupPG(t) - proj, wk, workflowRun, nodeRun, jobRun := createRunNodeRunAndJob(t, db, store) - - artifactRef := sdk.CDNRunResultAPIRef{ - ProjectKey: proj.Key, - WorkflowName: wk.Name, - WorkflowID: wk.ID, - RunJobID: jobRun.ID, - RunNodeID: nodeRun.ID, - RunID: workflowRun.ID, - ArtifactName: "myartifact", - RunResultType: sdk.WorkflowRunResultTypeArtifact, + _, _, workflowRun, nodeRun, jobRun := createRunNodeRunAndJob(t, db, store) + + artifactRef := sdk.WorkflowRunResultCheck{ + RunJobID: jobRun.ID, + RunNodeID: nodeRun.ID, + RunID: workflowRun.ID, + Name: "myartifact", + ResultType: sdk.WorkflowRunResultTypeArtifact, } result := sdk.WorkflowRunResult{ @@ -158,17 +149,14 @@ func TestCanUploadArtifactAlreadyExistInMoreRecentSubNum(t *testing.T) { ctx := context.Background() db, store := test.SetupPG(t) - proj, wk, workflowRun, nodeRun, jobRun := createRunNodeRunAndJob(t, db, store) - - artifactRef := sdk.CDNRunResultAPIRef{ - ProjectKey: proj.Key, - WorkflowName: wk.Name, - WorkflowID: wk.ID, - RunJobID: jobRun.ID, - RunNodeID: nodeRun.ID, - RunID: workflowRun.ID, - ArtifactName: "myartifact", - RunResultType: sdk.WorkflowRunResultTypeArtifact, + _, _, workflowRun, nodeRun, jobRun := createRunNodeRunAndJob(t, db, store) + + artifactRef := sdk.WorkflowRunResultCheck{ + RunJobID: jobRun.ID, + RunNodeID: nodeRun.ID, + RunID: workflowRun.ID, + Name: "myartifact", + ResultType: sdk.WorkflowRunResultTypeArtifact, } result := sdk.WorkflowRunResult{ @@ -206,7 +194,7 @@ func TestCanUploadArtifactAlreadyExistInAPreviousSubNum(t *testing.T) { ctx := context.Background() db, store := test.SetupPG(t) - proj, wk, workflowRun, nodeRun, jobRun := createRunNodeRunAndJob(t, db, store) + _, wk, workflowRun, nodeRun, jobRun := createRunNodeRunAndJob(t, db, store) nodeRun2 := workflow.NodeRun{ WorkflowRunID: workflowRun.ID, @@ -222,14 +210,11 @@ func TestCanUploadArtifactAlreadyExistInAPreviousSubNum(t *testing.T) { require.NoError(t, err) workflowRun = *run2 - artifactRef := sdk.CDNRunResultAPIRef{ - ProjectKey: proj.Key, - WorkflowName: wk.Name, - WorkflowID: wk.ID, - RunJobID: jobRun.ID, - RunNodeID: nodeRun2.ID, - RunID: workflowRun.ID, - ArtifactName: "myartifact", + artifactRef := sdk.WorkflowRunResultCheck{ + RunJobID: jobRun.ID, + RunNodeID: nodeRun2.ID, + RunID: workflowRun.ID, + Name: "myartifact", } result := sdk.WorkflowRunResult{ diff --git a/engine/api/workflow_import_test.go b/engine/api/workflow_import_test.go index 5023dbe41b..26c2d53bf6 100644 --- a/engine/api/workflow_import_test.go +++ b/engine/api/workflow_import_test.go @@ -3,6 +3,7 @@ package api import ( "bytes" "context" + "github.com/ovh/cds/engine/api/integration" "io/ioutil" "net/http/httptest" "sort" @@ -1115,3 +1116,94 @@ workflow: assert.Equal(t, g2.Name, w.Groups[1].Group.Name) assert.Equal(t, sdk.PermissionRead, w.Groups[1].Permission) } + +func Test_postWorkflowImportHandler_WithArtifactManager(t *testing.T) { + api, db, _ := newTestAPI(t) + + u, pass := assets.InsertAdminUser(t, db) + proj := assets.InsertTestProject(t, db, api.Cache, sdk.RandomString(10), sdk.RandomString(10)) + + // Add Artifact manager + model := sdk.IntegrationModel{ + Name: sdk.RandomString(10), + ArtifactManager: true, + DefaultConfig: map[string]sdk.IntegrationConfigValue{ + "host": { + Type: "string", + }, + }, + AdditionalDefaultConfig: map[string]sdk.IntegrationConfigValue{ + "build.path": { + Type: "string", + Value: "foo/bar", + }, + }, + } + require.NoError(t, integration.InsertModel(db, &model)) + t.Cleanup(func() { + integration.DeleteModel(db, model.ID) + }) + + pp := &sdk.ProjectIntegration{ + Name: "my-arti", + Model: model, + ProjectID: proj.ID, + Config: model.DefaultConfig, + IntegrationModelID: model.ID, + } + + integration.InsertIntegration(db, pp) + proj.Integrations = []sdk.ProjectIntegration{*pp} + + test.NotNil(t, proj) + pip := sdk.Pipeline{ + ProjectID: proj.ID, + ProjectKey: proj.Key, + Name: "pip1", + } + sdk.AddParameter(&pip.Parameter, "name", sdk.StringParameter, "value") + test.NoError(t, pipeline.InsertPipeline(db, &pip)) + + //Prepare request + vars := map[string]string{ + "permProjectKey": proj.Key, + } + uri := api.Router.GetRoute("POST", api.postWorkflowImportHandler, vars) + test.NotEmpty(t, uri) + req := assets.NewAuthentifiedRequest(t, u, pass, "POST", uri, nil) + + body := `name: test_1 +version: v2.0 +workflow: + pip1: + pipeline: pip1 + parameters: + name: value + pip1_2: + depends_on: + - pip1 + pipeline: pip1 +integrations: + my-arti: + type: artifact_manager + config: + build.path: + type: string + value: myvalue +metadata: + default_tags: git.branch,git.author,git.hash` + req.Body = ioutil.NopCloser(strings.NewReader(body)) + req.Header.Set("Content-Type", "application/x-yaml") + + //Do the request + rec := httptest.NewRecorder() + api.Router.Mux.ServeHTTP(rec, req) + assert.Equal(t, 200, rec.Code) + + w, err := workflow.Load(context.TODO(), db, api.Cache, *proj, "test_1", workflow.LoadOptions{}) + test.NoError(t, err) + + require.Equal(t, 1, len(w.Integrations)) + require.Equal(t, pp.ID, w.Integrations[0].ProjectIntegrationID) + require.Equal(t, "myvalue", w.Integrations[0].Config["build.path"].Value) +} diff --git a/engine/api/workflow_queue.go b/engine/api/workflow_queue.go index 79ebe8fdf6..dbad57f0a5 100644 --- a/engine/api/workflow_queue.go +++ b/engine/api/workflow_queue.go @@ -1065,36 +1065,21 @@ func (api *API) workflowRunResultCheckUploadHandler() service.Handler { return err } - if !isCDN(ctx) { - return sdk.WrapError(sdk.ErrForbidden, "only CDN can call this route") + if !isCDN(ctx) && !isWorker(ctx) { + return sdk.WrapError(sdk.ErrForbidden, "only CDN and worker can call this route") } wr, err := workflow.LoadRunByJobID(api.mustDBWithCtx(ctx), jobID, workflow.LoadRunOptions{DisableDetailledNodeRun: true}) if err != nil { return err } - proj, err := project.LoadByID(api.mustDB(), wr.ProjectID) - if err != nil { - return err - } - - _, enabled := featureflipping.IsEnabled(ctx, gorpmapping.Mapper, api.mustDB(), sdk.FeatureCDNArtifact, map[string]string{ - "project_key": proj.Key, - }) - if !enabled { - return sdk.WrapError(sdk.ErrForbidden, "cdn is not enabled for project %s", proj.Key) - } - var apiRef sdk.CDNRunResultAPIRef - if err := service.UnmarshalBody(r, &apiRef); err != nil { + var runResultCheck sdk.WorkflowRunResultCheck + if err := service.UnmarshalBody(r, &runResultCheck); err != nil { return sdk.WithStack(err) } - if apiRef.ToFilename() == "" { - return sdk.WrapError(sdk.ErrInvalidData, "unable to read run result api ref") - } - - b, err := workflow.CanUploadRunResult(ctx, api.mustDBWithCtx(ctx), api.Cache, *wr, apiRef) + b, err := workflow.CanUploadRunResult(ctx, api.mustDBWithCtx(ctx), api.Cache, *wr, runResultCheck) if err != nil { return err } @@ -1103,8 +1088,8 @@ func (api *API) workflowRunResultCheckUploadHandler() service.Handler { } // Save check - if err := api.Cache.SetWithTTL(workflow.GetRunResultKey(apiRef.RunID, apiRef.RunResultType, apiRef.ArtifactName), true, 600); err != nil { - return sdk.WrapError(err, "unable to cache result artifact check %s ", apiRef.ToFilename()) + if err := api.Cache.SetWithTTL(workflow.GetRunResultKey(runResultCheck.RunID, runResultCheck.ResultType, runResultCheck.Name), true, 600); err != nil { + return sdk.WrapError(err, "unable to cache result artifact check %s ", runResultCheck.Name) } return nil } @@ -1117,7 +1102,7 @@ func (api *API) postWorkflowRunResultsHandler() service.Handler { return err } - if !isCDN(ctx) { + if !isCDN(ctx) && !isWorker(ctx) { return sdk.WrapError(sdk.ErrForbidden, "only CDN can call this route") } diff --git a/engine/api/workflow_run.go b/engine/api/workflow_run.go index 384b7b206f..d3e34a031f 100644 --- a/engine/api/workflow_run.go +++ b/engine/api/workflow_run.go @@ -1188,10 +1188,10 @@ func saveWorkflowRunSecrets(ctx context.Context, db *gorp.DbMap, projID int64, w ppIDs[n.Context.ProjectIntegrationID] = "" } for _, n := range wr.Workflow.Integrations { - if !sdk.AllowIntegrationInVariable(n.Model) { + if !sdk.AllowIntegrationInVariable(n.ProjectIntegration.Model) { continue } - ppIDs[n.ID] = "" + ppIDs[n.ProjectIntegrationID] = "" } for ppID := range ppIDs { diff --git a/engine/api/workflow_test.go b/engine/api/workflow_test.go index 3b1015c1dd..37b2986841 100644 --- a/engine/api/workflow_test.go +++ b/engine/api/workflow_test.go @@ -843,7 +843,7 @@ func Test_putWorkflowHandler(t *testing.T) { }, }, }, - Integrations: []sdk.ProjectIntegration{projInt}, + Integrations: []sdk.WorkflowProjectIntegration{{ProjectIntegration: projInt}}, } workflow1.WorkflowData.Node.Hooks[0].Config[sdk.HookConfigEventFilter] = sdk.WorkflowNodeHookConfigValue{ Value: "push;create", @@ -965,7 +965,9 @@ func Test_deleteWorkflowEventIntegrationHandler(t *testing.T) { }, }, }, - Integrations: []sdk.ProjectIntegration{projInt}, + Integrations: []sdk.WorkflowProjectIntegration{ + {ProjectIntegration: projInt}, + }, } req = assets.NewAuthentifiedRequest(t, u, pass, "PUT", uri, &workflow1) diff --git a/engine/cdn/cdn_file.go b/engine/cdn/cdn_file.go index 3fbcfe3a6c..204a1d5f2f 100644 --- a/engine/cdn/cdn_file.go +++ b/engine/cdn/cdn_file.go @@ -59,7 +59,15 @@ func (s *Service) storeFile(ctx context.Context, sig cdn.Signature, reader io.Re case sdk.CDNTypeItemRunResult: // Call CDS API to check if we can upload the run result runResultApiRef, _ := it.GetCDNRunResultApiRef() - if err := s.Client.QueueWorkflowRunResultCheck(ctx, sig.JobID, *runResultApiRef); err != nil { + + runResultCheck := sdk.WorkflowRunResultCheck{ + Name: runResultApiRef.ArtifactName, + ResultType: runResultApiRef.RunResultType, + RunID: runResultApiRef.RunID, + RunNodeID: runResultApiRef.RunNodeID, + RunJobID: runResultApiRef.RunJobID, + } + if err := s.Client.QueueWorkflowRunResultCheck(ctx, sig.JobID, runResultCheck); err != nil { return err } } @@ -111,7 +119,7 @@ func (s *Service) storeFile(ctx context.Context, sig cdn.Signature, reader io.Re if err != nil { return sdk.WithStack(err) } - defer tx.Rollback() + defer tx.Rollback() //nolint // Check and Clean file with same ref if err := s.cleanPreviousFileItem(ctx, tx, sig, itemType, apiRef.ToFilename()); err != nil { diff --git a/engine/sql/api/222_workflow_project_integration.sql b/engine/sql/api/222_workflow_project_integration.sql new file mode 100644 index 0000000000..950dfef407 --- /dev/null +++ b/engine/sql/api/222_workflow_project_integration.sql @@ -0,0 +1,10 @@ +-- +migrate Up +ALTER TABLE "workflow_project_integration" ADD COLUMN config JSONB; +ALTER TABLE "integration_model" RENAME COLUMN deployment_default_config TO additional_default_config; + +-- +migrate Down +ALTER TABLE "workflow_project_integration" DROP COLUMN config; +ALTER TABLE "integration_model" RENAME COLUMN additional_default_config TO deployment_default_config; + + + diff --git a/engine/worker/internal/action/builtin_artifact_download.go b/engine/worker/internal/action/builtin_artifact_download.go index 443b697508..9c3ecf78e0 100644 --- a/engine/worker/internal/action/builtin_artifact_download.go +++ b/engine/worker/internal/action/builtin_artifact_download.go @@ -9,14 +9,17 @@ import ( "path/filepath" "regexp" "strconv" + "strings" "sync" "time" + "github.com/golang/protobuf/ptypes/empty" "github.com/rockbears/log" "github.com/spf13/afero" "github.com/ovh/cds/engine/worker/pkg/workerruntime" "github.com/ovh/cds/sdk" + "github.com/ovh/cds/sdk/grpcplugin/integrationplugin" ) func RunArtifactDownload(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, _ []sdk.Variable) (sdk.Result, error) { @@ -73,6 +76,14 @@ func RunArtifactDownload(ctx context.Context, wk workerruntime.Runtime, a sdk.Ac return res, err } + pluginArtifactManagement := wk.GetPlugin(sdk.GRPCPluginDownloadArtifact) + + // Priority: + // 1. Integration artifact manager on workflow + // 2. CDN activated or not + if pluginArtifactManagement != nil { + return GetArtifactFromIntegrationPlugin(ctx, wk, res, pattern, reg, destPath, pluginArtifactManagement, project, workflow, n) + } // GET Artifact from CDS API if !wk.FeatureEnabled(sdk.FeatureCDNArtifact) { return GetArtifactFromAPI(ctx, wk, project, workflow, n, res, pattern, reg, tag, destPath, wkDirFS) @@ -141,6 +152,121 @@ func RunArtifactDownload(ctx context.Context, wk workerruntime.Runtime, a sdk.Ac return res, nil } +func GetArtifactFromIntegrationPlugin(ctx context.Context, wk workerruntime.Runtime, res sdk.Result, pattern string, regexp *regexp.Regexp, destPath string, plugin *sdk.GRPCPlugin, key, wkfName string, number int64) (sdk.Result, error) { + pfName := sdk.ParameterFind(wk.Parameters(), "cds.integration.artifact_manager") + if pfName == nil { + return res, sdk.NewErrorFrom(sdk.ErrNotFound, "unable to retrieve artifact manager integration... Aborting") + } + + binary := plugin.GetBinary(strings.ToLower(sdk.GOOS), strings.ToLower(sdk.GOARCH)) + if binary == nil { + return res, fmt.Errorf("unable to retrieve the plugin for artifact download integration %s... Aborting", pfName.Value) + } + + wg := new(sync.WaitGroup) + runResults, err := wk.Client().WorkflowRunResultsList(ctx, key, wkfName, number) + if err != nil { + return res, err + } + + wg.Add(len(runResults)) + for _, runResult := range runResults { + if runResult.Type != sdk.WorkflowRunResultTypeArtifactManager { + wg.Done() + continue + } + + artData, err := runResult.GetArtifactManager() + if err != nil { + return res, err + } + + opts := sdk.ParametersToMap(wk.Parameters()) + repoName := opts["cds.integration.artifact_manager.artifactory.cds_repository"] + if repoName != artData.RepoName { + wk.SendLog(ctx, workerruntime.LevelDebug, fmt.Sprintf("%s does not match configured repo name %s - skipped", repoName, artData.RepoName)) + continue + } + + if pattern != "" && !regexp.MatchString(artData.Name) { + wk.SendLog(ctx, workerruntime.LevelDebug, fmt.Sprintf("%s does not match pattern %s - skipped", artData.Name, pattern)) + wg.Done() + continue + } + destFile := path.Join(destPath, artData.Name) + opts[sdk.ArtifactDownloadPluginInputDestinationPath] = destFile + opts[sdk.ArtifactDownloadPluginInputFilePath] = artData.Path + opts[sdk.ArtifactDownloadPluginInputMd5] = artData.MD5 + opts[sdk.ArtifactDownloadPluginInputPerm] = strconv.FormatUint(uint64(artData.Perm), 10) + + go func(opts map[string]string) { + defer wg.Done() + wk.SendLog(ctx, workerruntime.LevelInfo, fmt.Sprintf("Downloading artifact %s from %s...", artData.Name, repoName)) + if err := runGRPCIntegrationPulugin(ctx, wk, binary, opts); err != nil { + res.Status = sdk.StatusFail + res.Reason = err.Error() + } + return + }(opts) + // Be kind with the artifact manager + if len(runResults) > 1 { + time.Sleep(250 * time.Millisecond) + } + } + wg.Wait() + return res, nil +} + +func runGRPCIntegrationPulugin(ctx context.Context, wk workerruntime.Runtime, binary *sdk.GRPCPluginBinary, opts map[string]string) error { + pluginSocket, err := startGRPCPlugin(ctx, binary.PluginName, wk, binary, startGRPCPluginOptions{}) + if err != nil { + return fmt.Errorf("unable to start GRPCPlugin: %v", err) + } + + c, err := integrationplugin.Client(context.Background(), pluginSocket.Socket) + if err != nil { + return fmt.Errorf("unable to call GRPCPlugin: %v", err) + } + + pluginSocket.Client = c + if _, err := c.Manifest(context.Background(), new(empty.Empty)); err != nil { + return fmt.Errorf("unable to call GRPCPlugin: %v", err) + } + + pluginClient := pluginSocket.Client + integrationPluginClient, ok := pluginClient.(integrationplugin.IntegrationPluginClient) + if !ok { + return fmt.Errorf("unable to retrieve integration GRPCPlugin: %v", err) + } + + logCtx, stopLogs := context.WithCancel(ctx) + done := make(chan struct{}) + go enablePluginLogger(logCtx, done, pluginSocket, wk) + + defer integrationPluginClientStop(ctx, integrationPluginClient, done, stopLogs) + + manifest, err := integrationPluginClient.Manifest(ctx, &empty.Empty{}) + if err != nil { + return fmt.Errorf("unable to retrieve retrieve plugin manifest: %v", err) + } + + wk.SendLog(ctx, workerruntime.LevelInfo, fmt.Sprintf("# Plugin %s v%s is ready", manifest.Name, manifest.Version)) + + query := integrationplugin.RunQuery{ + Options: opts, + } + + result, err := integrationPluginClient.Run(ctx, &query) + if err != nil { + return fmt.Errorf("error deploying application: %v", err) + } + + if strings.ToUpper(result.Status) != strings.ToUpper(sdk.StatusSuccess) { + return fmt.Errorf("plugin execution failed %s: %s", result.Status, result.Details) + } + return nil +} + func GetArtifactFromAPI(ctx context.Context, wk workerruntime.Runtime, project string, workflow string, n int64, res sdk.Result, pattern string, regexp *regexp.Regexp, tag string, destPath string, wkDirFS afero.Fs) (sdk.Result, error) { wg := new(sync.WaitGroup) artifacts, err := wk.Client().WorkflowRunArtifacts(project, workflow, n) diff --git a/engine/worker/internal/action/builtin_artifact_upload.go b/engine/worker/internal/action/builtin_artifact_upload.go index 186ba8f762..c3277f35ef 100644 --- a/engine/worker/internal/action/builtin_artifact_upload.go +++ b/engine/worker/internal/action/builtin_artifact_upload.go @@ -2,10 +2,11 @@ package action import ( "context" + "encoding/json" "fmt" - "os" "path/filepath" + "strconv" "strings" "sync" "time" @@ -91,7 +92,7 @@ func RunArtifactUpload(ctx context.Context, wk workerruntime.Runtime, a sdk.Acti // Priority: // 1. Integration specified on artifact upload action ( advanced parameter ) // 2. Integration artifact manager on workflow - // 3. CDN activated or nor + // 3. CDN activated or not if integrationName != sdk.DefaultStorageIntegrationName { if err := uploadArtifactByApiCall(path, wk, ctx, projectKey, integrationName, jobID, tag); err != nil { log.Warn(ctx, "queueArtifactUpload(%s, %s, %d, %s, %s) failed: %v", projectKey, integrationName, jobID, tag.Value, path, err) @@ -101,7 +102,6 @@ func RunArtifactUpload(ctx context.Context, wk workerruntime.Runtime, a sdk.Acti return } else if pluginArtifactManagement != nil { if err := uploadArtifactByIntegrationPlugin(path, ctx, wk, pluginArtifactManagement); err != nil { - log.Warn(ctx, "queueArtifactUpload(%s, %s, %d, %s, %s) failed: %v", projectKey, integrationName, jobID, tag.Value, path, err) chanError <- sdk.WrapError(err, "Error while uploading artifact by plugin %s", path) wgErrors.Add(1) } @@ -140,6 +140,13 @@ func RunArtifactUpload(ctx context.Context, wk workerruntime.Runtime, a sdk.Acti } func uploadArtifactByIntegrationPlugin(path string, ctx context.Context, wk workerruntime.Runtime, artiManager *sdk.GRPCPlugin) error { + _, fileName := filepath.Split(path) + + // Check run result + if err := checkArtifactUpload(ctx, wk, fileName, sdk.WorkflowRunResultTypeArtifactManager); err != nil { + return fmt.Errorf("unable to check artifact upload authorization: %v", err) + } + pfName := sdk.ParameterFind(wk.Parameters(), "cds.integration.artifact_manager") if pfName == nil { return sdk.NewErrorFrom(sdk.ErrNotFound, "unable to retrieve artifact manager integration... Aborting") @@ -185,22 +192,25 @@ func uploadArtifactByIntegrationPlugin(path string, ctx context.Context, wk work wk.SendLog(ctx, workerruntime.LevelInfo, fmt.Sprintf("# Plugin %s v%s is ready", manifest.Name, manifest.Version)) opts := sdk.ParametersToMap(wk.Parameters()) - opts["cds.integration.artifact_manager.upload.path"] = path + opts[sdk.ArtifactUploadPluginInputPath] = path query := integrationplugin.RunQuery{ Options: opts, } res, err := integrationPluginClient.Run(ctx, &query) if err != nil { - return fmt.Errorf("error deploying application: %v", err) + return fmt.Errorf("error uploading artifact: %v", err) } - wk.SendLog(ctx, workerruntime.LevelInfo, fmt.Sprintf("# Details: %s", res.Details)) - wk.SendLog(ctx, workerruntime.LevelInfo, fmt.Sprintf("# Status: %s", res.Status)) - if strings.ToUpper(res.Status) != strings.ToUpper(sdk.StatusSuccess) { return fmt.Errorf("plugin execution failed %s: %s", res.Status, res.Details) } + + // Add run result + if err := addWorkflowRunResult(ctx, wk, path, sdk.WorkflowRunResultTypeArtifactManager, *res); err != nil { + return fmt.Errorf("unable to add workflow run result for artifact %s: %v", path, err) + } + return nil } @@ -236,3 +246,58 @@ func uploadArtifactByApiCall(path string, wk workerruntime.Runtime, ctx context. } return nil } + +func checkArtifactUpload(ctx context.Context, wk workerruntime.Runtime, fileName string, runResultType sdk.WorkflowRunResultType) error { + runID, runNodeID, runJobID := wk.GetJobIdentifiers() + runResultCheck := sdk.WorkflowRunResultCheck{ + RunJobID: runJobID, + RunNodeID: runNodeID, + RunID: runID, + Name: fileName, + ResultType: runResultType, + } + return wk.Client().QueueWorkflowRunResultCheck(ctx, runJobID, runResultCheck) +} + +func addWorkflowRunResult(ctx context.Context, wk workerruntime.Runtime, filePath string, runResultType sdk.WorkflowRunResultType, uploadResult integrationplugin.RunResult) error { + runID, runNodeID, runJobID := wk.GetJobIdentifiers() + + fileMode, err := os.Stat(filePath) + if err != nil { + return sdk.WrapError(err, "unable to get file stat %s", fileMode) + } + + size, err := strconv.ParseInt(uploadResult.Outputs[sdk.ArtifactUploadPluginOutputSize], 10, 64) + if err != nil { + return sdk.WrapError(err, "unable to retrieve file size") + } + perm, err := strconv.ParseUint(uploadResult.Outputs[sdk.ArtifactUploadPluginOutputPerm], 10, 32) + if err != nil { + return sdk.WrapError(err, "unable to retrieve file perm") + } + + data := sdk.WorkflowRunResultArtifactManager{ + Name: uploadResult.Outputs[sdk.ArtifactUploadPluginOutputPathFileName], + MD5: uploadResult.Outputs[sdk.ArtifactUploadPluginOutputPathMD5], + Perm: uint32(perm), + RepoType: uploadResult.Outputs[sdk.ArtifactUploadPluginOutputPathRepoType], + RepoName: uploadResult.Outputs[sdk.ArtifactUploadPluginOutputPathRepoName], + Path: uploadResult.Outputs[sdk.ArtifactUploadPluginOutputPathFilePath], + Size: size, + } + + bts, err := json.Marshal(data) + if err != nil { + return sdk.WithStack(err) + } + + runResult := sdk.WorkflowRunResult{ + WorkflowNodeRunID: runNodeID, + Type: runResultType, + WorkflowRunID: runID, + WorkflowRunJobID: runJobID, + DataRaw: json.RawMessage(bts), + } + + return wk.Client().QueueWorkflowRunResultsAdd(ctx, runJobID, runResult) +} diff --git a/engine/worker/internal/action/test_helper.go b/engine/worker/internal/action/test_helper.go index 34c6796811..9ab5871dad 100644 --- a/engine/worker/internal/action/test_helper.go +++ b/engine/worker/internal/action/test_helper.go @@ -30,6 +30,10 @@ type TestWorker struct { logBuffer bytes.Buffer } +func (w *TestWorker) GetJobIdentifiers() (int64, int64, int64) { + return 0, 0, 0 +} + func (w *TestWorker) WorkerCacheSignature(tag string) (string, error) { return "mysig", nil } diff --git a/engine/worker/internal/types.go b/engine/worker/internal/types.go index deef177e5a..13308b8ed5 100644 --- a/engine/worker/internal/types.go +++ b/engine/worker/internal/types.go @@ -86,6 +86,10 @@ func (wk *CurrentWorker) Init(name, hatcheryName, apiEndpoint, token string, mod return nil } +func (wk *CurrentWorker) GetJobIdentifiers() (int64, int64, int64) { + return wk.currentJob.runID, wk.currentJob.wJob.WorkflowNodeRunID, wk.currentJob.wJob.ID +} + func (wk *CurrentWorker) GetContext() context.Context { return wk.currentJob.context } diff --git a/engine/worker/pkg/workerruntime/types.go b/engine/worker/pkg/workerruntime/types.go index cace99538d..41e27196c4 100644 --- a/engine/worker/pkg/workerruntime/types.go +++ b/engine/worker/pkg/workerruntime/types.go @@ -77,6 +77,7 @@ type Runtime interface { WorkerCacheSignature(tag string) (string, error) FeatureEnabled(featureName sdk.FeatureName) bool GetPlugin(pluginType string) *sdk.GRPCPlugin + GetJobIdentifiers() (int64, int64, int64) CDNHttpURL() string InstallKey(key sdk.Variable) (*KeyResponse, error) InstallKeyTo(key sdk.Variable, destinationPath string) (*KeyResponse, error) diff --git a/go.mod b/go.mod index 7b010bb750..b63c1973b0 100644 --- a/go.mod +++ b/go.mod @@ -28,7 +28,6 @@ require ( github.com/docker/go-connections v0.3.0 github.com/docker/go-units v0.3.2 // indirect github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e // indirect - github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76 // indirect github.com/dustin/go-humanize v1.0.0 // indirect github.com/eapache/go-resiliency v1.2.0 github.com/fatih/color v1.7.0 @@ -59,6 +58,7 @@ require ( github.com/imdario/mergo v0.0.0-20180119215619-163f41321a19 // indirect github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933 + github.com/jfrog/jfrog-client-go v0.21.0 github.com/jordan-wright/email v4.0.1-0.20200917010138-e1c00e156980+incompatible github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1 github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect @@ -83,7 +83,6 @@ require ( github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d github.com/ncw/swift v1.0.52 github.com/nsf/termbox-go v0.0.0-20190817171036-93860e161317 // indirect - github.com/nwaples/rardecode v1.0.0 // indirect github.com/olekukonko/tablewriter v0.0.0-20160621093029-daf2955e742c github.com/olivere/elastic v6.2.17+incompatible // indirect github.com/opencontainers/go-digest v1.0.0-rc1 // indirect @@ -118,26 +117,24 @@ require ( github.com/studio-b12/gowebdav v0.0.0-20200303150724-9380631c29a1 github.com/tevino/abool v0.0.0-20170917061928-9b9efcf221b5 github.com/ugorji/go v1.1.7 // indirect - github.com/ulikunitz/xz v0.5.4 // indirect github.com/urfave/cli v1.20.0 github.com/vmware/go-nfs-client v0.0.0-20190605212624-d43b92724c1b github.com/vmware/govmomi v0.23.0 github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa github.com/xanzy/go-gitlab v0.15.0 - github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect github.com/yesnault/go-toml v0.0.0-20191205182532-f5ef6cee7945 github.com/yuin/gluare v0.0.0-20170607022532-d7c94f1a80ed github.com/yuin/gopher-lua v0.0.0-20170901023928-8c2befcd3908 github.com/ziutek/mymysql v1.5.4 // indirect go.opencensus.io v0.22.0 - golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 - golang.org/x/net v0.0.0-20200528225125-3c3fba18258b + golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9 + golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c - golang.org/x/text v0.3.2 + golang.org/x/text v0.3.4 golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 google.golang.org/grpc v1.27.0 - google.golang.org/protobuf v1.26.0 + google.golang.org/protobuf v1.26.0 // indirect gopkg.in/AlecAivazis/survey.v1 v1.7.1 gopkg.in/go-playground/assert.v1 v1.2.1 // indirect gopkg.in/go-playground/validator.v8 v8.18.2 // indirect diff --git a/go.sum b/go.sum index fa8e81c931..584f922284 100644 --- a/go.sum +++ b/go.sum @@ -43,12 +43,18 @@ github.com/Shopify/sarama v1.27.0 h1:tqo2zmyzPf1+gwTTwhI6W+EXDw4PVSczynpHKFtVAmo github.com/Shopify/sarama v1.27.0/go.mod h1:aCdj6ymI8uyPEux1JJ9gcaDT6cinjGhNCAhs54taSUo= github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7 h1:uSoVVbwJiQipAclBbw+8quDsfcvFjOpI5iCf4p/cqCs= +github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/andybalholm/brotli v1.0.0 h1:7UCwP93aiSfvWpapti8g88vVVGp2qqtGyePsSuDafo4= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= github.com/andygrunwald/go-gerrit v0.0.0-20181207071854-19ef3e9332a4 h1:LY5JPwCVaVWtvVMyPb/FuWEqFq0qAewr8SU5pAO371I= github.com/andygrunwald/go-gerrit v0.0.0-20181207071854-19ef3e9332a4/go.mod h1:0iuRQp6WJ44ts+iihy5E/WlPqfg5RNeQxOmzRkxCdtk= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA= +github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/aokoli/goutils v1.1.0 h1:jy4ghdcYvs5EIoGssZNslIASX5m+KNMfyyKvRQ0TEVE= github.com/aokoli/goutils v1.1.0/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= github.com/apache/thrift v0.12.0 h1:pODnxUFNcjP9UTLZGTdeh+j16A8lJbRvD3rOtrk/7bs= @@ -72,6 +78,7 @@ github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 h1:DDGfHa7BWjL4Yn github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/buger/goterm v0.0.0-20170918171949-d443b9114f9c h1:p1/ndMSoqqRp8tN/HJuqYNt1IlBzDbug0JYTJAktrtg= github.com/buger/goterm v0.0.0-20170918171949-d443b9114f9c/go.mod h1:u9UyCz2eTrSGy6fbupqJ54eY5c4IC8gREQ1053dK12U= +github.com/buger/jsonparser v0.0.0-20180910192245-6acdf747ae99/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/chzyer/logex v1.1.10 h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE= @@ -116,8 +123,9 @@ github.com/docker/go-units v0.3.2 h1:Kjm80apys7gTtfVmCvVY8gwu10uofaFSrmAKOVrtueE github.com/docker/go-units v0.3.2/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e h1:rMOGp6HPeMHbdLrZkX2nD+94uqDunc27tXVuS+ey4mQ= github.com/donovanhide/eventsource v0.0.0-20170630084216-b8f31a59085e/go.mod h1:56wL82FO0bfMU5RvfXoIwSOP2ggqqxT+tAfNEIyxuHw= -github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76 h1:eX+pdPPlD279OWgdx7f6KqIRSONuK7egk+jDx7OM3Ac= -github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76/go.mod h1:KjxHHirfLaw19iGT70HvVjHQsL1vq1SRQB4yOsAfy2s= +github.com/dsnet/compress v0.0.1 h1:PlZu0n3Tuv04TzpfPbrnI0HW/YwodEXDS+oPKahKF0Q= +github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= +github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= @@ -127,11 +135,14 @@ github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8 github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/emirpasic/gods v1.12.0 h1:QAUIPSaCu4G+POclxeqb3F+WPpdKqFGlw36+yOzGlrg= +github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.10.0 h1:Gfh+GAJZOAoKZsIZeZbdn2JF10kN1XHNvjsvQK8gVkE= @@ -154,6 +165,8 @@ github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3 h1:t8FVkw33L+wilf2 github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= github.com/gin-gonic/gin v1.3.0 h1:kCmZyPklC0gVdL728E6Aj20uYBJV93nj/TkwBTKhFbs= github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/gliderlabs/ssh v0.1.1 h1:j3L6gSLQalDETeEg/Jg0mGY0/y/N6zI2xX1978P0Uqw= +github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-ldap/ldap v3.0.2+incompatible/go.mod h1:qfd9rJvER9Q0/D/Sqn1DfHRoBp40uXYvFoEVrNEPqRc= @@ -193,6 +206,7 @@ github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5a github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= @@ -210,6 +224,8 @@ github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+ github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gnostic v0.1.0 h1:rVsPeBmXbYv4If/cumu1AzZPwV58q433hvONV1UEZoI= github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/gookit/color v1.3.2 h1:WO8+16ZZtx+HlOb6cueziUAF8VtALZKRr/jOvuDk0X0= +github.com/gookit/color v1.3.2/go.mod h1:R3ogXq2B9rTbXoSHJ1HyUVAZ3poOJHpd9nQmyGZsfvQ= github.com/gophercloud/gophercloud v0.0.0-20190504011306-6f9faf57fddc h1:uSlJNJjuqu+HrNGtCqIVjtMjrC0lzUjXZqfiUHxSzZc= github.com/gophercloud/gophercloud v0.0.0-20190504011306-6f9faf57fddc/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= @@ -302,8 +318,14 @@ github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NH github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933 h1:USSH71GEMLF/yxfkbDMvmklaimVh9cXbBVcQZ4AgJPE= github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933/go.mod h1:AYdLvrSBFloDBNt7Y8xkQ6gmhCODGl8CPikjyIOnNzA= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jcmturner/gofork v1.0.0 h1:J7uCkflzTEhUZ64xqKnkDxq3kzc96ajM1Gli5ktUem8= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= +github.com/jfrog/gofrog v1.0.6 h1:yUDxSCw8gTK6vC4PvtG0HTnEOQJSZ+O4lWGCgkev1nU= +github.com/jfrog/gofrog v1.0.6/go.mod h1:HkDzg+tMNw23UryoOv0+LB94BzYcl6MCIoz8Tmlb+s8= +github.com/jfrog/jfrog-client-go v0.21.0 h1:M8o4EhoxFYCQlXyv2DVTfm4l/WzE6TgtYpTO4YDq0Qs= +github.com/jfrog/jfrog-client-go v0.21.0/go.mod h1:0RYDrQKCIdJbx6pjopwtwXh4/PaEW9FqFc4b4ox8fl0= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jonboulle/clockwork v0.1.0 h1:VKV+ZcuP6l3yW9doeqz6ziZGgcynBVQO+obU0+0hcPo= @@ -320,12 +342,18 @@ github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1 h1:PJPDf8OUfOK1bb/ github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e h1:RgQk53JHp/Cjunrr1WlsXSZpqXn+uREuHvUVcK82CV8= +github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/keybase/go.dbus v0.0.0-20190710215703-a33a09c8a604 h1:9uixD8kYjfDc8rUOW7bJLy0oaGkaPLO2foA9wk1WsyE= github.com/keybase/go.dbus v0.0.0-20190710215703-a33a09c8a604/go.mod h1:a8clEhrrGV/d76/f9r2I41BwANMihfZYV9C223vaxqE= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.10 h1:a/y8CglcM7gLGYmlbP/stPE5sR3hbhFRUjCBfd/0B3I= github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/pgzip v1.2.4 h1:TQ7CNpYKovDOmqzRHKxJh0BeaBI7UdQZYc6p7pMQh1A= +github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -368,6 +396,8 @@ github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1f github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mholt/archiver v3.1.1+incompatible h1:1dCVxuqs0dJseYEhi5pl7MYPH9zDa1wBi7mF09cbNkU= github.com/mholt/archiver v3.1.1+incompatible/go.mod h1:Dh2dOXnSdiLxRiPoVfIr/fI1TwETms9B8CTWfeh7ROU= +github.com/mholt/archiver/v3 v3.5.0 h1:nE8gZIrw66cu4osS/U7UW7YDuGMHssxKutU8IfWxwWE= +github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= github.com/miekg/dns v1.0.14 h1:9jZdLNd/P4+SfEJ0TNyxYpsK8N4GtfylBLqtbYN1sbA= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miscreant/miscreant.go v0.0.0-20200214223636-26d376326b75 h1:cUVxyR+UfmdEAZGJ8IiKld1O0dbGotEnkMolG5hfMSY= @@ -410,8 +440,8 @@ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWb github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/termbox-go v0.0.0-20190817171036-93860e161317 h1:hhGN4SFXgXo61Q4Sjj/X9sBjyeSa2kdpaOzCO+8EVQw= github.com/nsf/termbox-go v0.0.0-20190817171036-93860e161317/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= -github.com/nwaples/rardecode v1.0.0 h1:r7vGuS5akxOnR4JQSkko62RJ1ReCMXxQRPtxsiFMBOs= -github.com/nwaples/rardecode v1.0.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= +github.com/nwaples/rardecode v1.1.0 h1:vSxaY8vQhOcVr4mm5e8XllHWTiM4JF507A0Katqw7MQ= +github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20160621093029-daf2955e742c h1:1BS19mnpAe7Lm0etRs1uBVaki11WZ8fktvOQGipZPo4= @@ -441,6 +471,8 @@ github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaR github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c h1:MUyE44mTvnI5A0xrxIxaMqoWFzPfQvtE2IWUollMDMs= github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/pelletier/go-buffruneio v0.2.0 h1:U4t4R6YkofJ5xHm3dJzuRpPZ0mr5MMCoAWooScCR7aA= +github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.0 h1:Keo9qb7iRJs2voHvunFtuuYFsbWeOBh8/P9v/kVMFtw= github.com/pelletier/go-toml v1.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs= @@ -449,6 +481,8 @@ github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4 v2.5.2+incompatible h1:WCjObylUIOlKy/+7Abdn34TLIkXiA4UWUMhxq9m9ZXI= github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.0.3 h1:vNQKSVZNYUEAvRY9FaUXAF1XPbSOHJtDTiP41kzDz2E= +github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/browser v0.0.0-20170505125900-c90ca0c84f15 h1:mrI+6Ae64Wjt+uahGe5we/sPS1sXjvfT3YjtawAVgps= github.com/pkg/browser v0.0.0-20170505125900-c90ca0c84f15/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -508,6 +542,8 @@ github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197 h1:qu90yDtRE5WEfRT5mn9v0Xz9RaopLguhbPwZKx4dHq8= github.com/sguiheux/go-coverage v0.0.0-20190710153556-287b082a7197/go.mod h1:0hhKrsUsoT7yvxwNGKa+TSYNA26DNWMqReeZEQq/9FI= github.com/sguiheux/go-nfs-client v0.0.0-20210311091651-4f075a6103cc h1:2hQK9ZA+R4QK6YSeI6J8h40fv1pQVmsoLwdn0omv4NE= @@ -542,6 +578,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.7.0 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/src-d/gcfg v1.3.0 h1:2BEDr8r0I0b8h/fOqwtxCEiq2HJu8n2JGZJQFGXWLjg= +github.com/src-d/gcfg v1.3.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8 h1:l6epF6yBwuejBfhGkM5m8VSNM/QAm7ApGyH35ehA7eQ= github.com/streadway/amqp v0.0.0-20180528204448-e5adc2ada8b8/go.mod h1:1WNBiOZtZQLpVAyu0iTduoJL9hEsMloAK5XWrtW0xdY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -566,8 +604,10 @@ github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/ulikunitz/xz v0.5.4 h1:zATC2OoZ8H1TZll3FpbX+ikwmadbO699PE06cIkm9oU= -github.com/ulikunitz/xz v0.5.4/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.8 h1:ERv8V6GKqVi23rgu5cj9pVfVzJbOqAY2Ntl88O6c2nQ= +github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v1.20.0 h1:fDqGv3UG/4jbVl/QkFwEdddtEDjh/5Ov6X+0B/3bPaw= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/vmware/govmomi v0.23.0 h1:DC97v1FdSr3cPfq3eBKD5C1O4JtYxo+NTcbGTKe2k48= @@ -577,6 +617,8 @@ github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa h1:rW+Lu6281ed/4XGu github.com/whilp/git-urls v0.0.0-20160530060445-31bac0d230fa/go.mod h1:2rx5KE5FLD0HRfkkpyn8JwbVLBdhgeiOb2D2D9LLKM4= github.com/xanzy/go-gitlab v0.15.0 h1:rWtwKTgEnXyNUGrOArN7yyc3THRkpYcKXIXia9abywQ= github.com/xanzy/go-gitlab v0.15.0/go.mod h1:8zdQa/ri1dfn8eS3Ir1SyfvOKlw7WBJ8DVThkpGiXrs= +github.com/xanzy/ssh-agent v0.2.0 h1:Adglfbi5p9Z0BmK2oKU9nTG+zKfniSfnaMYB+ULd+Ro= +github.com/xanzy/ssh-agent v0.2.0/go.mod h1:0NyE30eGUDliuLEHJgYte/zncp2zdTStcOnWhgSqHD8= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 h1:nIPpBwaJSVYIxUFsDv3M8ofmx9yWTog9BfvIu0q41lo= @@ -620,8 +662,9 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 h1:DZhuSZLsGlFL4CmhA8BcRA0mnthyA/nZ00AqCUo7vHg= golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9 h1:sYNJzB4J8toYPQTM6pAkcmBRgw9SnQKP9oXCHfgy604= +golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -660,8 +703,9 @@ golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200528225125-3c3fba18258b h1:IYiJPiJfzktmDAO1HQiwjMjwjlYKHAL7KzeD544RJPs= golang.org/x/net v0.0.0-20200528225125-3c3fba18258b/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 h1:lwlPPsmjDKK0J6eG6xDWd5XPehI0R024zxjDnw3esPA= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -675,6 +719,7 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEha golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -696,13 +741,19 @@ golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200724161237-0e2f3a69832c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 h1:SvFZT6jyqRaOeXpc5h/JSfZenJ2O330aBsf7JfSUXmQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -813,8 +864,16 @@ gopkg.in/spacemonkeygo/httpsig.v0 v0.0.0-20170228231032-6732593ec966 h1:8kepDsMT gopkg.in/spacemonkeygo/httpsig.v0 v0.0.0-20170228231032-6732593ec966/go.mod h1:KUilIqVZdvg7tsZSnGqOnw8jL2WVzcC0RHV/Av0km2U= gopkg.in/square/go-jose.v2 v2.3.1 h1:SK5KegNXmKmqE342YYN2qPHEnUYeoMiXXl1poUlI+o4= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/src-d/go-billy.v4 v4.3.0 h1:KtlZ4c1OWbIs4jCv5ZXrTqG8EQocr0g/d4DjNg70aek= +gopkg.in/src-d/go-billy.v4 v4.3.0/go.mod h1:tm33zBoOwxjYHZIE+OV8bxTWFMJLrconzFMd38aARFk= +gopkg.in/src-d/go-git-fixtures.v3 v3.1.1 h1:XWW/s5W18RaJpmo1l0IYGqXKuJITWRFuA45iOf1dKJs= +gopkg.in/src-d/go-git-fixtures.v3 v3.1.1/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g= +gopkg.in/src-d/go-git.v4 v4.7.0 h1:WXB+2gCoRhQiAr//IMHpIpoDsTrDgvjDORxt57e8XTA= +gopkg.in/src-d/go-git.v4 v4.7.0/go.mod h1:CzbUWqMn4pvmvndg3gnh5iZFmSsbhyhUWdI0IQ60AQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/sdk/artifact.go b/sdk/artifact.go index e127566ceb..bfa2c62961 100644 --- a/sdk/artifact.go +++ b/sdk/artifact.go @@ -5,6 +5,27 @@ const ( ArtifactUpload = "Artifact Upload" ArtifactDownload = "Artifact Download" ServeStaticFiles = "Serve Static Files" + + ArtifactMD5 = "md5" + ArtifactName = "name" + ArtifactManagerPath = "path" + ArtifactManagerRepositoryType = "repository_type" + ArtifactoryManagerRepositoryName = "repository_name" + + ArtifactUploadPluginInputPath = "cds.integration.artifact_manager.upload.path" + + ArtifactUploadPluginOutputPathFileName = "name" + ArtifactUploadPluginOutputPathFilePath = "path" + ArtifactUploadPluginOutputPathRepoType = "repository_type" + ArtifactUploadPluginOutputPathRepoName = "repository_name" + ArtifactUploadPluginOutputPathMD5 = "md5" + ArtifactUploadPluginOutputPerm = "perm" + ArtifactUploadPluginOutputSize = "size" + + ArtifactDownloadPluginInputDestinationPath = "cds.integration.artifact_manager.download.destination.path" + ArtifactDownloadPluginInputFilePath = "cds.integration.artifact_manager.download.file.path" + ArtifactDownloadPluginInputMd5 = "cds.integration.artifact_manager.download.file.md5" + ArtifactDownloadPluginInputPerm = "cds.integration.artifact_manager.download.file.perm" ) // ArtifactsStore represents diff --git a/sdk/cdsclient/client_queue.go b/sdk/cdsclient/client_queue.go index 7a257689ca..24ca2d6c0c 100644 --- a/sdk/cdsclient/client_queue.go +++ b/sdk/cdsclient/client_queue.go @@ -233,9 +233,9 @@ func (c *client) QueueWorkflowRunResultsAdd(ctx context.Context, jobID int64, ad return nil } -func (c *client) QueueWorkflowRunResultCheck(ctx context.Context, jobID int64, apiRef sdk.CDNRunResultAPIRef) error { +func (c *client) QueueWorkflowRunResultCheck(ctx context.Context, jobID int64, runResultCheck sdk.WorkflowRunResultCheck) error { uri := fmt.Sprintf("/queue/workflows/%d/run/results/check", jobID) - if _, err := c.PostJSON(ctx, uri, apiRef, nil); err != nil { + if _, err := c.PostJSON(ctx, uri, runResultCheck, nil); err != nil { return err } return nil diff --git a/sdk/cdsclient/interface.go b/sdk/cdsclient/interface.go index 919a8df550..dac1634a69 100644 --- a/sdk/cdsclient/interface.go +++ b/sdk/cdsclient/interface.go @@ -270,7 +270,7 @@ type QueueClient interface { QueueJobSetVersion(ctx context.Context, jobID int64, version sdk.WorkflowRunVersion) error QueueWorkerCacheLink(ctx context.Context, jobID int64, tag string) (sdk.CDNItemLinks, error) QueueWorkflowRunResultsAdd(ctx context.Context, jobID int64, addRequest sdk.WorkflowRunResult) error - QueueWorkflowRunResultCheck(ctx context.Context, jobID int64, apiRef sdk.CDNRunResultAPIRef) error + QueueWorkflowRunResultCheck(ctx context.Context, jobID int64, runResultCheck sdk.WorkflowRunResultCheck) error } // UserClient exposes users functions diff --git a/sdk/cdsclient/mock_cdsclient/interface_mock.go b/sdk/cdsclient/mock_cdsclient/interface_mock.go index e4f2f2935a..12400cc657 100644 --- a/sdk/cdsclient/mock_cdsclient/interface_mock.go +++ b/sdk/cdsclient/mock_cdsclient/interface_mock.go @@ -8,6 +8,11 @@ import ( tar "archive/tar" context "context" json "encoding/json" + io "io" + http "net/http" + reflect "reflect" + time "time" + gomock "github.com/golang/mock/gomock" websocket "github.com/gorilla/websocket" sdk "github.com/ovh/cds/sdk" @@ -15,96 +20,120 @@ import ( venom "github.com/ovh/venom" coverage "github.com/sguiheux/go-coverage" afero "github.com/spf13/afero" - io "io" - http "net/http" - reflect "reflect" - time "time" ) -// MockTemplateClient is a mock of TemplateClient interface +// MockTemplateClient is a mock of TemplateClient interface. type MockTemplateClient struct { ctrl *gomock.Controller recorder *MockTemplateClientMockRecorder } -// MockTemplateClientMockRecorder is the mock recorder for MockTemplateClient +// MockTemplateClientMockRecorder is the mock recorder for MockTemplateClient. type MockTemplateClientMockRecorder struct { mock *MockTemplateClient } -// NewMockTemplateClient creates a new mock instance +// NewMockTemplateClient creates a new mock instance. func NewMockTemplateClient(ctrl *gomock.Controller) *MockTemplateClient { mock := &MockTemplateClient{ctrl: ctrl} mock.recorder = &MockTemplateClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockTemplateClient) EXPECT() *MockTemplateClientMockRecorder { return m.recorder } -// TemplateGet mocks base method -func (m *MockTemplateClient) TemplateGet(groupName, templateSlug string) (*sdk.WorkflowTemplate, error) { +// TemplateApply mocks base method. +func (m *MockTemplateClient) TemplateApply(groupName, templateSlug string, req sdk.WorkflowTemplateRequest) (*tar.Reader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateGet", groupName, templateSlug) - ret0, _ := ret[0].(*sdk.WorkflowTemplate) + ret := m.ctrl.Call(m, "TemplateApply", groupName, templateSlug, req) + ret0, _ := ret[0].(*tar.Reader) ret1, _ := ret[1].(error) return ret0, ret1 } -// TemplateGet indicates an expected call of TemplateGet -func (mr *MockTemplateClientMockRecorder) TemplateGet(groupName, templateSlug interface{}) *gomock.Call { +// TemplateApply indicates an expected call of TemplateApply. +func (mr *MockTemplateClientMockRecorder) TemplateApply(groupName, templateSlug, req interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGet", reflect.TypeOf((*MockTemplateClient)(nil).TemplateGet), groupName, templateSlug) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateApply", reflect.TypeOf((*MockTemplateClient)(nil).TemplateApply), groupName, templateSlug, req) } -// TemplateGetAll mocks base method -func (m *MockTemplateClient) TemplateGetAll() ([]sdk.WorkflowTemplate, error) { +// TemplateBulk mocks base method. +func (m *MockTemplateClient) TemplateBulk(groupName, templateSlug string, req sdk.WorkflowTemplateBulk) (*sdk.WorkflowTemplateBulk, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateGetAll") - ret0, _ := ret[0].([]sdk.WorkflowTemplate) + ret := m.ctrl.Call(m, "TemplateBulk", groupName, templateSlug, req) + ret0, _ := ret[0].(*sdk.WorkflowTemplateBulk) ret1, _ := ret[1].(error) return ret0, ret1 } -// TemplateGetAll indicates an expected call of TemplateGetAll -func (mr *MockTemplateClientMockRecorder) TemplateGetAll() *gomock.Call { +// TemplateBulk indicates an expected call of TemplateBulk. +func (mr *MockTemplateClientMockRecorder) TemplateBulk(groupName, templateSlug, req interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGetAll", reflect.TypeOf((*MockTemplateClient)(nil).TemplateGetAll)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateBulk", reflect.TypeOf((*MockTemplateClient)(nil).TemplateBulk), groupName, templateSlug, req) } -// TemplateApply mocks base method -func (m *MockTemplateClient) TemplateApply(groupName, templateSlug string, req sdk.WorkflowTemplateRequest) (*tar.Reader, error) { +// TemplateDelete mocks base method. +func (m *MockTemplateClient) TemplateDelete(groupName, templateSlug string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateApply", groupName, templateSlug, req) - ret0, _ := ret[0].(*tar.Reader) + ret := m.ctrl.Call(m, "TemplateDelete", groupName, templateSlug) + ret0, _ := ret[0].(error) + return ret0 +} + +// TemplateDelete indicates an expected call of TemplateDelete. +func (mr *MockTemplateClientMockRecorder) TemplateDelete(groupName, templateSlug interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateDelete", reflect.TypeOf((*MockTemplateClient)(nil).TemplateDelete), groupName, templateSlug) +} + +// TemplateDeleteInstance mocks base method. +func (m *MockTemplateClient) TemplateDeleteInstance(groupName, templateSlug string, id int64) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TemplateDeleteInstance", groupName, templateSlug, id) + ret0, _ := ret[0].(error) + return ret0 +} + +// TemplateDeleteInstance indicates an expected call of TemplateDeleteInstance. +func (mr *MockTemplateClientMockRecorder) TemplateDeleteInstance(groupName, templateSlug, id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateDeleteInstance", reflect.TypeOf((*MockTemplateClient)(nil).TemplateDeleteInstance), groupName, templateSlug, id) +} + +// TemplateGet mocks base method. +func (m *MockTemplateClient) TemplateGet(groupName, templateSlug string) (*sdk.WorkflowTemplate, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TemplateGet", groupName, templateSlug) + ret0, _ := ret[0].(*sdk.WorkflowTemplate) ret1, _ := ret[1].(error) return ret0, ret1 } -// TemplateApply indicates an expected call of TemplateApply -func (mr *MockTemplateClientMockRecorder) TemplateApply(groupName, templateSlug, req interface{}) *gomock.Call { +// TemplateGet indicates an expected call of TemplateGet. +func (mr *MockTemplateClientMockRecorder) TemplateGet(groupName, templateSlug interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateApply", reflect.TypeOf((*MockTemplateClient)(nil).TemplateApply), groupName, templateSlug, req) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGet", reflect.TypeOf((*MockTemplateClient)(nil).TemplateGet), groupName, templateSlug) } -// TemplateBulk mocks base method -func (m *MockTemplateClient) TemplateBulk(groupName, templateSlug string, req sdk.WorkflowTemplateBulk) (*sdk.WorkflowTemplateBulk, error) { +// TemplateGetAll mocks base method. +func (m *MockTemplateClient) TemplateGetAll() ([]sdk.WorkflowTemplate, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateBulk", groupName, templateSlug, req) - ret0, _ := ret[0].(*sdk.WorkflowTemplateBulk) + ret := m.ctrl.Call(m, "TemplateGetAll") + ret0, _ := ret[0].([]sdk.WorkflowTemplate) ret1, _ := ret[1].(error) return ret0, ret1 } -// TemplateBulk indicates an expected call of TemplateBulk -func (mr *MockTemplateClientMockRecorder) TemplateBulk(groupName, templateSlug, req interface{}) *gomock.Call { +// TemplateGetAll indicates an expected call of TemplateGetAll. +func (mr *MockTemplateClientMockRecorder) TemplateGetAll() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateBulk", reflect.TypeOf((*MockTemplateClient)(nil).TemplateBulk), groupName, templateSlug, req) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGetAll", reflect.TypeOf((*MockTemplateClient)(nil).TemplateGetAll)) } -// TemplateGetBulk mocks base method +// TemplateGetBulk mocks base method. func (m *MockTemplateClient) TemplateGetBulk(groupName, templateSlug string, id int64) (*sdk.WorkflowTemplateBulk, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "TemplateGetBulk", groupName, templateSlug, id) @@ -113,13 +142,28 @@ func (m *MockTemplateClient) TemplateGetBulk(groupName, templateSlug string, id return ret0, ret1 } -// TemplateGetBulk indicates an expected call of TemplateGetBulk +// TemplateGetBulk indicates an expected call of TemplateGetBulk. func (mr *MockTemplateClientMockRecorder) TemplateGetBulk(groupName, templateSlug, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGetBulk", reflect.TypeOf((*MockTemplateClient)(nil).TemplateGetBulk), groupName, templateSlug, id) } -// TemplatePull mocks base method +// TemplateGetInstances mocks base method. +func (m *MockTemplateClient) TemplateGetInstances(groupName, templateSlug string) ([]sdk.WorkflowTemplateInstance, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TemplateGetInstances", groupName, templateSlug) + ret0, _ := ret[0].([]sdk.WorkflowTemplateInstance) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TemplateGetInstances indicates an expected call of TemplateGetInstances. +func (mr *MockTemplateClientMockRecorder) TemplateGetInstances(groupName, templateSlug interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGetInstances", reflect.TypeOf((*MockTemplateClient)(nil).TemplateGetInstances), groupName, templateSlug) +} + +// TemplatePull mocks base method. func (m *MockTemplateClient) TemplatePull(groupName, templateSlug string) (*tar.Reader, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "TemplatePull", groupName, templateSlug) @@ -128,13 +172,13 @@ func (m *MockTemplateClient) TemplatePull(groupName, templateSlug string) (*tar. return ret0, ret1 } -// TemplatePull indicates an expected call of TemplatePull +// TemplatePull indicates an expected call of TemplatePull. func (mr *MockTemplateClientMockRecorder) TemplatePull(groupName, templateSlug interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplatePull", reflect.TypeOf((*MockTemplateClient)(nil).TemplatePull), groupName, templateSlug) } -// TemplatePush mocks base method +// TemplatePush mocks base method. func (m *MockTemplateClient) TemplatePush(tarContent io.Reader) ([]string, *tar.Reader, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "TemplatePush", tarContent) @@ -144,251 +188,208 @@ func (m *MockTemplateClient) TemplatePush(tarContent io.Reader) ([]string, *tar. return ret0, ret1, ret2 } -// TemplatePush indicates an expected call of TemplatePush +// TemplatePush indicates an expected call of TemplatePush. func (mr *MockTemplateClientMockRecorder) TemplatePush(tarContent interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplatePush", reflect.TypeOf((*MockTemplateClient)(nil).TemplatePush), tarContent) } -// TemplateDelete mocks base method -func (m *MockTemplateClient) TemplateDelete(groupName, templateSlug string) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateDelete", groupName, templateSlug) - ret0, _ := ret[0].(error) - return ret0 -} - -// TemplateDelete indicates an expected call of TemplateDelete -func (mr *MockTemplateClientMockRecorder) TemplateDelete(groupName, templateSlug interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateDelete", reflect.TypeOf((*MockTemplateClient)(nil).TemplateDelete), groupName, templateSlug) -} - -// TemplateGetInstances mocks base method -func (m *MockTemplateClient) TemplateGetInstances(groupName, templateSlug string) ([]sdk.WorkflowTemplateInstance, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateGetInstances", groupName, templateSlug) - ret0, _ := ret[0].([]sdk.WorkflowTemplateInstance) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// TemplateGetInstances indicates an expected call of TemplateGetInstances -func (mr *MockTemplateClientMockRecorder) TemplateGetInstances(groupName, templateSlug interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGetInstances", reflect.TypeOf((*MockTemplateClient)(nil).TemplateGetInstances), groupName, templateSlug) -} - -// TemplateDeleteInstance mocks base method -func (m *MockTemplateClient) TemplateDeleteInstance(groupName, templateSlug string, id int64) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateDeleteInstance", groupName, templateSlug, id) - ret0, _ := ret[0].(error) - return ret0 -} - -// TemplateDeleteInstance indicates an expected call of TemplateDeleteInstance -func (mr *MockTemplateClientMockRecorder) TemplateDeleteInstance(groupName, templateSlug, id interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateDeleteInstance", reflect.TypeOf((*MockTemplateClient)(nil).TemplateDeleteInstance), groupName, templateSlug, id) -} - -// MockAdmin is a mock of Admin interface +// MockAdmin is a mock of Admin interface. type MockAdmin struct { ctrl *gomock.Controller recorder *MockAdminMockRecorder } -// MockAdminMockRecorder is the mock recorder for MockAdmin +// MockAdminMockRecorder is the mock recorder for MockAdmin. type MockAdminMockRecorder struct { mock *MockAdmin } -// NewMockAdmin creates a new mock instance +// NewMockAdmin creates a new mock instance. func NewMockAdmin(ctrl *gomock.Controller) *MockAdmin { mock := &MockAdmin{ctrl: ctrl} mock.recorder = &MockAdminMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockAdmin) EXPECT() *MockAdminMockRecorder { return m.recorder } -// AdminDatabaseMigrationDelete mocks base method -func (m *MockAdmin) AdminDatabaseMigrationDelete(id string) error { +// AdminCDSMigrationCancel mocks base method. +func (m *MockAdmin) AdminCDSMigrationCancel(id int64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseMigrationDelete", id) + ret := m.ctrl.Call(m, "AdminCDSMigrationCancel", id) ret0, _ := ret[0].(error) return ret0 } -// AdminDatabaseMigrationDelete indicates an expected call of AdminDatabaseMigrationDelete -func (mr *MockAdminMockRecorder) AdminDatabaseMigrationDelete(id interface{}) *gomock.Call { +// AdminCDSMigrationCancel indicates an expected call of AdminCDSMigrationCancel. +func (mr *MockAdminMockRecorder) AdminCDSMigrationCancel(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseMigrationDelete", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseMigrationDelete), id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCDSMigrationCancel", reflect.TypeOf((*MockAdmin)(nil).AdminCDSMigrationCancel), id) } -// AdminDatabaseMigrationUnlock mocks base method -func (m *MockAdmin) AdminDatabaseMigrationUnlock(id string) error { +// AdminCDSMigrationList mocks base method. +func (m *MockAdmin) AdminCDSMigrationList() ([]sdk.Migration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseMigrationUnlock", id) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "AdminCDSMigrationList") + ret0, _ := ret[0].([]sdk.Migration) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// AdminDatabaseMigrationUnlock indicates an expected call of AdminDatabaseMigrationUnlock -func (mr *MockAdminMockRecorder) AdminDatabaseMigrationUnlock(id interface{}) *gomock.Call { +// AdminCDSMigrationList indicates an expected call of AdminCDSMigrationList. +func (mr *MockAdminMockRecorder) AdminCDSMigrationList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseMigrationUnlock", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseMigrationUnlock), id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCDSMigrationList", reflect.TypeOf((*MockAdmin)(nil).AdminCDSMigrationList)) } -// AdminDatabaseMigrationsList mocks base method -func (m *MockAdmin) AdminDatabaseMigrationsList() ([]sdk.DatabaseMigrationStatus, error) { +// AdminCDSMigrationReset mocks base method. +func (m *MockAdmin) AdminCDSMigrationReset(id int64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseMigrationsList") - ret0, _ := ret[0].([]sdk.DatabaseMigrationStatus) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "AdminCDSMigrationReset", id) + ret0, _ := ret[0].(error) + return ret0 } -// AdminDatabaseMigrationsList indicates an expected call of AdminDatabaseMigrationsList -func (mr *MockAdminMockRecorder) AdminDatabaseMigrationsList() *gomock.Call { +// AdminCDSMigrationReset indicates an expected call of AdminCDSMigrationReset. +func (mr *MockAdminMockRecorder) AdminCDSMigrationReset(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseMigrationsList", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseMigrationsList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCDSMigrationReset", reflect.TypeOf((*MockAdmin)(nil).AdminCDSMigrationReset), id) } -// AdminDatabaseSignaturesResume mocks base method -func (m *MockAdmin) AdminDatabaseSignaturesResume(service string) (sdk.CanonicalFormUsageResume, error) { +// AdminDatabaseListEncryptedEntities mocks base method. +func (m *MockAdmin) AdminDatabaseListEncryptedEntities(service string) ([]string, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseSignaturesResume", service) - ret0, _ := ret[0].(sdk.CanonicalFormUsageResume) + ret := m.ctrl.Call(m, "AdminDatabaseListEncryptedEntities", service) + ret0, _ := ret[0].([]string) ret1, _ := ret[1].(error) return ret0, ret1 } -// AdminDatabaseSignaturesResume indicates an expected call of AdminDatabaseSignaturesResume -func (mr *MockAdminMockRecorder) AdminDatabaseSignaturesResume(service interface{}) *gomock.Call { +// AdminDatabaseListEncryptedEntities indicates an expected call of AdminDatabaseListEncryptedEntities. +func (mr *MockAdminMockRecorder) AdminDatabaseListEncryptedEntities(service interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseSignaturesResume", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseSignaturesResume), service) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseListEncryptedEntities", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseListEncryptedEntities), service) } -// AdminDatabaseSignaturesRollEntity mocks base method -func (m *MockAdmin) AdminDatabaseSignaturesRollEntity(service, e string) error { +// AdminDatabaseMigrationDelete mocks base method. +func (m *MockAdmin) AdminDatabaseMigrationDelete(id string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseSignaturesRollEntity", service, e) + ret := m.ctrl.Call(m, "AdminDatabaseMigrationDelete", id) ret0, _ := ret[0].(error) return ret0 } -// AdminDatabaseSignaturesRollEntity indicates an expected call of AdminDatabaseSignaturesRollEntity -func (mr *MockAdminMockRecorder) AdminDatabaseSignaturesRollEntity(service, e interface{}) *gomock.Call { +// AdminDatabaseMigrationDelete indicates an expected call of AdminDatabaseMigrationDelete. +func (mr *MockAdminMockRecorder) AdminDatabaseMigrationDelete(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseSignaturesRollEntity", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseSignaturesRollEntity), service, e) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseMigrationDelete", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseMigrationDelete), id) } -// AdminDatabaseSignaturesRollAllEntities mocks base method -func (m *MockAdmin) AdminDatabaseSignaturesRollAllEntities(service string) error { +// AdminDatabaseMigrationUnlock mocks base method. +func (m *MockAdmin) AdminDatabaseMigrationUnlock(id string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseSignaturesRollAllEntities", service) + ret := m.ctrl.Call(m, "AdminDatabaseMigrationUnlock", id) ret0, _ := ret[0].(error) return ret0 } -// AdminDatabaseSignaturesRollAllEntities indicates an expected call of AdminDatabaseSignaturesRollAllEntities -func (mr *MockAdminMockRecorder) AdminDatabaseSignaturesRollAllEntities(service interface{}) *gomock.Call { +// AdminDatabaseMigrationUnlock indicates an expected call of AdminDatabaseMigrationUnlock. +func (mr *MockAdminMockRecorder) AdminDatabaseMigrationUnlock(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseSignaturesRollAllEntities", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseSignaturesRollAllEntities), service) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseMigrationUnlock", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseMigrationUnlock), id) } -// AdminDatabaseListEncryptedEntities mocks base method -func (m *MockAdmin) AdminDatabaseListEncryptedEntities(service string) ([]string, error) { +// AdminDatabaseMigrationsList mocks base method. +func (m *MockAdmin) AdminDatabaseMigrationsList() ([]sdk.DatabaseMigrationStatus, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseListEncryptedEntities", service) - ret0, _ := ret[0].([]string) + ret := m.ctrl.Call(m, "AdminDatabaseMigrationsList") + ret0, _ := ret[0].([]sdk.DatabaseMigrationStatus) ret1, _ := ret[1].(error) return ret0, ret1 } -// AdminDatabaseListEncryptedEntities indicates an expected call of AdminDatabaseListEncryptedEntities -func (mr *MockAdminMockRecorder) AdminDatabaseListEncryptedEntities(service interface{}) *gomock.Call { +// AdminDatabaseMigrationsList indicates an expected call of AdminDatabaseMigrationsList. +func (mr *MockAdminMockRecorder) AdminDatabaseMigrationsList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseListEncryptedEntities", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseListEncryptedEntities), service) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseMigrationsList", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseMigrationsList)) } -// AdminDatabaseRollEncryptedEntity mocks base method -func (m *MockAdmin) AdminDatabaseRollEncryptedEntity(service, e string) error { +// AdminDatabaseRollAllEncryptedEntities mocks base method. +func (m *MockAdmin) AdminDatabaseRollAllEncryptedEntities(service string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseRollEncryptedEntity", service, e) + ret := m.ctrl.Call(m, "AdminDatabaseRollAllEncryptedEntities", service) ret0, _ := ret[0].(error) return ret0 } -// AdminDatabaseRollEncryptedEntity indicates an expected call of AdminDatabaseRollEncryptedEntity -func (mr *MockAdminMockRecorder) AdminDatabaseRollEncryptedEntity(service, e interface{}) *gomock.Call { +// AdminDatabaseRollAllEncryptedEntities indicates an expected call of AdminDatabaseRollAllEncryptedEntities. +func (mr *MockAdminMockRecorder) AdminDatabaseRollAllEncryptedEntities(service interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseRollEncryptedEntity", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseRollEncryptedEntity), service, e) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseRollAllEncryptedEntities", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseRollAllEncryptedEntities), service) } -// AdminDatabaseRollAllEncryptedEntities mocks base method -func (m *MockAdmin) AdminDatabaseRollAllEncryptedEntities(service string) error { +// AdminDatabaseRollEncryptedEntity mocks base method. +func (m *MockAdmin) AdminDatabaseRollEncryptedEntity(service, e string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseRollAllEncryptedEntities", service) + ret := m.ctrl.Call(m, "AdminDatabaseRollEncryptedEntity", service, e) ret0, _ := ret[0].(error) return ret0 } -// AdminDatabaseRollAllEncryptedEntities indicates an expected call of AdminDatabaseRollAllEncryptedEntities -func (mr *MockAdminMockRecorder) AdminDatabaseRollAllEncryptedEntities(service interface{}) *gomock.Call { +// AdminDatabaseRollEncryptedEntity indicates an expected call of AdminDatabaseRollEncryptedEntity. +func (mr *MockAdminMockRecorder) AdminDatabaseRollEncryptedEntity(service, e interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseRollAllEncryptedEntities", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseRollAllEncryptedEntities), service) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseRollEncryptedEntity", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseRollEncryptedEntity), service, e) } -// AdminCDSMigrationList mocks base method -func (m *MockAdmin) AdminCDSMigrationList() ([]sdk.Migration, error) { +// AdminDatabaseSignaturesResume mocks base method. +func (m *MockAdmin) AdminDatabaseSignaturesResume(service string) (sdk.CanonicalFormUsageResume, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminCDSMigrationList") - ret0, _ := ret[0].([]sdk.Migration) + ret := m.ctrl.Call(m, "AdminDatabaseSignaturesResume", service) + ret0, _ := ret[0].(sdk.CanonicalFormUsageResume) ret1, _ := ret[1].(error) return ret0, ret1 } -// AdminCDSMigrationList indicates an expected call of AdminCDSMigrationList -func (mr *MockAdminMockRecorder) AdminCDSMigrationList() *gomock.Call { +// AdminDatabaseSignaturesResume indicates an expected call of AdminDatabaseSignaturesResume. +func (mr *MockAdminMockRecorder) AdminDatabaseSignaturesResume(service interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCDSMigrationList", reflect.TypeOf((*MockAdmin)(nil).AdminCDSMigrationList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseSignaturesResume", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseSignaturesResume), service) } -// AdminCDSMigrationCancel mocks base method -func (m *MockAdmin) AdminCDSMigrationCancel(id int64) error { +// AdminDatabaseSignaturesRollAllEntities mocks base method. +func (m *MockAdmin) AdminDatabaseSignaturesRollAllEntities(service string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminCDSMigrationCancel", id) + ret := m.ctrl.Call(m, "AdminDatabaseSignaturesRollAllEntities", service) ret0, _ := ret[0].(error) return ret0 } -// AdminCDSMigrationCancel indicates an expected call of AdminCDSMigrationCancel -func (mr *MockAdminMockRecorder) AdminCDSMigrationCancel(id interface{}) *gomock.Call { +// AdminDatabaseSignaturesRollAllEntities indicates an expected call of AdminDatabaseSignaturesRollAllEntities. +func (mr *MockAdminMockRecorder) AdminDatabaseSignaturesRollAllEntities(service interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCDSMigrationCancel", reflect.TypeOf((*MockAdmin)(nil).AdminCDSMigrationCancel), id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseSignaturesRollAllEntities", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseSignaturesRollAllEntities), service) } -// AdminCDSMigrationReset mocks base method -func (m *MockAdmin) AdminCDSMigrationReset(id int64) error { +// AdminDatabaseSignaturesRollEntity mocks base method. +func (m *MockAdmin) AdminDatabaseSignaturesRollEntity(service, e string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminCDSMigrationReset", id) + ret := m.ctrl.Call(m, "AdminDatabaseSignaturesRollEntity", service, e) ret0, _ := ret[0].(error) return ret0 } -// AdminCDSMigrationReset indicates an expected call of AdminCDSMigrationReset -func (mr *MockAdminMockRecorder) AdminCDSMigrationReset(id interface{}) *gomock.Call { +// AdminDatabaseSignaturesRollEntity indicates an expected call of AdminDatabaseSignaturesRollEntity. +func (mr *MockAdminMockRecorder) AdminDatabaseSignaturesRollEntity(service, e interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCDSMigrationReset", reflect.TypeOf((*MockAdmin)(nil).AdminCDSMigrationReset), id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseSignaturesRollEntity", reflect.TypeOf((*MockAdmin)(nil).AdminDatabaseSignaturesRollEntity), service, e) } -// AdminWorkflowUpdateMaxRuns mocks base method +// AdminWorkflowUpdateMaxRuns mocks base method. func (m *MockAdmin) AdminWorkflowUpdateMaxRuns(projectKey, workflowName string, maxRuns int64) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AdminWorkflowUpdateMaxRuns", projectKey, workflowName, maxRuns) @@ -396,28 +397,13 @@ func (m *MockAdmin) AdminWorkflowUpdateMaxRuns(projectKey, workflowName string, return ret0 } -// AdminWorkflowUpdateMaxRuns indicates an expected call of AdminWorkflowUpdateMaxRuns +// AdminWorkflowUpdateMaxRuns indicates an expected call of AdminWorkflowUpdateMaxRuns. func (mr *MockAdminMockRecorder) AdminWorkflowUpdateMaxRuns(projectKey, workflowName, maxRuns interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminWorkflowUpdateMaxRuns", reflect.TypeOf((*MockAdmin)(nil).AdminWorkflowUpdateMaxRuns), projectKey, workflowName, maxRuns) } -// Features mocks base method -func (m *MockAdmin) Features() ([]sdk.Feature, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Features") - ret0, _ := ret[0].([]sdk.Feature) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Features indicates an expected call of Features -func (mr *MockAdminMockRecorder) Features() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Features", reflect.TypeOf((*MockAdmin)(nil).Features)) -} - -// FeatureCreate mocks base method +// FeatureCreate mocks base method. func (m *MockAdmin) FeatureCreate(f sdk.Feature) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FeatureCreate", f) @@ -425,13 +411,13 @@ func (m *MockAdmin) FeatureCreate(f sdk.Feature) error { return ret0 } -// FeatureCreate indicates an expected call of FeatureCreate +// FeatureCreate indicates an expected call of FeatureCreate. func (mr *MockAdminMockRecorder) FeatureCreate(f interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureCreate", reflect.TypeOf((*MockAdmin)(nil).FeatureCreate), f) } -// FeatureDelete mocks base method +// FeatureDelete mocks base method. func (m *MockAdmin) FeatureDelete(name sdk.FeatureName) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FeatureDelete", name) @@ -439,13 +425,13 @@ func (m *MockAdmin) FeatureDelete(name sdk.FeatureName) error { return ret0 } -// FeatureDelete indicates an expected call of FeatureDelete +// FeatureDelete indicates an expected call of FeatureDelete. func (mr *MockAdminMockRecorder) FeatureDelete(name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureDelete", reflect.TypeOf((*MockAdmin)(nil).FeatureDelete), name) } -// FeatureGet mocks base method +// FeatureGet mocks base method. func (m *MockAdmin) FeatureGet(name sdk.FeatureName) (sdk.Feature, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FeatureGet", name) @@ -454,13 +440,13 @@ func (m *MockAdmin) FeatureGet(name sdk.FeatureName) (sdk.Feature, error) { return ret0, ret1 } -// FeatureGet indicates an expected call of FeatureGet +// FeatureGet indicates an expected call of FeatureGet. func (mr *MockAdminMockRecorder) FeatureGet(name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureGet", reflect.TypeOf((*MockAdmin)(nil).FeatureGet), name) } -// FeatureUpdate mocks base method +// FeatureUpdate mocks base method. func (m *MockAdmin) FeatureUpdate(f sdk.Feature) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FeatureUpdate", f) @@ -468,87 +454,42 @@ func (m *MockAdmin) FeatureUpdate(f sdk.Feature) error { return ret0 } -// FeatureUpdate indicates an expected call of FeatureUpdate +// FeatureUpdate indicates an expected call of FeatureUpdate. func (mr *MockAdminMockRecorder) FeatureUpdate(f interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureUpdate", reflect.TypeOf((*MockAdmin)(nil).FeatureUpdate), f) } -// Services mocks base method -func (m *MockAdmin) Services() ([]sdk.Service, error) { +// Features mocks base method. +func (m *MockAdmin) Features() ([]sdk.Feature, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Services") - ret0, _ := ret[0].([]sdk.Service) + ret := m.ctrl.Call(m, "Features") + ret0, _ := ret[0].([]sdk.Feature) ret1, _ := ret[1].(error) return ret0, ret1 } -// Services indicates an expected call of Services -func (mr *MockAdminMockRecorder) Services() *gomock.Call { +// Features indicates an expected call of Features. +func (mr *MockAdminMockRecorder) Features() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Services", reflect.TypeOf((*MockAdmin)(nil).Services)) -} - -// ServicesByName mocks base method -func (m *MockAdmin) ServicesByName(name string) (*sdk.Service, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServicesByName", name) - ret0, _ := ret[0].(*sdk.Service) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ServicesByName indicates an expected call of ServicesByName -func (mr *MockAdminMockRecorder) ServicesByName(name interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServicesByName", reflect.TypeOf((*MockAdmin)(nil).ServicesByName), name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Features", reflect.TypeOf((*MockAdmin)(nil).Features)) } -// ServiceDelete mocks base method -func (m *MockAdmin) ServiceDelete(name string) error { +// ServiceCallDELETE mocks base method. +func (m *MockAdmin) ServiceCallDELETE(stype, url string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceDelete", name) + ret := m.ctrl.Call(m, "ServiceCallDELETE", stype, url) ret0, _ := ret[0].(error) return ret0 } -// ServiceDelete indicates an expected call of ServiceDelete -func (mr *MockAdminMockRecorder) ServiceDelete(name interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceDelete", reflect.TypeOf((*MockAdmin)(nil).ServiceDelete), name) -} - -// ServicesByType mocks base method -func (m *MockAdmin) ServicesByType(stype string) ([]sdk.Service, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServicesByType", stype) - ret0, _ := ret[0].([]sdk.Service) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ServicesByType indicates an expected call of ServicesByType -func (mr *MockAdminMockRecorder) ServicesByType(stype interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServicesByType", reflect.TypeOf((*MockAdmin)(nil).ServicesByType), stype) -} - -// ServiceNameCallGET mocks base method -func (m *MockAdmin) ServiceNameCallGET(name, url string) ([]byte, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceNameCallGET", name, url) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ServiceNameCallGET indicates an expected call of ServiceNameCallGET -func (mr *MockAdminMockRecorder) ServiceNameCallGET(name, url interface{}) *gomock.Call { +// ServiceCallDELETE indicates an expected call of ServiceCallDELETE. +func (mr *MockAdminMockRecorder) ServiceCallDELETE(stype, url interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceNameCallGET", reflect.TypeOf((*MockAdmin)(nil).ServiceNameCallGET), name, url) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCallDELETE", reflect.TypeOf((*MockAdmin)(nil).ServiceCallDELETE), stype, url) } -// ServiceCallGET mocks base method +// ServiceCallGET mocks base method. func (m *MockAdmin) ServiceCallGET(stype, url string) ([]byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ServiceCallGET", stype, url) @@ -557,13 +498,13 @@ func (m *MockAdmin) ServiceCallGET(stype, url string) ([]byte, error) { return ret0, ret1 } -// ServiceCallGET indicates an expected call of ServiceCallGET +// ServiceCallGET indicates an expected call of ServiceCallGET. func (mr *MockAdminMockRecorder) ServiceCallGET(stype, url interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCallGET", reflect.TypeOf((*MockAdmin)(nil).ServiceCallGET), stype, url) } -// ServiceCallPOST mocks base method +// ServiceCallPOST mocks base method. func (m *MockAdmin) ServiceCallPOST(stype, url string, body []byte) ([]byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ServiceCallPOST", stype, url, body) @@ -572,13 +513,13 @@ func (m *MockAdmin) ServiceCallPOST(stype, url string, body []byte) ([]byte, err return ret0, ret1 } -// ServiceCallPOST indicates an expected call of ServiceCallPOST +// ServiceCallPOST indicates an expected call of ServiceCallPOST. func (mr *MockAdminMockRecorder) ServiceCallPOST(stype, url, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCallPOST", reflect.TypeOf((*MockAdmin)(nil).ServiceCallPOST), stype, url, body) } -// ServiceCallPUT mocks base method +// ServiceCallPUT mocks base method. func (m *MockAdmin) ServiceCallPUT(stype, url string, body []byte) ([]byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ServiceCallPUT", stype, url, body) @@ -587,90 +528,110 @@ func (m *MockAdmin) ServiceCallPUT(stype, url string, body []byte) ([]byte, erro return ret0, ret1 } -// ServiceCallPUT indicates an expected call of ServiceCallPUT +// ServiceCallPUT indicates an expected call of ServiceCallPUT. func (mr *MockAdminMockRecorder) ServiceCallPUT(stype, url, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCallPUT", reflect.TypeOf((*MockAdmin)(nil).ServiceCallPUT), stype, url, body) } -// ServiceCallDELETE mocks base method -func (m *MockAdmin) ServiceCallDELETE(stype, url string) error { +// ServiceDelete mocks base method. +func (m *MockAdmin) ServiceDelete(name string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceCallDELETE", stype, url) + ret := m.ctrl.Call(m, "ServiceDelete", name) ret0, _ := ret[0].(error) return ret0 } -// ServiceCallDELETE indicates an expected call of ServiceCallDELETE -func (mr *MockAdminMockRecorder) ServiceCallDELETE(stype, url interface{}) *gomock.Call { +// ServiceDelete indicates an expected call of ServiceDelete. +func (mr *MockAdminMockRecorder) ServiceDelete(name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCallDELETE", reflect.TypeOf((*MockAdmin)(nil).ServiceCallDELETE), stype, url) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceDelete", reflect.TypeOf((*MockAdmin)(nil).ServiceDelete), name) } -// MockExportImportInterface is a mock of ExportImportInterface interface -type MockExportImportInterface struct { - ctrl *gomock.Controller - recorder *MockExportImportInterfaceMockRecorder +// ServiceNameCallGET mocks base method. +func (m *MockAdmin) ServiceNameCallGET(name, url string) ([]byte, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ServiceNameCallGET", name, url) + ret0, _ := ret[0].([]byte) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// MockExportImportInterfaceMockRecorder is the mock recorder for MockExportImportInterface -type MockExportImportInterfaceMockRecorder struct { - mock *MockExportImportInterface +// ServiceNameCallGET indicates an expected call of ServiceNameCallGET. +func (mr *MockAdminMockRecorder) ServiceNameCallGET(name, url interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceNameCallGET", reflect.TypeOf((*MockAdmin)(nil).ServiceNameCallGET), name, url) } -// NewMockExportImportInterface creates a new mock instance -func NewMockExportImportInterface(ctrl *gomock.Controller) *MockExportImportInterface { - mock := &MockExportImportInterface{ctrl: ctrl} - mock.recorder = &MockExportImportInterfaceMockRecorder{mock} - return mock +// Services mocks base method. +func (m *MockAdmin) Services() ([]sdk.Service, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Services") + ret0, _ := ret[0].([]sdk.Service) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockExportImportInterface) EXPECT() *MockExportImportInterfaceMockRecorder { - return m.recorder +// Services indicates an expected call of Services. +func (mr *MockAdminMockRecorder) Services() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Services", reflect.TypeOf((*MockAdmin)(nil).Services)) } -// PipelineExport mocks base method -func (m *MockExportImportInterface) PipelineExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { +// ServicesByName mocks base method. +func (m *MockAdmin) ServicesByName(name string) (*sdk.Service, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "PipelineExport", varargs...) - ret0, _ := ret[0].([]byte) + ret := m.ctrl.Call(m, "ServicesByName", name) + ret0, _ := ret[0].(*sdk.Service) ret1, _ := ret[1].(error) return ret0, ret1 } -// PipelineExport indicates an expected call of PipelineExport -func (mr *MockExportImportInterfaceMockRecorder) PipelineExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { +// ServicesByName indicates an expected call of ServicesByName. +func (mr *MockAdminMockRecorder) ServicesByName(name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineExport", reflect.TypeOf((*MockExportImportInterface)(nil).PipelineExport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServicesByName", reflect.TypeOf((*MockAdmin)(nil).ServicesByName), name) } -// PipelineImport mocks base method -func (m *MockExportImportInterface) PipelineImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { +// ServicesByType mocks base method. +func (m *MockAdmin) ServicesByType(stype string) ([]sdk.Service, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, content} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "PipelineImport", varargs...) - ret0, _ := ret[0].([]string) + ret := m.ctrl.Call(m, "ServicesByType", stype) + ret0, _ := ret[0].([]sdk.Service) ret1, _ := ret[1].(error) return ret0, ret1 } -// PipelineImport indicates an expected call of PipelineImport -func (mr *MockExportImportInterfaceMockRecorder) PipelineImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { +// ServicesByType indicates an expected call of ServicesByType. +func (mr *MockAdminMockRecorder) ServicesByType(stype interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, content}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineImport", reflect.TypeOf((*MockExportImportInterface)(nil).PipelineImport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServicesByType", reflect.TypeOf((*MockAdmin)(nil).ServicesByType), stype) +} + +// MockExportImportInterface is a mock of ExportImportInterface interface. +type MockExportImportInterface struct { + ctrl *gomock.Controller + recorder *MockExportImportInterfaceMockRecorder +} + +// MockExportImportInterfaceMockRecorder is the mock recorder for MockExportImportInterface. +type MockExportImportInterfaceMockRecorder struct { + mock *MockExportImportInterface +} + +// NewMockExportImportInterface creates a new mock instance. +func NewMockExportImportInterface(ctrl *gomock.Controller) *MockExportImportInterface { + mock := &MockExportImportInterface{ctrl: ctrl} + mock.recorder = &MockExportImportInterfaceMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockExportImportInterface) EXPECT() *MockExportImportInterfaceMockRecorder { + return m.recorder } -// ApplicationExport mocks base method +// ApplicationExport mocks base method. func (m *MockExportImportInterface) ApplicationExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { m.ctrl.T.Helper() varargs := []interface{}{projectKey, name} @@ -683,14 +644,14 @@ func (m *MockExportImportInterface) ApplicationExport(projectKey, name string, m return ret0, ret1 } -// ApplicationExport indicates an expected call of ApplicationExport +// ApplicationExport indicates an expected call of ApplicationExport. func (mr *MockExportImportInterfaceMockRecorder) ApplicationExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{projectKey, name}, mods...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationExport", reflect.TypeOf((*MockExportImportInterface)(nil).ApplicationExport), varargs...) } -// ApplicationImport mocks base method +// ApplicationImport mocks base method. func (m *MockExportImportInterface) ApplicationImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { m.ctrl.T.Helper() varargs := []interface{}{projectKey, content} @@ -703,74 +664,54 @@ func (m *MockExportImportInterface) ApplicationImport(projectKey string, content return ret0, ret1 } -// ApplicationImport indicates an expected call of ApplicationImport +// ApplicationImport indicates an expected call of ApplicationImport. func (mr *MockExportImportInterfaceMockRecorder) ApplicationImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{projectKey, content}, mods...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationImport", reflect.TypeOf((*MockExportImportInterface)(nil).ApplicationImport), varargs...) } -// WorkflowExport mocks base method -func (m *MockExportImportInterface) WorkflowExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { +// PipelineExport mocks base method. +func (m *MockExportImportInterface) PipelineExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { m.ctrl.T.Helper() varargs := []interface{}{projectKey, name} for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "WorkflowExport", varargs...) + ret := m.ctrl.Call(m, "PipelineExport", varargs...) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowExport indicates an expected call of WorkflowExport -func (mr *MockExportImportInterfaceMockRecorder) WorkflowExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowExport", reflect.TypeOf((*MockExportImportInterface)(nil).WorkflowExport), varargs...) -} - -// WorkflowPull mocks base method -func (m *MockExportImportInterface) WorkflowPull(projectKey, name string, mods ...cdsclient.RequestModifier) (*tar.Reader, error) { - m.ctrl.T.Helper() - varargs := []interface{}{projectKey, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkflowPull", varargs...) - ret0, _ := ret[0].(*tar.Reader) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkflowPull indicates an expected call of WorkflowPull -func (mr *MockExportImportInterfaceMockRecorder) WorkflowPull(projectKey, name interface{}, mods ...interface{}) *gomock.Call { +// PipelineExport indicates an expected call of PipelineExport. +func (mr *MockExportImportInterfaceMockRecorder) PipelineExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{projectKey, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowPull", reflect.TypeOf((*MockExportImportInterface)(nil).WorkflowPull), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineExport", reflect.TypeOf((*MockExportImportInterface)(nil).PipelineExport), varargs...) } -// WorkflowImport mocks base method -func (m *MockExportImportInterface) WorkflowImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { +// PipelineImport mocks base method. +func (m *MockExportImportInterface) PipelineImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { m.ctrl.T.Helper() varargs := []interface{}{projectKey, content} for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "WorkflowImport", varargs...) + ret := m.ctrl.Call(m, "PipelineImport", varargs...) ret0, _ := ret[0].([]string) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowImport indicates an expected call of WorkflowImport -func (mr *MockExportImportInterfaceMockRecorder) WorkflowImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { +// PipelineImport indicates an expected call of PipelineImport. +func (mr *MockExportImportInterfaceMockRecorder) PipelineImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{projectKey, content}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowImport", reflect.TypeOf((*MockExportImportInterface)(nil).WorkflowImport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineImport", reflect.TypeOf((*MockExportImportInterface)(nil).PipelineImport), varargs...) } -// WorkerModelExport mocks base method +// WorkerModelExport mocks base method. func (m *MockExportImportInterface) WorkerModelExport(groupName, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { m.ctrl.T.Helper() varargs := []interface{}{groupName, name} @@ -783,14 +724,14 @@ func (m *MockExportImportInterface) WorkerModelExport(groupName, name string, mo return ret0, ret1 } -// WorkerModelExport indicates an expected call of WorkerModelExport +// WorkerModelExport indicates an expected call of WorkerModelExport. func (mr *MockExportImportInterfaceMockRecorder) WorkerModelExport(groupName, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{groupName, name}, mods...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelExport", reflect.TypeOf((*MockExportImportInterface)(nil).WorkerModelExport), varargs...) } -// WorkerModelImport mocks base method +// WorkerModelImport mocks base method. func (m *MockExportImportInterface) WorkerModelImport(content io.Reader, mods ...cdsclient.RequestModifier) (*sdk.Model, error) { m.ctrl.T.Helper() varargs := []interface{}{content} @@ -803,50 +744,14 @@ func (m *MockExportImportInterface) WorkerModelImport(content io.Reader, mods .. return ret0, ret1 } -// WorkerModelImport indicates an expected call of WorkerModelImport +// WorkerModelImport indicates an expected call of WorkerModelImport. func (mr *MockExportImportInterfaceMockRecorder) WorkerModelImport(content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{content}, mods...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelImport", reflect.TypeOf((*MockExportImportInterface)(nil).WorkerModelImport), varargs...) } -// WorkflowPush mocks base method -func (m *MockExportImportInterface) WorkflowPush(projectKey string, tarContent io.Reader, mods ...cdsclient.RequestModifier) ([]string, *tar.Reader, error) { - m.ctrl.T.Helper() - varargs := []interface{}{projectKey, tarContent} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkflowPush", varargs...) - ret0, _ := ret[0].([]string) - ret1, _ := ret[1].(*tar.Reader) - ret2, _ := ret[2].(error) - return ret0, ret1, ret2 -} - -// WorkflowPush indicates an expected call of WorkflowPush -func (mr *MockExportImportInterfaceMockRecorder) WorkflowPush(projectKey, tarContent interface{}, mods ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, tarContent}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowPush", reflect.TypeOf((*MockExportImportInterface)(nil).WorkflowPush), varargs...) -} - -// WorkflowAsCodeStart mocks base method -func (m *MockExportImportInterface) WorkflowAsCodeStart(projectKey, repoURL string, repoStrategy sdk.RepositoryStrategy) (*sdk.Operation, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowAsCodeStart", projectKey, repoURL, repoStrategy) - ret0, _ := ret[0].(*sdk.Operation) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkflowAsCodeStart indicates an expected call of WorkflowAsCodeStart -func (mr *MockExportImportInterfaceMockRecorder) WorkflowAsCodeStart(projectKey, repoURL, repoStrategy interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodeStart", reflect.TypeOf((*MockExportImportInterface)(nil).WorkflowAsCodeStart), projectKey, repoURL, repoStrategy) -} - -// WorkflowAsCodeInfo mocks base method +// WorkflowAsCodeInfo mocks base method. func (m *MockExportImportInterface) WorkflowAsCodeInfo(projectKey, operationID string) (*sdk.Operation, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowAsCodeInfo", projectKey, operationID) @@ -855,13 +760,13 @@ func (m *MockExportImportInterface) WorkflowAsCodeInfo(projectKey, operationID s return ret0, ret1 } -// WorkflowAsCodeInfo indicates an expected call of WorkflowAsCodeInfo +// WorkflowAsCodeInfo indicates an expected call of WorkflowAsCodeInfo. func (mr *MockExportImportInterfaceMockRecorder) WorkflowAsCodeInfo(projectKey, operationID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodeInfo", reflect.TypeOf((*MockExportImportInterface)(nil).WorkflowAsCodeInfo), projectKey, operationID) } -// WorkflowAsCodePerform mocks base method +// WorkflowAsCodePerform mocks base method. func (m *MockExportImportInterface) WorkflowAsCodePerform(projectKey, operationID string) ([]string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowAsCodePerform", projectKey, operationID) @@ -870,37 +775,14 @@ func (m *MockExportImportInterface) WorkflowAsCodePerform(projectKey, operationI return ret0, ret1 } -// WorkflowAsCodePerform indicates an expected call of WorkflowAsCodePerform +// WorkflowAsCodePerform indicates an expected call of WorkflowAsCodePerform. func (mr *MockExportImportInterfaceMockRecorder) WorkflowAsCodePerform(projectKey, operationID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodePerform", reflect.TypeOf((*MockExportImportInterface)(nil).WorkflowAsCodePerform), projectKey, operationID) } -// MockWorkflowAsCodeInterface is a mock of WorkflowAsCodeInterface interface -type MockWorkflowAsCodeInterface struct { - ctrl *gomock.Controller - recorder *MockWorkflowAsCodeInterfaceMockRecorder -} - -// MockWorkflowAsCodeInterfaceMockRecorder is the mock recorder for MockWorkflowAsCodeInterface -type MockWorkflowAsCodeInterfaceMockRecorder struct { - mock *MockWorkflowAsCodeInterface -} - -// NewMockWorkflowAsCodeInterface creates a new mock instance -func NewMockWorkflowAsCodeInterface(ctrl *gomock.Controller) *MockWorkflowAsCodeInterface { - mock := &MockWorkflowAsCodeInterface{ctrl: ctrl} - mock.recorder = &MockWorkflowAsCodeInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use -func (m *MockWorkflowAsCodeInterface) EXPECT() *MockWorkflowAsCodeInterfaceMockRecorder { - return m.recorder -} - -// WorkflowAsCodeStart mocks base method -func (m *MockWorkflowAsCodeInterface) WorkflowAsCodeStart(projectKey, repoURL string, repoStrategy sdk.RepositoryStrategy) (*sdk.Operation, error) { +// WorkflowAsCodeStart mocks base method. +func (m *MockExportImportInterface) WorkflowAsCodeStart(projectKey, repoURL string, repoStrategy sdk.RepositoryStrategy) (*sdk.Operation, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowAsCodeStart", projectKey, repoURL, repoStrategy) ret0, _ := ret[0].(*sdk.Operation) @@ -908,66 +790,185 @@ func (m *MockWorkflowAsCodeInterface) WorkflowAsCodeStart(projectKey, repoURL st return ret0, ret1 } -// WorkflowAsCodeStart indicates an expected call of WorkflowAsCodeStart -func (mr *MockWorkflowAsCodeInterfaceMockRecorder) WorkflowAsCodeStart(projectKey, repoURL, repoStrategy interface{}) *gomock.Call { +// WorkflowAsCodeStart indicates an expected call of WorkflowAsCodeStart. +func (mr *MockExportImportInterfaceMockRecorder) WorkflowAsCodeStart(projectKey, repoURL, repoStrategy interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodeStart", reflect.TypeOf((*MockWorkflowAsCodeInterface)(nil).WorkflowAsCodeStart), projectKey, repoURL, repoStrategy) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodeStart", reflect.TypeOf((*MockExportImportInterface)(nil).WorkflowAsCodeStart), projectKey, repoURL, repoStrategy) } -// WorkflowAsCodeInfo mocks base method -func (m *MockWorkflowAsCodeInterface) WorkflowAsCodeInfo(projectKey, operationID string) (*sdk.Operation, error) { +// WorkflowExport mocks base method. +func (m *MockExportImportInterface) WorkflowExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowAsCodeInfo", projectKey, operationID) - ret0, _ := ret[0].(*sdk.Operation) + varargs := []interface{}{projectKey, name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowExport", varargs...) + ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowAsCodeInfo indicates an expected call of WorkflowAsCodeInfo -func (mr *MockWorkflowAsCodeInterfaceMockRecorder) WorkflowAsCodeInfo(projectKey, operationID interface{}) *gomock.Call { +// WorkflowExport indicates an expected call of WorkflowExport. +func (mr *MockExportImportInterfaceMockRecorder) WorkflowExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodeInfo", reflect.TypeOf((*MockWorkflowAsCodeInterface)(nil).WorkflowAsCodeInfo), projectKey, operationID) + varargs := append([]interface{}{projectKey, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowExport", reflect.TypeOf((*MockExportImportInterface)(nil).WorkflowExport), varargs...) } -// WorkflowAsCodePerform mocks base method -func (m *MockWorkflowAsCodeInterface) WorkflowAsCodePerform(projectKey, operationID string) ([]string, error) { +// WorkflowImport mocks base method. +func (m *MockExportImportInterface) WorkflowImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowAsCodePerform", projectKey, operationID) + varargs := []interface{}{projectKey, content} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowImport", varargs...) ret0, _ := ret[0].([]string) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowAsCodePerform indicates an expected call of WorkflowAsCodePerform -func (mr *MockWorkflowAsCodeInterfaceMockRecorder) WorkflowAsCodePerform(projectKey, operationID interface{}) *gomock.Call { +// WorkflowImport indicates an expected call of WorkflowImport. +func (mr *MockExportImportInterfaceMockRecorder) WorkflowImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodePerform", reflect.TypeOf((*MockWorkflowAsCodeInterface)(nil).WorkflowAsCodePerform), projectKey, operationID) + varargs := append([]interface{}{projectKey, content}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowImport", reflect.TypeOf((*MockExportImportInterface)(nil).WorkflowImport), varargs...) } -// MockRepositoriesManagerInterface is a mock of RepositoriesManagerInterface interface -type MockRepositoriesManagerInterface struct { - ctrl *gomock.Controller +// WorkflowPull mocks base method. +func (m *MockExportImportInterface) WorkflowPull(projectKey, name string, mods ...cdsclient.RequestModifier) (*tar.Reader, error) { + m.ctrl.T.Helper() + varargs := []interface{}{projectKey, name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowPull", varargs...) + ret0, _ := ret[0].(*tar.Reader) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkflowPull indicates an expected call of WorkflowPull. +func (mr *MockExportImportInterfaceMockRecorder) WorkflowPull(projectKey, name interface{}, mods ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{projectKey, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowPull", reflect.TypeOf((*MockExportImportInterface)(nil).WorkflowPull), varargs...) +} + +// WorkflowPush mocks base method. +func (m *MockExportImportInterface) WorkflowPush(projectKey string, tarContent io.Reader, mods ...cdsclient.RequestModifier) ([]string, *tar.Reader, error) { + m.ctrl.T.Helper() + varargs := []interface{}{projectKey, tarContent} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowPush", varargs...) + ret0, _ := ret[0].([]string) + ret1, _ := ret[1].(*tar.Reader) + ret2, _ := ret[2].(error) + return ret0, ret1, ret2 +} + +// WorkflowPush indicates an expected call of WorkflowPush. +func (mr *MockExportImportInterfaceMockRecorder) WorkflowPush(projectKey, tarContent interface{}, mods ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{projectKey, tarContent}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowPush", reflect.TypeOf((*MockExportImportInterface)(nil).WorkflowPush), varargs...) +} + +// MockWorkflowAsCodeInterface is a mock of WorkflowAsCodeInterface interface. +type MockWorkflowAsCodeInterface struct { + ctrl *gomock.Controller + recorder *MockWorkflowAsCodeInterfaceMockRecorder +} + +// MockWorkflowAsCodeInterfaceMockRecorder is the mock recorder for MockWorkflowAsCodeInterface. +type MockWorkflowAsCodeInterfaceMockRecorder struct { + mock *MockWorkflowAsCodeInterface +} + +// NewMockWorkflowAsCodeInterface creates a new mock instance. +func NewMockWorkflowAsCodeInterface(ctrl *gomock.Controller) *MockWorkflowAsCodeInterface { + mock := &MockWorkflowAsCodeInterface{ctrl: ctrl} + mock.recorder = &MockWorkflowAsCodeInterfaceMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockWorkflowAsCodeInterface) EXPECT() *MockWorkflowAsCodeInterfaceMockRecorder { + return m.recorder +} + +// WorkflowAsCodeInfo mocks base method. +func (m *MockWorkflowAsCodeInterface) WorkflowAsCodeInfo(projectKey, operationID string) (*sdk.Operation, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowAsCodeInfo", projectKey, operationID) + ret0, _ := ret[0].(*sdk.Operation) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkflowAsCodeInfo indicates an expected call of WorkflowAsCodeInfo. +func (mr *MockWorkflowAsCodeInterfaceMockRecorder) WorkflowAsCodeInfo(projectKey, operationID interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodeInfo", reflect.TypeOf((*MockWorkflowAsCodeInterface)(nil).WorkflowAsCodeInfo), projectKey, operationID) +} + +// WorkflowAsCodePerform mocks base method. +func (m *MockWorkflowAsCodeInterface) WorkflowAsCodePerform(projectKey, operationID string) ([]string, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowAsCodePerform", projectKey, operationID) + ret0, _ := ret[0].([]string) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkflowAsCodePerform indicates an expected call of WorkflowAsCodePerform. +func (mr *MockWorkflowAsCodeInterfaceMockRecorder) WorkflowAsCodePerform(projectKey, operationID interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodePerform", reflect.TypeOf((*MockWorkflowAsCodeInterface)(nil).WorkflowAsCodePerform), projectKey, operationID) +} + +// WorkflowAsCodeStart mocks base method. +func (m *MockWorkflowAsCodeInterface) WorkflowAsCodeStart(projectKey, repoURL string, repoStrategy sdk.RepositoryStrategy) (*sdk.Operation, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowAsCodeStart", projectKey, repoURL, repoStrategy) + ret0, _ := ret[0].(*sdk.Operation) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkflowAsCodeStart indicates an expected call of WorkflowAsCodeStart. +func (mr *MockWorkflowAsCodeInterfaceMockRecorder) WorkflowAsCodeStart(projectKey, repoURL, repoStrategy interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodeStart", reflect.TypeOf((*MockWorkflowAsCodeInterface)(nil).WorkflowAsCodeStart), projectKey, repoURL, repoStrategy) +} + +// MockRepositoriesManagerInterface is a mock of RepositoriesManagerInterface interface. +type MockRepositoriesManagerInterface struct { + ctrl *gomock.Controller recorder *MockRepositoriesManagerInterfaceMockRecorder } -// MockRepositoriesManagerInterfaceMockRecorder is the mock recorder for MockRepositoriesManagerInterface +// MockRepositoriesManagerInterfaceMockRecorder is the mock recorder for MockRepositoriesManagerInterface. type MockRepositoriesManagerInterfaceMockRecorder struct { mock *MockRepositoriesManagerInterface } -// NewMockRepositoriesManagerInterface creates a new mock instance +// NewMockRepositoriesManagerInterface creates a new mock instance. func NewMockRepositoriesManagerInterface(ctrl *gomock.Controller) *MockRepositoriesManagerInterface { mock := &MockRepositoriesManagerInterface{ctrl: ctrl} mock.recorder = &MockRepositoriesManagerInterfaceMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockRepositoriesManagerInterface) EXPECT() *MockRepositoriesManagerInterfaceMockRecorder { return m.recorder } -// RepositoriesList mocks base method +// RepositoriesList mocks base method. func (m *MockRepositoriesManagerInterface) RepositoriesList(projectKey, repoManager string, resync bool) ([]sdk.VCSRepo, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RepositoriesList", projectKey, repoManager, resync) @@ -976,36 +977,36 @@ func (m *MockRepositoriesManagerInterface) RepositoriesList(projectKey, repoMana return ret0, ret1 } -// RepositoriesList indicates an expected call of RepositoriesList +// RepositoriesList indicates an expected call of RepositoriesList. func (mr *MockRepositoriesManagerInterfaceMockRecorder) RepositoriesList(projectKey, repoManager, resync interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RepositoriesList", reflect.TypeOf((*MockRepositoriesManagerInterface)(nil).RepositoriesList), projectKey, repoManager, resync) } -// MockApplicationClient is a mock of ApplicationClient interface +// MockApplicationClient is a mock of ApplicationClient interface. type MockApplicationClient struct { ctrl *gomock.Controller recorder *MockApplicationClientMockRecorder } -// MockApplicationClientMockRecorder is the mock recorder for MockApplicationClient +// MockApplicationClientMockRecorder is the mock recorder for MockApplicationClient. type MockApplicationClientMockRecorder struct { mock *MockApplicationClient } -// NewMockApplicationClient creates a new mock instance +// NewMockApplicationClient creates a new mock instance. func NewMockApplicationClient(ctrl *gomock.Controller) *MockApplicationClient { mock := &MockApplicationClient{ctrl: ctrl} mock.recorder = &MockApplicationClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockApplicationClient) EXPECT() *MockApplicationClientMockRecorder { return m.recorder } -// ApplicationAttachToReposistoriesManager mocks base method +// ApplicationAttachToReposistoriesManager mocks base method. func (m *MockApplicationClient) ApplicationAttachToReposistoriesManager(projectKey, appName, reposManager, repoFullname string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationAttachToReposistoriesManager", projectKey, appName, reposManager, repoFullname) @@ -1013,13 +1014,13 @@ func (m *MockApplicationClient) ApplicationAttachToReposistoriesManager(projectK return ret0 } -// ApplicationAttachToReposistoriesManager indicates an expected call of ApplicationAttachToReposistoriesManager +// ApplicationAttachToReposistoriesManager indicates an expected call of ApplicationAttachToReposistoriesManager. func (mr *MockApplicationClientMockRecorder) ApplicationAttachToReposistoriesManager(projectKey, appName, reposManager, repoFullname interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationAttachToReposistoriesManager", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationAttachToReposistoriesManager), projectKey, appName, reposManager, repoFullname) } -// ApplicationCreate mocks base method +// ApplicationCreate mocks base method. func (m *MockApplicationClient) ApplicationCreate(projectKey string, app *sdk.Application) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationCreate", projectKey, app) @@ -1027,27 +1028,13 @@ func (m *MockApplicationClient) ApplicationCreate(projectKey string, app *sdk.Ap return ret0 } -// ApplicationCreate indicates an expected call of ApplicationCreate +// ApplicationCreate indicates an expected call of ApplicationCreate. func (mr *MockApplicationClientMockRecorder) ApplicationCreate(projectKey, app interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationCreate", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationCreate), projectKey, app) } -// ApplicationUpdate mocks base method -func (m *MockApplicationClient) ApplicationUpdate(projectKey, appName string, app *sdk.Application) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationUpdate", projectKey, appName, app) - ret0, _ := ret[0].(error) - return ret0 -} - -// ApplicationUpdate indicates an expected call of ApplicationUpdate -func (mr *MockApplicationClientMockRecorder) ApplicationUpdate(projectKey, appName, app interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationUpdate", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationUpdate), projectKey, appName, app) -} - -// ApplicationDelete mocks base method +// ApplicationDelete mocks base method. func (m *MockApplicationClient) ApplicationDelete(projectKey, appName string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationDelete", projectKey, appName) @@ -1055,13 +1042,13 @@ func (m *MockApplicationClient) ApplicationDelete(projectKey, appName string) er return ret0 } -// ApplicationDelete indicates an expected call of ApplicationDelete +// ApplicationDelete indicates an expected call of ApplicationDelete. func (mr *MockApplicationClientMockRecorder) ApplicationDelete(projectKey, appName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationDelete", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationDelete), projectKey, appName) } -// ApplicationGet mocks base method +// ApplicationGet mocks base method. func (m *MockApplicationClient) ApplicationGet(projectKey, appName string, opts ...cdsclient.RequestModifier) (*sdk.Application, error) { m.ctrl.T.Helper() varargs := []interface{}{projectKey, appName} @@ -1074,14 +1061,57 @@ func (m *MockApplicationClient) ApplicationGet(projectKey, appName string, opts return ret0, ret1 } -// ApplicationGet indicates an expected call of ApplicationGet +// ApplicationGet indicates an expected call of ApplicationGet. func (mr *MockApplicationClientMockRecorder) ApplicationGet(projectKey, appName interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{projectKey, appName}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationGet", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationGet), varargs...) } -// ApplicationList mocks base method +// ApplicationKeyCreate mocks base method. +func (m *MockApplicationClient) ApplicationKeyCreate(projectKey, appName string, keyApp *sdk.ApplicationKey) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ApplicationKeyCreate", projectKey, appName, keyApp) + ret0, _ := ret[0].(error) + return ret0 +} + +// ApplicationKeyCreate indicates an expected call of ApplicationKeyCreate. +func (mr *MockApplicationClientMockRecorder) ApplicationKeyCreate(projectKey, appName, keyApp interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeyCreate", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationKeyCreate), projectKey, appName, keyApp) +} + +// ApplicationKeysDelete mocks base method. +func (m *MockApplicationClient) ApplicationKeysDelete(projectKey, appName, KeyAppName string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ApplicationKeysDelete", projectKey, appName, KeyAppName) + ret0, _ := ret[0].(error) + return ret0 +} + +// ApplicationKeysDelete indicates an expected call of ApplicationKeysDelete. +func (mr *MockApplicationClientMockRecorder) ApplicationKeysDelete(projectKey, appName, KeyAppName interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeysDelete", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationKeysDelete), projectKey, appName, KeyAppName) +} + +// ApplicationKeysList mocks base method. +func (m *MockApplicationClient) ApplicationKeysList(projectKey, appName string) ([]sdk.ApplicationKey, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ApplicationKeysList", projectKey, appName) + ret0, _ := ret[0].([]sdk.ApplicationKey) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ApplicationKeysList indicates an expected call of ApplicationKeysList. +func (mr *MockApplicationClientMockRecorder) ApplicationKeysList(projectKey, appName interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeysList", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationKeysList), projectKey, appName) +} + +// ApplicationList mocks base method. func (m *MockApplicationClient) ApplicationList(projectKey string) ([]sdk.Application, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationList", projectKey) @@ -1090,28 +1120,27 @@ func (m *MockApplicationClient) ApplicationList(projectKey string) ([]sdk.Applic return ret0, ret1 } -// ApplicationList indicates an expected call of ApplicationList +// ApplicationList indicates an expected call of ApplicationList. func (mr *MockApplicationClientMockRecorder) ApplicationList(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationList", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationList), projectKey) } -// ApplicationVariablesList mocks base method -func (m *MockApplicationClient) ApplicationVariablesList(projectKey, appName string) ([]sdk.Variable, error) { +// ApplicationUpdate mocks base method. +func (m *MockApplicationClient) ApplicationUpdate(projectKey, appName string, app *sdk.Application) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationVariablesList", projectKey, appName) - ret0, _ := ret[0].([]sdk.Variable) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "ApplicationUpdate", projectKey, appName, app) + ret0, _ := ret[0].(error) + return ret0 } -// ApplicationVariablesList indicates an expected call of ApplicationVariablesList -func (mr *MockApplicationClientMockRecorder) ApplicationVariablesList(projectKey, appName interface{}) *gomock.Call { +// ApplicationUpdate indicates an expected call of ApplicationUpdate. +func (mr *MockApplicationClientMockRecorder) ApplicationUpdate(projectKey, appName, app interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariablesList", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationVariablesList), projectKey, appName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationUpdate", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationUpdate), projectKey, appName, app) } -// ApplicationVariableCreate mocks base method +// ApplicationVariableCreate mocks base method. func (m *MockApplicationClient) ApplicationVariableCreate(projectKey, appName string, variable *sdk.Variable) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationVariableCreate", projectKey, appName, variable) @@ -1119,13 +1148,13 @@ func (m *MockApplicationClient) ApplicationVariableCreate(projectKey, appName st return ret0 } -// ApplicationVariableCreate indicates an expected call of ApplicationVariableCreate +// ApplicationVariableCreate indicates an expected call of ApplicationVariableCreate. func (mr *MockApplicationClientMockRecorder) ApplicationVariableCreate(projectKey, appName, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableCreate", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationVariableCreate), projectKey, appName, variable) } -// ApplicationVariableDelete mocks base method +// ApplicationVariableDelete mocks base method. func (m *MockApplicationClient) ApplicationVariableDelete(projectKey, appName, varName string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationVariableDelete", projectKey, appName, varName) @@ -1133,13 +1162,13 @@ func (m *MockApplicationClient) ApplicationVariableDelete(projectKey, appName, v return ret0 } -// ApplicationVariableDelete indicates an expected call of ApplicationVariableDelete +// ApplicationVariableDelete indicates an expected call of ApplicationVariableDelete. func (mr *MockApplicationClientMockRecorder) ApplicationVariableDelete(projectKey, appName, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableDelete", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationVariableDelete), projectKey, appName, varName) } -// ApplicationVariableGet mocks base method +// ApplicationVariableGet mocks base method. func (m *MockApplicationClient) ApplicationVariableGet(projectKey, appName, varName string) (*sdk.Variable, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationVariableGet", projectKey, appName, varName) @@ -1148,13 +1177,13 @@ func (m *MockApplicationClient) ApplicationVariableGet(projectKey, appName, varN return ret0, ret1 } -// ApplicationVariableGet indicates an expected call of ApplicationVariableGet +// ApplicationVariableGet indicates an expected call of ApplicationVariableGet. func (mr *MockApplicationClientMockRecorder) ApplicationVariableGet(projectKey, appName, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableGet", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationVariableGet), projectKey, appName, varName) } -// ApplicationVariableUpdate mocks base method +// ApplicationVariableUpdate mocks base method. func (m *MockApplicationClient) ApplicationVariableUpdate(projectKey, appName string, variable *sdk.Variable) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationVariableUpdate", projectKey, appName, variable) @@ -1162,94 +1191,51 @@ func (m *MockApplicationClient) ApplicationVariableUpdate(projectKey, appName st return ret0 } -// ApplicationVariableUpdate indicates an expected call of ApplicationVariableUpdate +// ApplicationVariableUpdate indicates an expected call of ApplicationVariableUpdate. func (mr *MockApplicationClientMockRecorder) ApplicationVariableUpdate(projectKey, appName, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableUpdate", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationVariableUpdate), projectKey, appName, variable) } -// ApplicationKeysList mocks base method -func (m *MockApplicationClient) ApplicationKeysList(projectKey, appName string) ([]sdk.ApplicationKey, error) { +// ApplicationVariablesList mocks base method. +func (m *MockApplicationClient) ApplicationVariablesList(projectKey, appName string) ([]sdk.Variable, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationKeysList", projectKey, appName) - ret0, _ := ret[0].([]sdk.ApplicationKey) + ret := m.ctrl.Call(m, "ApplicationVariablesList", projectKey, appName) + ret0, _ := ret[0].([]sdk.Variable) ret1, _ := ret[1].(error) return ret0, ret1 } -// ApplicationKeysList indicates an expected call of ApplicationKeysList -func (mr *MockApplicationClientMockRecorder) ApplicationKeysList(projectKey, appName interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeysList", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationKeysList), projectKey, appName) -} - -// ApplicationKeyCreate mocks base method -func (m *MockApplicationClient) ApplicationKeyCreate(projectKey, appName string, keyApp *sdk.ApplicationKey) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationKeyCreate", projectKey, appName, keyApp) - ret0, _ := ret[0].(error) - return ret0 -} - -// ApplicationKeyCreate indicates an expected call of ApplicationKeyCreate -func (mr *MockApplicationClientMockRecorder) ApplicationKeyCreate(projectKey, appName, keyApp interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeyCreate", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationKeyCreate), projectKey, appName, keyApp) -} - -// ApplicationKeysDelete mocks base method -func (m *MockApplicationClient) ApplicationKeysDelete(projectKey, appName, KeyAppName string) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationKeysDelete", projectKey, appName, KeyAppName) - ret0, _ := ret[0].(error) - return ret0 -} - -// ApplicationKeysDelete indicates an expected call of ApplicationKeysDelete -func (mr *MockApplicationClientMockRecorder) ApplicationKeysDelete(projectKey, appName, KeyAppName interface{}) *gomock.Call { +// ApplicationVariablesList indicates an expected call of ApplicationVariablesList. +func (mr *MockApplicationClientMockRecorder) ApplicationVariablesList(projectKey, appName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeysDelete", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationKeysDelete), projectKey, appName, KeyAppName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariablesList", reflect.TypeOf((*MockApplicationClient)(nil).ApplicationVariablesList), projectKey, appName) } -// MockApplicationKeysClient is a mock of ApplicationKeysClient interface +// MockApplicationKeysClient is a mock of ApplicationKeysClient interface. type MockApplicationKeysClient struct { ctrl *gomock.Controller recorder *MockApplicationKeysClientMockRecorder } -// MockApplicationKeysClientMockRecorder is the mock recorder for MockApplicationKeysClient +// MockApplicationKeysClientMockRecorder is the mock recorder for MockApplicationKeysClient. type MockApplicationKeysClientMockRecorder struct { mock *MockApplicationKeysClient } -// NewMockApplicationKeysClient creates a new mock instance +// NewMockApplicationKeysClient creates a new mock instance. func NewMockApplicationKeysClient(ctrl *gomock.Controller) *MockApplicationKeysClient { mock := &MockApplicationKeysClient{ctrl: ctrl} mock.recorder = &MockApplicationKeysClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockApplicationKeysClient) EXPECT() *MockApplicationKeysClientMockRecorder { return m.recorder } -// ApplicationKeysList mocks base method -func (m *MockApplicationKeysClient) ApplicationKeysList(projectKey, appName string) ([]sdk.ApplicationKey, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationKeysList", projectKey, appName) - ret0, _ := ret[0].([]sdk.ApplicationKey) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplicationKeysList indicates an expected call of ApplicationKeysList -func (mr *MockApplicationKeysClientMockRecorder) ApplicationKeysList(projectKey, appName interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeysList", reflect.TypeOf((*MockApplicationKeysClient)(nil).ApplicationKeysList), projectKey, appName) -} - -// ApplicationKeyCreate mocks base method +// ApplicationKeyCreate mocks base method. func (m *MockApplicationKeysClient) ApplicationKeyCreate(projectKey, appName string, keyApp *sdk.ApplicationKey) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationKeyCreate", projectKey, appName, keyApp) @@ -1257,13 +1243,13 @@ func (m *MockApplicationKeysClient) ApplicationKeyCreate(projectKey, appName str return ret0 } -// ApplicationKeyCreate indicates an expected call of ApplicationKeyCreate +// ApplicationKeyCreate indicates an expected call of ApplicationKeyCreate. func (mr *MockApplicationKeysClientMockRecorder) ApplicationKeyCreate(projectKey, appName, keyApp interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeyCreate", reflect.TypeOf((*MockApplicationKeysClient)(nil).ApplicationKeyCreate), projectKey, appName, keyApp) } -// ApplicationKeysDelete mocks base method +// ApplicationKeysDelete mocks base method. func (m *MockApplicationKeysClient) ApplicationKeysDelete(projectKey, appName, KeyAppName string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationKeysDelete", projectKey, appName, KeyAppName) @@ -1271,51 +1257,51 @@ func (m *MockApplicationKeysClient) ApplicationKeysDelete(projectKey, appName, K return ret0 } -// ApplicationKeysDelete indicates an expected call of ApplicationKeysDelete +// ApplicationKeysDelete indicates an expected call of ApplicationKeysDelete. func (mr *MockApplicationKeysClientMockRecorder) ApplicationKeysDelete(projectKey, appName, KeyAppName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeysDelete", reflect.TypeOf((*MockApplicationKeysClient)(nil).ApplicationKeysDelete), projectKey, appName, KeyAppName) } -// MockApplicationVariableClient is a mock of ApplicationVariableClient interface +// ApplicationKeysList mocks base method. +func (m *MockApplicationKeysClient) ApplicationKeysList(projectKey, appName string) ([]sdk.ApplicationKey, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ApplicationKeysList", projectKey, appName) + ret0, _ := ret[0].([]sdk.ApplicationKey) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ApplicationKeysList indicates an expected call of ApplicationKeysList. +func (mr *MockApplicationKeysClientMockRecorder) ApplicationKeysList(projectKey, appName interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeysList", reflect.TypeOf((*MockApplicationKeysClient)(nil).ApplicationKeysList), projectKey, appName) +} + +// MockApplicationVariableClient is a mock of ApplicationVariableClient interface. type MockApplicationVariableClient struct { ctrl *gomock.Controller recorder *MockApplicationVariableClientMockRecorder } -// MockApplicationVariableClientMockRecorder is the mock recorder for MockApplicationVariableClient +// MockApplicationVariableClientMockRecorder is the mock recorder for MockApplicationVariableClient. type MockApplicationVariableClientMockRecorder struct { mock *MockApplicationVariableClient } -// NewMockApplicationVariableClient creates a new mock instance +// NewMockApplicationVariableClient creates a new mock instance. func NewMockApplicationVariableClient(ctrl *gomock.Controller) *MockApplicationVariableClient { mock := &MockApplicationVariableClient{ctrl: ctrl} mock.recorder = &MockApplicationVariableClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockApplicationVariableClient) EXPECT() *MockApplicationVariableClientMockRecorder { return m.recorder } -// ApplicationVariablesList mocks base method -func (m *MockApplicationVariableClient) ApplicationVariablesList(projectKey, appName string) ([]sdk.Variable, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationVariablesList", projectKey, appName) - ret0, _ := ret[0].([]sdk.Variable) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplicationVariablesList indicates an expected call of ApplicationVariablesList -func (mr *MockApplicationVariableClientMockRecorder) ApplicationVariablesList(projectKey, appName interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariablesList", reflect.TypeOf((*MockApplicationVariableClient)(nil).ApplicationVariablesList), projectKey, appName) -} - -// ApplicationVariableCreate mocks base method +// ApplicationVariableCreate mocks base method. func (m *MockApplicationVariableClient) ApplicationVariableCreate(projectKey, appName string, variable *sdk.Variable) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationVariableCreate", projectKey, appName, variable) @@ -1323,13 +1309,13 @@ func (m *MockApplicationVariableClient) ApplicationVariableCreate(projectKey, ap return ret0 } -// ApplicationVariableCreate indicates an expected call of ApplicationVariableCreate +// ApplicationVariableCreate indicates an expected call of ApplicationVariableCreate. func (mr *MockApplicationVariableClientMockRecorder) ApplicationVariableCreate(projectKey, appName, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableCreate", reflect.TypeOf((*MockApplicationVariableClient)(nil).ApplicationVariableCreate), projectKey, appName, variable) } -// ApplicationVariableDelete mocks base method +// ApplicationVariableDelete mocks base method. func (m *MockApplicationVariableClient) ApplicationVariableDelete(projectKey, appName, varName string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationVariableDelete", projectKey, appName, varName) @@ -1337,13 +1323,13 @@ func (m *MockApplicationVariableClient) ApplicationVariableDelete(projectKey, ap return ret0 } -// ApplicationVariableDelete indicates an expected call of ApplicationVariableDelete +// ApplicationVariableDelete indicates an expected call of ApplicationVariableDelete. func (mr *MockApplicationVariableClientMockRecorder) ApplicationVariableDelete(projectKey, appName, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableDelete", reflect.TypeOf((*MockApplicationVariableClient)(nil).ApplicationVariableDelete), projectKey, appName, varName) } -// ApplicationVariableGet mocks base method +// ApplicationVariableGet mocks base method. func (m *MockApplicationVariableClient) ApplicationVariableGet(projectKey, appName, varName string) (*sdk.Variable, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationVariableGet", projectKey, appName, varName) @@ -1352,13 +1338,13 @@ func (m *MockApplicationVariableClient) ApplicationVariableGet(projectKey, appNa return ret0, ret1 } -// ApplicationVariableGet indicates an expected call of ApplicationVariableGet +// ApplicationVariableGet indicates an expected call of ApplicationVariableGet. func (mr *MockApplicationVariableClientMockRecorder) ApplicationVariableGet(projectKey, appName, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableGet", reflect.TypeOf((*MockApplicationVariableClient)(nil).ApplicationVariableGet), projectKey, appName, varName) } -// ApplicationVariableUpdate mocks base method +// ApplicationVariableUpdate mocks base method. func (m *MockApplicationVariableClient) ApplicationVariableUpdate(projectKey, appName string, variable *sdk.Variable) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationVariableUpdate", projectKey, appName, variable) @@ -1366,36 +1352,51 @@ func (m *MockApplicationVariableClient) ApplicationVariableUpdate(projectKey, ap return ret0 } -// ApplicationVariableUpdate indicates an expected call of ApplicationVariableUpdate +// ApplicationVariableUpdate indicates an expected call of ApplicationVariableUpdate. func (mr *MockApplicationVariableClientMockRecorder) ApplicationVariableUpdate(projectKey, appName, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableUpdate", reflect.TypeOf((*MockApplicationVariableClient)(nil).ApplicationVariableUpdate), projectKey, appName, variable) } -// MockEnvironmentClient is a mock of EnvironmentClient interface +// ApplicationVariablesList mocks base method. +func (m *MockApplicationVariableClient) ApplicationVariablesList(projectKey, appName string) ([]sdk.Variable, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ApplicationVariablesList", projectKey, appName) + ret0, _ := ret[0].([]sdk.Variable) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ApplicationVariablesList indicates an expected call of ApplicationVariablesList. +func (mr *MockApplicationVariableClientMockRecorder) ApplicationVariablesList(projectKey, appName interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariablesList", reflect.TypeOf((*MockApplicationVariableClient)(nil).ApplicationVariablesList), projectKey, appName) +} + +// MockEnvironmentClient is a mock of EnvironmentClient interface. type MockEnvironmentClient struct { ctrl *gomock.Controller recorder *MockEnvironmentClientMockRecorder } -// MockEnvironmentClientMockRecorder is the mock recorder for MockEnvironmentClient +// MockEnvironmentClientMockRecorder is the mock recorder for MockEnvironmentClient. type MockEnvironmentClientMockRecorder struct { mock *MockEnvironmentClient } -// NewMockEnvironmentClient creates a new mock instance +// NewMockEnvironmentClient creates a new mock instance. func NewMockEnvironmentClient(ctrl *gomock.Controller) *MockEnvironmentClient { mock := &MockEnvironmentClient{ctrl: ctrl} mock.recorder = &MockEnvironmentClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockEnvironmentClient) EXPECT() *MockEnvironmentClientMockRecorder { return m.recorder } -// EnvironmentCreate mocks base method +// EnvironmentCreate mocks base method. func (m *MockEnvironmentClient) EnvironmentCreate(projectKey string, env *sdk.Environment) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnvironmentCreate", projectKey, env) @@ -1403,13 +1404,13 @@ func (m *MockEnvironmentClient) EnvironmentCreate(projectKey string, env *sdk.En return ret0 } -// EnvironmentCreate indicates an expected call of EnvironmentCreate +// EnvironmentCreate indicates an expected call of EnvironmentCreate. func (mr *MockEnvironmentClientMockRecorder) EnvironmentCreate(projectKey, env interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentCreate", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentCreate), projectKey, env) } -// EnvironmentDelete mocks base method +// EnvironmentDelete mocks base method. func (m *MockEnvironmentClient) EnvironmentDelete(projectKey, envName string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnvironmentDelete", projectKey, envName) @@ -1417,68 +1418,53 @@ func (m *MockEnvironmentClient) EnvironmentDelete(projectKey, envName string) er return ret0 } -// EnvironmentDelete indicates an expected call of EnvironmentDelete +// EnvironmentDelete indicates an expected call of EnvironmentDelete. func (mr *MockEnvironmentClientMockRecorder) EnvironmentDelete(projectKey, envName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentDelete", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentDelete), projectKey, envName) } -// EnvironmentGet mocks base method -func (m *MockEnvironmentClient) EnvironmentGet(projectKey, envName string, opts ...cdsclient.RequestModifier) (*sdk.Environment, error) { +// EnvironmentExport mocks base method. +func (m *MockEnvironmentClient) EnvironmentExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, envName} - for _, a := range opts { + varargs := []interface{}{projectKey, name} + for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "EnvironmentGet", varargs...) - ret0, _ := ret[0].(*sdk.Environment) + ret := m.ctrl.Call(m, "EnvironmentExport", varargs...) + ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } -// EnvironmentGet indicates an expected call of EnvironmentGet -func (mr *MockEnvironmentClientMockRecorder) EnvironmentGet(projectKey, envName interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, envName}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentGet", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentGet), varargs...) -} - -// EnvironmentList mocks base method -func (m *MockEnvironmentClient) EnvironmentList(projectKey string) ([]sdk.Environment, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentList", projectKey) - ret0, _ := ret[0].([]sdk.Environment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// EnvironmentList indicates an expected call of EnvironmentList -func (mr *MockEnvironmentClientMockRecorder) EnvironmentList(projectKey interface{}) *gomock.Call { +// EnvironmentExport indicates an expected call of EnvironmentExport. +func (mr *MockEnvironmentClientMockRecorder) EnvironmentExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentList", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentList), projectKey) + varargs := append([]interface{}{projectKey, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentExport", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentExport), varargs...) } -// EnvironmentExport mocks base method -func (m *MockEnvironmentClient) EnvironmentExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { +// EnvironmentGet mocks base method. +func (m *MockEnvironmentClient) EnvironmentGet(projectKey, envName string, opts ...cdsclient.RequestModifier) (*sdk.Environment, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, name} - for _, a := range mods { + varargs := []interface{}{projectKey, envName} + for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "EnvironmentExport", varargs...) - ret0, _ := ret[0].([]byte) + ret := m.ctrl.Call(m, "EnvironmentGet", varargs...) + ret0, _ := ret[0].(*sdk.Environment) ret1, _ := ret[1].(error) return ret0, ret1 } -// EnvironmentExport indicates an expected call of EnvironmentExport -func (mr *MockEnvironmentClientMockRecorder) EnvironmentExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { +// EnvironmentGet indicates an expected call of EnvironmentGet. +func (mr *MockEnvironmentClientMockRecorder) EnvironmentGet(projectKey, envName interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentExport", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentExport), varargs...) + varargs := append([]interface{}{projectKey, envName}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentGet", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentGet), varargs...) } -// EnvironmentImport mocks base method +// EnvironmentImport mocks base method. func (m *MockEnvironmentClient) EnvironmentImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { m.ctrl.T.Helper() varargs := []interface{}{projectKey, content} @@ -1491,29 +1477,72 @@ func (m *MockEnvironmentClient) EnvironmentImport(projectKey string, content io. return ret0, ret1 } -// EnvironmentImport indicates an expected call of EnvironmentImport +// EnvironmentImport indicates an expected call of EnvironmentImport. func (mr *MockEnvironmentClientMockRecorder) EnvironmentImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{projectKey, content}, mods...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentImport", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentImport), varargs...) } -// EnvironmentVariablesList mocks base method -func (m *MockEnvironmentClient) EnvironmentVariablesList(key, envName string) ([]sdk.Variable, error) { +// EnvironmentKeyCreate mocks base method. +func (m *MockEnvironmentClient) EnvironmentKeyCreate(projectKey, envName string, keyEnv *sdk.EnvironmentKey) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentVariablesList", key, envName) - ret0, _ := ret[0].([]sdk.Variable) + ret := m.ctrl.Call(m, "EnvironmentKeyCreate", projectKey, envName, keyEnv) + ret0, _ := ret[0].(error) + return ret0 +} + +// EnvironmentKeyCreate indicates an expected call of EnvironmentKeyCreate. +func (mr *MockEnvironmentClientMockRecorder) EnvironmentKeyCreate(projectKey, envName, keyEnv interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeyCreate", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentKeyCreate), projectKey, envName, keyEnv) +} + +// EnvironmentKeysDelete mocks base method. +func (m *MockEnvironmentClient) EnvironmentKeysDelete(projectKey, envName, keyEnvName string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnvironmentKeysDelete", projectKey, envName, keyEnvName) + ret0, _ := ret[0].(error) + return ret0 +} + +// EnvironmentKeysDelete indicates an expected call of EnvironmentKeysDelete. +func (mr *MockEnvironmentClientMockRecorder) EnvironmentKeysDelete(projectKey, envName, keyEnvName interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeysDelete", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentKeysDelete), projectKey, envName, keyEnvName) +} + +// EnvironmentKeysList mocks base method. +func (m *MockEnvironmentClient) EnvironmentKeysList(projectKey, envName string) ([]sdk.EnvironmentKey, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnvironmentKeysList", projectKey, envName) + ret0, _ := ret[0].([]sdk.EnvironmentKey) ret1, _ := ret[1].(error) return ret0, ret1 } -// EnvironmentVariablesList indicates an expected call of EnvironmentVariablesList -func (mr *MockEnvironmentClientMockRecorder) EnvironmentVariablesList(key, envName interface{}) *gomock.Call { +// EnvironmentKeysList indicates an expected call of EnvironmentKeysList. +func (mr *MockEnvironmentClientMockRecorder) EnvironmentKeysList(projectKey, envName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariablesList", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentVariablesList), key, envName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeysList", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentKeysList), projectKey, envName) +} + +// EnvironmentList mocks base method. +func (m *MockEnvironmentClient) EnvironmentList(projectKey string) ([]sdk.Environment, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnvironmentList", projectKey) + ret0, _ := ret[0].([]sdk.Environment) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnvironmentList indicates an expected call of EnvironmentList. +func (mr *MockEnvironmentClientMockRecorder) EnvironmentList(projectKey interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentList", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentList), projectKey) } -// EnvironmentVariableCreate mocks base method +// EnvironmentVariableCreate mocks base method. func (m *MockEnvironmentClient) EnvironmentVariableCreate(projectKey, envName string, variable *sdk.Variable) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnvironmentVariableCreate", projectKey, envName, variable) @@ -1521,13 +1550,13 @@ func (m *MockEnvironmentClient) EnvironmentVariableCreate(projectKey, envName st return ret0 } -// EnvironmentVariableCreate indicates an expected call of EnvironmentVariableCreate +// EnvironmentVariableCreate indicates an expected call of EnvironmentVariableCreate. func (mr *MockEnvironmentClientMockRecorder) EnvironmentVariableCreate(projectKey, envName, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableCreate", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentVariableCreate), projectKey, envName, variable) } -// EnvironmentVariableDelete mocks base method +// EnvironmentVariableDelete mocks base method. func (m *MockEnvironmentClient) EnvironmentVariableDelete(projectKey, envName, varName string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnvironmentVariableDelete", projectKey, envName, varName) @@ -1535,13 +1564,13 @@ func (m *MockEnvironmentClient) EnvironmentVariableDelete(projectKey, envName, v return ret0 } -// EnvironmentVariableDelete indicates an expected call of EnvironmentVariableDelete +// EnvironmentVariableDelete indicates an expected call of EnvironmentVariableDelete. func (mr *MockEnvironmentClientMockRecorder) EnvironmentVariableDelete(projectKey, envName, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableDelete", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentVariableDelete), projectKey, envName, varName) } -// EnvironmentVariableGet mocks base method +// EnvironmentVariableGet mocks base method. func (m *MockEnvironmentClient) EnvironmentVariableGet(projectKey, envName, varName string) (*sdk.Variable, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnvironmentVariableGet", projectKey, envName, varName) @@ -1550,13 +1579,13 @@ func (m *MockEnvironmentClient) EnvironmentVariableGet(projectKey, envName, varN return ret0, ret1 } -// EnvironmentVariableGet indicates an expected call of EnvironmentVariableGet +// EnvironmentVariableGet indicates an expected call of EnvironmentVariableGet. func (mr *MockEnvironmentClientMockRecorder) EnvironmentVariableGet(projectKey, envName, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableGet", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentVariableGet), projectKey, envName, varName) } -// EnvironmentVariableUpdate mocks base method +// EnvironmentVariableUpdate mocks base method. func (m *MockEnvironmentClient) EnvironmentVariableUpdate(projectKey, envName string, variable *sdk.Variable) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnvironmentVariableUpdate", projectKey, envName, variable) @@ -1564,94 +1593,51 @@ func (m *MockEnvironmentClient) EnvironmentVariableUpdate(projectKey, envName st return ret0 } -// EnvironmentVariableUpdate indicates an expected call of EnvironmentVariableUpdate +// EnvironmentVariableUpdate indicates an expected call of EnvironmentVariableUpdate. func (mr *MockEnvironmentClientMockRecorder) EnvironmentVariableUpdate(projectKey, envName, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableUpdate", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentVariableUpdate), projectKey, envName, variable) } -// EnvironmentKeysList mocks base method -func (m *MockEnvironmentClient) EnvironmentKeysList(projectKey, envName string) ([]sdk.EnvironmentKey, error) { +// EnvironmentVariablesList mocks base method. +func (m *MockEnvironmentClient) EnvironmentVariablesList(key, envName string) ([]sdk.Variable, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentKeysList", projectKey, envName) - ret0, _ := ret[0].([]sdk.EnvironmentKey) + ret := m.ctrl.Call(m, "EnvironmentVariablesList", key, envName) + ret0, _ := ret[0].([]sdk.Variable) ret1, _ := ret[1].(error) return ret0, ret1 } -// EnvironmentKeysList indicates an expected call of EnvironmentKeysList -func (mr *MockEnvironmentClientMockRecorder) EnvironmentKeysList(projectKey, envName interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeysList", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentKeysList), projectKey, envName) -} - -// EnvironmentKeyCreate mocks base method -func (m *MockEnvironmentClient) EnvironmentKeyCreate(projectKey, envName string, keyEnv *sdk.EnvironmentKey) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentKeyCreate", projectKey, envName, keyEnv) - ret0, _ := ret[0].(error) - return ret0 -} - -// EnvironmentKeyCreate indicates an expected call of EnvironmentKeyCreate -func (mr *MockEnvironmentClientMockRecorder) EnvironmentKeyCreate(projectKey, envName, keyEnv interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeyCreate", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentKeyCreate), projectKey, envName, keyEnv) -} - -// EnvironmentKeysDelete mocks base method -func (m *MockEnvironmentClient) EnvironmentKeysDelete(projectKey, envName, keyEnvName string) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentKeysDelete", projectKey, envName, keyEnvName) - ret0, _ := ret[0].(error) - return ret0 -} - -// EnvironmentKeysDelete indicates an expected call of EnvironmentKeysDelete -func (mr *MockEnvironmentClientMockRecorder) EnvironmentKeysDelete(projectKey, envName, keyEnvName interface{}) *gomock.Call { +// EnvironmentVariablesList indicates an expected call of EnvironmentVariablesList. +func (mr *MockEnvironmentClientMockRecorder) EnvironmentVariablesList(key, envName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeysDelete", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentKeysDelete), projectKey, envName, keyEnvName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariablesList", reflect.TypeOf((*MockEnvironmentClient)(nil).EnvironmentVariablesList), key, envName) } -// MockEnvironmentKeysClient is a mock of EnvironmentKeysClient interface +// MockEnvironmentKeysClient is a mock of EnvironmentKeysClient interface. type MockEnvironmentKeysClient struct { ctrl *gomock.Controller recorder *MockEnvironmentKeysClientMockRecorder } -// MockEnvironmentKeysClientMockRecorder is the mock recorder for MockEnvironmentKeysClient +// MockEnvironmentKeysClientMockRecorder is the mock recorder for MockEnvironmentKeysClient. type MockEnvironmentKeysClientMockRecorder struct { mock *MockEnvironmentKeysClient } -// NewMockEnvironmentKeysClient creates a new mock instance +// NewMockEnvironmentKeysClient creates a new mock instance. func NewMockEnvironmentKeysClient(ctrl *gomock.Controller) *MockEnvironmentKeysClient { mock := &MockEnvironmentKeysClient{ctrl: ctrl} mock.recorder = &MockEnvironmentKeysClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockEnvironmentKeysClient) EXPECT() *MockEnvironmentKeysClientMockRecorder { return m.recorder } -// EnvironmentKeysList mocks base method -func (m *MockEnvironmentKeysClient) EnvironmentKeysList(projectKey, envName string) ([]sdk.EnvironmentKey, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentKeysList", projectKey, envName) - ret0, _ := ret[0].([]sdk.EnvironmentKey) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// EnvironmentKeysList indicates an expected call of EnvironmentKeysList -func (mr *MockEnvironmentKeysClientMockRecorder) EnvironmentKeysList(projectKey, envName interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeysList", reflect.TypeOf((*MockEnvironmentKeysClient)(nil).EnvironmentKeysList), projectKey, envName) -} - -// EnvironmentKeyCreate mocks base method +// EnvironmentKeyCreate mocks base method. func (m *MockEnvironmentKeysClient) EnvironmentKeyCreate(projectKey, envName string, keyEnv *sdk.EnvironmentKey) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnvironmentKeyCreate", projectKey, envName, keyEnv) @@ -1659,13 +1645,13 @@ func (m *MockEnvironmentKeysClient) EnvironmentKeyCreate(projectKey, envName str return ret0 } -// EnvironmentKeyCreate indicates an expected call of EnvironmentKeyCreate +// EnvironmentKeyCreate indicates an expected call of EnvironmentKeyCreate. func (mr *MockEnvironmentKeysClientMockRecorder) EnvironmentKeyCreate(projectKey, envName, keyEnv interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeyCreate", reflect.TypeOf((*MockEnvironmentKeysClient)(nil).EnvironmentKeyCreate), projectKey, envName, keyEnv) } -// EnvironmentKeysDelete mocks base method +// EnvironmentKeysDelete mocks base method. func (m *MockEnvironmentKeysClient) EnvironmentKeysDelete(projectKey, envName, keyEnvName string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnvironmentKeysDelete", projectKey, envName, keyEnvName) @@ -1673,51 +1659,51 @@ func (m *MockEnvironmentKeysClient) EnvironmentKeysDelete(projectKey, envName, k return ret0 } -// EnvironmentKeysDelete indicates an expected call of EnvironmentKeysDelete +// EnvironmentKeysDelete indicates an expected call of EnvironmentKeysDelete. func (mr *MockEnvironmentKeysClientMockRecorder) EnvironmentKeysDelete(projectKey, envName, keyEnvName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeysDelete", reflect.TypeOf((*MockEnvironmentKeysClient)(nil).EnvironmentKeysDelete), projectKey, envName, keyEnvName) } -// MockEnvironmentVariableClient is a mock of EnvironmentVariableClient interface +// EnvironmentKeysList mocks base method. +func (m *MockEnvironmentKeysClient) EnvironmentKeysList(projectKey, envName string) ([]sdk.EnvironmentKey, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnvironmentKeysList", projectKey, envName) + ret0, _ := ret[0].([]sdk.EnvironmentKey) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnvironmentKeysList indicates an expected call of EnvironmentKeysList. +func (mr *MockEnvironmentKeysClientMockRecorder) EnvironmentKeysList(projectKey, envName interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeysList", reflect.TypeOf((*MockEnvironmentKeysClient)(nil).EnvironmentKeysList), projectKey, envName) +} + +// MockEnvironmentVariableClient is a mock of EnvironmentVariableClient interface. type MockEnvironmentVariableClient struct { ctrl *gomock.Controller recorder *MockEnvironmentVariableClientMockRecorder } -// MockEnvironmentVariableClientMockRecorder is the mock recorder for MockEnvironmentVariableClient +// MockEnvironmentVariableClientMockRecorder is the mock recorder for MockEnvironmentVariableClient. type MockEnvironmentVariableClientMockRecorder struct { mock *MockEnvironmentVariableClient } -// NewMockEnvironmentVariableClient creates a new mock instance +// NewMockEnvironmentVariableClient creates a new mock instance. func NewMockEnvironmentVariableClient(ctrl *gomock.Controller) *MockEnvironmentVariableClient { mock := &MockEnvironmentVariableClient{ctrl: ctrl} mock.recorder = &MockEnvironmentVariableClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockEnvironmentVariableClient) EXPECT() *MockEnvironmentVariableClientMockRecorder { return m.recorder } -// EnvironmentVariablesList mocks base method -func (m *MockEnvironmentVariableClient) EnvironmentVariablesList(key, envName string) ([]sdk.Variable, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentVariablesList", key, envName) - ret0, _ := ret[0].([]sdk.Variable) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// EnvironmentVariablesList indicates an expected call of EnvironmentVariablesList -func (mr *MockEnvironmentVariableClientMockRecorder) EnvironmentVariablesList(key, envName interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariablesList", reflect.TypeOf((*MockEnvironmentVariableClient)(nil).EnvironmentVariablesList), key, envName) -} - -// EnvironmentVariableCreate mocks base method +// EnvironmentVariableCreate mocks base method. func (m *MockEnvironmentVariableClient) EnvironmentVariableCreate(projectKey, envName string, variable *sdk.Variable) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnvironmentVariableCreate", projectKey, envName, variable) @@ -1725,13 +1711,13 @@ func (m *MockEnvironmentVariableClient) EnvironmentVariableCreate(projectKey, en return ret0 } -// EnvironmentVariableCreate indicates an expected call of EnvironmentVariableCreate +// EnvironmentVariableCreate indicates an expected call of EnvironmentVariableCreate. func (mr *MockEnvironmentVariableClientMockRecorder) EnvironmentVariableCreate(projectKey, envName, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableCreate", reflect.TypeOf((*MockEnvironmentVariableClient)(nil).EnvironmentVariableCreate), projectKey, envName, variable) } -// EnvironmentVariableDelete mocks base method +// EnvironmentVariableDelete mocks base method. func (m *MockEnvironmentVariableClient) EnvironmentVariableDelete(projectKey, envName, varName string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnvironmentVariableDelete", projectKey, envName, varName) @@ -1739,13 +1725,13 @@ func (m *MockEnvironmentVariableClient) EnvironmentVariableDelete(projectKey, en return ret0 } -// EnvironmentVariableDelete indicates an expected call of EnvironmentVariableDelete +// EnvironmentVariableDelete indicates an expected call of EnvironmentVariableDelete. func (mr *MockEnvironmentVariableClientMockRecorder) EnvironmentVariableDelete(projectKey, envName, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableDelete", reflect.TypeOf((*MockEnvironmentVariableClient)(nil).EnvironmentVariableDelete), projectKey, envName, varName) } -// EnvironmentVariableGet mocks base method +// EnvironmentVariableGet mocks base method. func (m *MockEnvironmentVariableClient) EnvironmentVariableGet(projectKey, envName, varName string) (*sdk.Variable, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnvironmentVariableGet", projectKey, envName, varName) @@ -1754,13 +1740,13 @@ func (m *MockEnvironmentVariableClient) EnvironmentVariableGet(projectKey, envNa return ret0, ret1 } -// EnvironmentVariableGet indicates an expected call of EnvironmentVariableGet +// EnvironmentVariableGet indicates an expected call of EnvironmentVariableGet. func (mr *MockEnvironmentVariableClientMockRecorder) EnvironmentVariableGet(projectKey, envName, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableGet", reflect.TypeOf((*MockEnvironmentVariableClient)(nil).EnvironmentVariableGet), projectKey, envName, varName) } -// EnvironmentVariableUpdate mocks base method +// EnvironmentVariableUpdate mocks base method. func (m *MockEnvironmentVariableClient) EnvironmentVariableUpdate(projectKey, envName string, variable *sdk.Variable) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnvironmentVariableUpdate", projectKey, envName, variable) @@ -1768,71 +1754,86 @@ func (m *MockEnvironmentVariableClient) EnvironmentVariableUpdate(projectKey, en return ret0 } -// EnvironmentVariableUpdate indicates an expected call of EnvironmentVariableUpdate +// EnvironmentVariableUpdate indicates an expected call of EnvironmentVariableUpdate. func (mr *MockEnvironmentVariableClientMockRecorder) EnvironmentVariableUpdate(projectKey, envName, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableUpdate", reflect.TypeOf((*MockEnvironmentVariableClient)(nil).EnvironmentVariableUpdate), projectKey, envName, variable) } -// MockEventsClient is a mock of EventsClient interface +// EnvironmentVariablesList mocks base method. +func (m *MockEnvironmentVariableClient) EnvironmentVariablesList(key, envName string) ([]sdk.Variable, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnvironmentVariablesList", key, envName) + ret0, _ := ret[0].([]sdk.Variable) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnvironmentVariablesList indicates an expected call of EnvironmentVariablesList. +func (mr *MockEnvironmentVariableClientMockRecorder) EnvironmentVariablesList(key, envName interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariablesList", reflect.TypeOf((*MockEnvironmentVariableClient)(nil).EnvironmentVariablesList), key, envName) +} + +// MockEventsClient is a mock of EventsClient interface. type MockEventsClient struct { ctrl *gomock.Controller recorder *MockEventsClientMockRecorder } -// MockEventsClientMockRecorder is the mock recorder for MockEventsClient +// MockEventsClientMockRecorder is the mock recorder for MockEventsClient. type MockEventsClientMockRecorder struct { mock *MockEventsClient } -// NewMockEventsClient creates a new mock instance +// NewMockEventsClient creates a new mock instance. func NewMockEventsClient(ctrl *gomock.Controller) *MockEventsClient { mock := &MockEventsClient{ctrl: ctrl} mock.recorder = &MockEventsClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockEventsClient) EXPECT() *MockEventsClientMockRecorder { return m.recorder } -// WebsocketEventsListen mocks base method +// WebsocketEventsListen mocks base method. func (m *MockEventsClient) WebsocketEventsListen(ctx context.Context, goRoutines *sdk.GoRoutines, chanMsgToSend <-chan []sdk.WebsocketFilter, chanMsgReceived chan<- sdk.WebsocketEvent, chanErrorReceived chan<- error) { m.ctrl.T.Helper() m.ctrl.Call(m, "WebsocketEventsListen", ctx, goRoutines, chanMsgToSend, chanMsgReceived, chanErrorReceived) } -// WebsocketEventsListen indicates an expected call of WebsocketEventsListen +// WebsocketEventsListen indicates an expected call of WebsocketEventsListen. func (mr *MockEventsClientMockRecorder) WebsocketEventsListen(ctx, goRoutines, chanMsgToSend, chanMsgReceived, chanErrorReceived interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WebsocketEventsListen", reflect.TypeOf((*MockEventsClient)(nil).WebsocketEventsListen), ctx, goRoutines, chanMsgToSend, chanMsgReceived, chanErrorReceived) } -// MockDownloadClient is a mock of DownloadClient interface +// MockDownloadClient is a mock of DownloadClient interface. type MockDownloadClient struct { ctrl *gomock.Controller recorder *MockDownloadClientMockRecorder } -// MockDownloadClientMockRecorder is the mock recorder for MockDownloadClient +// MockDownloadClientMockRecorder is the mock recorder for MockDownloadClient. type MockDownloadClientMockRecorder struct { mock *MockDownloadClient } -// NewMockDownloadClient creates a new mock instance +// NewMockDownloadClient creates a new mock instance. func NewMockDownloadClient(ctrl *gomock.Controller) *MockDownloadClient { mock := &MockDownloadClient{ctrl: ctrl} mock.recorder = &MockDownloadClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockDownloadClient) EXPECT() *MockDownloadClientMockRecorder { return m.recorder } -// Download mocks base method +// Download mocks base method. func (m *MockDownloadClient) Download() ([]sdk.DownloadableResource, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Download") @@ -1841,13 +1842,13 @@ func (m *MockDownloadClient) Download() ([]sdk.DownloadableResource, error) { return ret0, ret1 } -// Download indicates an expected call of Download +// Download indicates an expected call of Download. func (mr *MockDownloadClientMockRecorder) Download() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Download", reflect.TypeOf((*MockDownloadClient)(nil).Download)) } -// DownloadURLFromAPI mocks base method +// DownloadURLFromAPI mocks base method. func (m *MockDownloadClient) DownloadURLFromAPI(name, os, arch, variant string) string { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DownloadURLFromAPI", name, os, arch, variant) @@ -1855,13 +1856,13 @@ func (m *MockDownloadClient) DownloadURLFromAPI(name, os, arch, variant string) return ret0 } -// DownloadURLFromAPI indicates an expected call of DownloadURLFromAPI +// DownloadURLFromAPI indicates an expected call of DownloadURLFromAPI. func (mr *MockDownloadClientMockRecorder) DownloadURLFromAPI(name, os, arch, variant interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadURLFromAPI", reflect.TypeOf((*MockDownloadClient)(nil).DownloadURLFromAPI), name, os, arch, variant) } -// DownloadURLFromGithub mocks base method +// DownloadURLFromGithub mocks base method. func (m *MockDownloadClient) DownloadURLFromGithub(filename string) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DownloadURLFromGithub", filename) @@ -1870,36 +1871,71 @@ func (m *MockDownloadClient) DownloadURLFromGithub(filename string) (string, err return ret0, ret1 } -// DownloadURLFromGithub indicates an expected call of DownloadURLFromGithub +// DownloadURLFromGithub indicates an expected call of DownloadURLFromGithub. func (mr *MockDownloadClientMockRecorder) DownloadURLFromGithub(filename interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadURLFromGithub", reflect.TypeOf((*MockDownloadClient)(nil).DownloadURLFromGithub), filename) } -// MockActionClient is a mock of ActionClient interface +// MockActionClient is a mock of ActionClient interface. type MockActionClient struct { ctrl *gomock.Controller recorder *MockActionClientMockRecorder } -// MockActionClientMockRecorder is the mock recorder for MockActionClient +// MockActionClientMockRecorder is the mock recorder for MockActionClient. type MockActionClientMockRecorder struct { mock *MockActionClient } -// NewMockActionClient creates a new mock instance +// NewMockActionClient creates a new mock instance. func NewMockActionClient(ctrl *gomock.Controller) *MockActionClient { mock := &MockActionClient{ctrl: ctrl} mock.recorder = &MockActionClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockActionClient) EXPECT() *MockActionClientMockRecorder { return m.recorder } -// ActionDelete mocks base method +// ActionBuiltinGet mocks base method. +func (m *MockActionClient) ActionBuiltinGet(name string, mods ...cdsclient.RequestModifier) (*sdk.Action, error) { + m.ctrl.T.Helper() + varargs := []interface{}{name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ActionBuiltinGet", varargs...) + ret0, _ := ret[0].(*sdk.Action) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ActionBuiltinGet indicates an expected call of ActionBuiltinGet. +func (mr *MockActionClientMockRecorder) ActionBuiltinGet(name interface{}, mods ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionBuiltinGet", reflect.TypeOf((*MockActionClient)(nil).ActionBuiltinGet), varargs...) +} + +// ActionBuiltinList mocks base method. +func (m *MockActionClient) ActionBuiltinList() ([]sdk.Action, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ActionBuiltinList") + ret0, _ := ret[0].([]sdk.Action) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ActionBuiltinList indicates an expected call of ActionBuiltinList. +func (mr *MockActionClientMockRecorder) ActionBuiltinList() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionBuiltinList", reflect.TypeOf((*MockActionClient)(nil).ActionBuiltinList)) +} + +// ActionDelete mocks base method. func (m *MockActionClient) ActionDelete(groupName, name string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ActionDelete", groupName, name) @@ -1907,68 +1943,53 @@ func (m *MockActionClient) ActionDelete(groupName, name string) error { return ret0 } -// ActionDelete indicates an expected call of ActionDelete +// ActionDelete indicates an expected call of ActionDelete. func (mr *MockActionClientMockRecorder) ActionDelete(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionDelete", reflect.TypeOf((*MockActionClient)(nil).ActionDelete), groupName, name) } -// ActionGet mocks base method -func (m *MockActionClient) ActionGet(groupName, name string, mods ...cdsclient.RequestModifier) (*sdk.Action, error) { +// ActionExport mocks base method. +func (m *MockActionClient) ActionExport(groupName, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { m.ctrl.T.Helper() varargs := []interface{}{groupName, name} for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ActionGet", varargs...) - ret0, _ := ret[0].(*sdk.Action) + ret := m.ctrl.Call(m, "ActionExport", varargs...) + ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } -// ActionGet indicates an expected call of ActionGet -func (mr *MockActionClientMockRecorder) ActionGet(groupName, name interface{}, mods ...interface{}) *gomock.Call { +// ActionExport indicates an expected call of ActionExport. +func (mr *MockActionClientMockRecorder) ActionExport(groupName, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{groupName, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionGet", reflect.TypeOf((*MockActionClient)(nil).ActionGet), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionExport", reflect.TypeOf((*MockActionClient)(nil).ActionExport), varargs...) } -// ActionUsage mocks base method -func (m *MockActionClient) ActionUsage(groupName, name string, mods ...cdsclient.RequestModifier) (*sdk.ActionUsages, error) { +// ActionGet mocks base method. +func (m *MockActionClient) ActionGet(groupName, name string, mods ...cdsclient.RequestModifier) (*sdk.Action, error) { m.ctrl.T.Helper() varargs := []interface{}{groupName, name} for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ActionUsage", varargs...) - ret0, _ := ret[0].(*sdk.ActionUsages) + ret := m.ctrl.Call(m, "ActionGet", varargs...) + ret0, _ := ret[0].(*sdk.Action) ret1, _ := ret[1].(error) return ret0, ret1 } -// ActionUsage indicates an expected call of ActionUsage -func (mr *MockActionClientMockRecorder) ActionUsage(groupName, name interface{}, mods ...interface{}) *gomock.Call { +// ActionGet indicates an expected call of ActionGet. +func (mr *MockActionClientMockRecorder) ActionGet(groupName, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{groupName, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionUsage", reflect.TypeOf((*MockActionClient)(nil).ActionUsage), varargs...) -} - -// ActionList mocks base method -func (m *MockActionClient) ActionList() ([]sdk.Action, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ActionList") - ret0, _ := ret[0].([]sdk.Action) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ActionList indicates an expected call of ActionList -func (mr *MockActionClientMockRecorder) ActionList() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionList", reflect.TypeOf((*MockActionClient)(nil).ActionList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionGet", reflect.TypeOf((*MockActionClient)(nil).ActionGet), varargs...) } -// ActionImport mocks base method +// ActionImport mocks base method. func (m *MockActionClient) ActionImport(content io.Reader, mods ...cdsclient.RequestModifier) error { m.ctrl.T.Helper() varargs := []interface{}{content} @@ -1980,107 +2001,100 @@ func (m *MockActionClient) ActionImport(content io.Reader, mods ...cdsclient.Req return ret0 } -// ActionImport indicates an expected call of ActionImport +// ActionImport indicates an expected call of ActionImport. func (mr *MockActionClientMockRecorder) ActionImport(content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{content}, mods...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionImport", reflect.TypeOf((*MockActionClient)(nil).ActionImport), varargs...) } -// ActionExport mocks base method -func (m *MockActionClient) ActionExport(groupName, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { +// ActionList mocks base method. +func (m *MockActionClient) ActionList() ([]sdk.Action, error) { m.ctrl.T.Helper() - varargs := []interface{}{groupName, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ActionExport", varargs...) - ret0, _ := ret[0].([]byte) + ret := m.ctrl.Call(m, "ActionList") + ret0, _ := ret[0].([]sdk.Action) ret1, _ := ret[1].(error) return ret0, ret1 } -// ActionExport indicates an expected call of ActionExport -func (mr *MockActionClientMockRecorder) ActionExport(groupName, name interface{}, mods ...interface{}) *gomock.Call { +// ActionList indicates an expected call of ActionList. +func (mr *MockActionClientMockRecorder) ActionList() *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{groupName, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionExport", reflect.TypeOf((*MockActionClient)(nil).ActionExport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionList", reflect.TypeOf((*MockActionClient)(nil).ActionList)) } -// ActionBuiltinList mocks base method -func (m *MockActionClient) ActionBuiltinList() ([]sdk.Action, error) { +// ActionUsage mocks base method. +func (m *MockActionClient) ActionUsage(groupName, name string, mods ...cdsclient.RequestModifier) (*sdk.ActionUsages, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ActionBuiltinList") - ret0, _ := ret[0].([]sdk.Action) + varargs := []interface{}{groupName, name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ActionUsage", varargs...) + ret0, _ := ret[0].(*sdk.ActionUsages) ret1, _ := ret[1].(error) return ret0, ret1 } -// ActionBuiltinList indicates an expected call of ActionBuiltinList -func (mr *MockActionClientMockRecorder) ActionBuiltinList() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionBuiltinList", reflect.TypeOf((*MockActionClient)(nil).ActionBuiltinList)) -} - -// ActionBuiltinGet mocks base method -func (m *MockActionClient) ActionBuiltinGet(name string, mods ...cdsclient.RequestModifier) (*sdk.Action, error) { - m.ctrl.T.Helper() - varargs := []interface{}{name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ActionBuiltinGet", varargs...) - ret0, _ := ret[0].(*sdk.Action) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ActionBuiltinGet indicates an expected call of ActionBuiltinGet -func (mr *MockActionClientMockRecorder) ActionBuiltinGet(name interface{}, mods ...interface{}) *gomock.Call { +// ActionUsage indicates an expected call of ActionUsage. +func (mr *MockActionClientMockRecorder) ActionUsage(groupName, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionBuiltinGet", reflect.TypeOf((*MockActionClient)(nil).ActionBuiltinGet), varargs...) + varargs := append([]interface{}{groupName, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionUsage", reflect.TypeOf((*MockActionClient)(nil).ActionUsage), varargs...) } -// MockGroupClient is a mock of GroupClient interface +// MockGroupClient is a mock of GroupClient interface. type MockGroupClient struct { ctrl *gomock.Controller recorder *MockGroupClientMockRecorder } -// MockGroupClientMockRecorder is the mock recorder for MockGroupClient +// MockGroupClientMockRecorder is the mock recorder for MockGroupClient. type MockGroupClientMockRecorder struct { mock *MockGroupClient } -// NewMockGroupClient creates a new mock instance +// NewMockGroupClient creates a new mock instance. func NewMockGroupClient(ctrl *gomock.Controller) *MockGroupClient { mock := &MockGroupClient{ctrl: ctrl} mock.recorder = &MockGroupClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockGroupClient) EXPECT() *MockGroupClientMockRecorder { return m.recorder } -// GroupList mocks base method -func (m *MockGroupClient) GroupList() ([]sdk.Group, error) { +// GroupCreate mocks base method. +func (m *MockGroupClient) GroupCreate(group *sdk.Group) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GroupList") - ret0, _ := ret[0].([]sdk.Group) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "GroupCreate", group) + ret0, _ := ret[0].(error) + return ret0 } -// GroupList indicates an expected call of GroupList -func (mr *MockGroupClientMockRecorder) GroupList() *gomock.Call { +// GroupCreate indicates an expected call of GroupCreate. +func (mr *MockGroupClientMockRecorder) GroupCreate(group interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupList", reflect.TypeOf((*MockGroupClient)(nil).GroupList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupCreate", reflect.TypeOf((*MockGroupClient)(nil).GroupCreate), group) +} + +// GroupDelete mocks base method. +func (m *MockGroupClient) GroupDelete(name string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GroupDelete", name) + ret0, _ := ret[0].(error) + return ret0 +} + +// GroupDelete indicates an expected call of GroupDelete. +func (mr *MockGroupClientMockRecorder) GroupDelete(name interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupDelete", reflect.TypeOf((*MockGroupClient)(nil).GroupDelete), name) } -// GroupGet mocks base method +// GroupGet mocks base method. func (m *MockGroupClient) GroupGet(name string, mods ...cdsclient.RequestModifier) (*sdk.Group, error) { m.ctrl.T.Helper() varargs := []interface{}{name} @@ -2093,56 +2107,29 @@ func (m *MockGroupClient) GroupGet(name string, mods ...cdsclient.RequestModifie return ret0, ret1 } -// GroupGet indicates an expected call of GroupGet +// GroupGet indicates an expected call of GroupGet. func (mr *MockGroupClientMockRecorder) GroupGet(name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{name}, mods...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupGet", reflect.TypeOf((*MockGroupClient)(nil).GroupGet), varargs...) } -// GroupCreate mocks base method -func (m *MockGroupClient) GroupCreate(group *sdk.Group) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GroupCreate", group) - ret0, _ := ret[0].(error) - return ret0 -} - -// GroupCreate indicates an expected call of GroupCreate -func (mr *MockGroupClientMockRecorder) GroupCreate(group interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupCreate", reflect.TypeOf((*MockGroupClient)(nil).GroupCreate), group) -} - -// GroupRename mocks base method -func (m *MockGroupClient) GroupRename(oldName, newName string) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GroupRename", oldName, newName) - ret0, _ := ret[0].(error) - return ret0 -} - -// GroupRename indicates an expected call of GroupRename -func (mr *MockGroupClientMockRecorder) GroupRename(oldName, newName interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupRename", reflect.TypeOf((*MockGroupClient)(nil).GroupRename), oldName, newName) -} - -// GroupDelete mocks base method -func (m *MockGroupClient) GroupDelete(name string) error { +// GroupList mocks base method. +func (m *MockGroupClient) GroupList() ([]sdk.Group, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GroupDelete", name) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "GroupList") + ret0, _ := ret[0].([]sdk.Group) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// GroupDelete indicates an expected call of GroupDelete -func (mr *MockGroupClientMockRecorder) GroupDelete(name interface{}) *gomock.Call { +// GroupList indicates an expected call of GroupList. +func (mr *MockGroupClientMockRecorder) GroupList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupDelete", reflect.TypeOf((*MockGroupClient)(nil).GroupDelete), name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupList", reflect.TypeOf((*MockGroupClient)(nil).GroupList)) } -// GroupMemberAdd mocks base method +// GroupMemberAdd mocks base method. func (m *MockGroupClient) GroupMemberAdd(groupName string, member *sdk.GroupMember) (sdk.Group, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GroupMemberAdd", groupName, member) @@ -2151,13 +2138,13 @@ func (m *MockGroupClient) GroupMemberAdd(groupName string, member *sdk.GroupMemb return ret0, ret1 } -// GroupMemberAdd indicates an expected call of GroupMemberAdd +// GroupMemberAdd indicates an expected call of GroupMemberAdd. func (mr *MockGroupClientMockRecorder) GroupMemberAdd(groupName, member interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupMemberAdd", reflect.TypeOf((*MockGroupClient)(nil).GroupMemberAdd), groupName, member) } -// GroupMemberEdit mocks base method +// GroupMemberEdit mocks base method. func (m *MockGroupClient) GroupMemberEdit(groupName string, member *sdk.GroupMember) (sdk.Group, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GroupMemberEdit", groupName, member) @@ -2166,13 +2153,13 @@ func (m *MockGroupClient) GroupMemberEdit(groupName string, member *sdk.GroupMem return ret0, ret1 } -// GroupMemberEdit indicates an expected call of GroupMemberEdit +// GroupMemberEdit indicates an expected call of GroupMemberEdit. func (mr *MockGroupClientMockRecorder) GroupMemberEdit(groupName, member interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupMemberEdit", reflect.TypeOf((*MockGroupClient)(nil).GroupMemberEdit), groupName, member) } -// GroupMemberRemove mocks base method +// GroupMemberRemove mocks base method. func (m *MockGroupClient) GroupMemberRemove(groupName, username string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GroupMemberRemove", groupName, username) @@ -2180,65 +2167,78 @@ func (m *MockGroupClient) GroupMemberRemove(groupName, username string) error { return ret0 } -// GroupMemberRemove indicates an expected call of GroupMemberRemove +// GroupMemberRemove indicates an expected call of GroupMemberRemove. func (mr *MockGroupClientMockRecorder) GroupMemberRemove(groupName, username interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupMemberRemove", reflect.TypeOf((*MockGroupClient)(nil).GroupMemberRemove), groupName, username) } -// MockBroadcastClient is a mock of BroadcastClient interface +// GroupRename mocks base method. +func (m *MockGroupClient) GroupRename(oldName, newName string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GroupRename", oldName, newName) + ret0, _ := ret[0].(error) + return ret0 +} + +// GroupRename indicates an expected call of GroupRename. +func (mr *MockGroupClientMockRecorder) GroupRename(oldName, newName interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupRename", reflect.TypeOf((*MockGroupClient)(nil).GroupRename), oldName, newName) +} + +// MockBroadcastClient is a mock of BroadcastClient interface. type MockBroadcastClient struct { ctrl *gomock.Controller recorder *MockBroadcastClientMockRecorder } -// MockBroadcastClientMockRecorder is the mock recorder for MockBroadcastClient +// MockBroadcastClientMockRecorder is the mock recorder for MockBroadcastClient. type MockBroadcastClientMockRecorder struct { mock *MockBroadcastClient } -// NewMockBroadcastClient creates a new mock instance +// NewMockBroadcastClient creates a new mock instance. func NewMockBroadcastClient(ctrl *gomock.Controller) *MockBroadcastClient { mock := &MockBroadcastClient{ctrl: ctrl} mock.recorder = &MockBroadcastClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockBroadcastClient) EXPECT() *MockBroadcastClientMockRecorder { return m.recorder } -// Broadcasts mocks base method -func (m *MockBroadcastClient) Broadcasts() ([]sdk.Broadcast, error) { +// BroadcastCreate mocks base method. +func (m *MockBroadcastClient) BroadcastCreate(broadcast *sdk.Broadcast) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Broadcasts") - ret0, _ := ret[0].([]sdk.Broadcast) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "BroadcastCreate", broadcast) + ret0, _ := ret[0].(error) + return ret0 } -// Broadcasts indicates an expected call of Broadcasts -func (mr *MockBroadcastClientMockRecorder) Broadcasts() *gomock.Call { +// BroadcastCreate indicates an expected call of BroadcastCreate. +func (mr *MockBroadcastClientMockRecorder) BroadcastCreate(broadcast interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Broadcasts", reflect.TypeOf((*MockBroadcastClient)(nil).Broadcasts)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BroadcastCreate", reflect.TypeOf((*MockBroadcastClient)(nil).BroadcastCreate), broadcast) } -// BroadcastCreate mocks base method -func (m *MockBroadcastClient) BroadcastCreate(broadcast *sdk.Broadcast) error { +// BroadcastDelete mocks base method. +func (m *MockBroadcastClient) BroadcastDelete(id string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "BroadcastCreate", broadcast) + ret := m.ctrl.Call(m, "BroadcastDelete", id) ret0, _ := ret[0].(error) return ret0 } -// BroadcastCreate indicates an expected call of BroadcastCreate -func (mr *MockBroadcastClientMockRecorder) BroadcastCreate(broadcast interface{}) *gomock.Call { +// BroadcastDelete indicates an expected call of BroadcastDelete. +func (mr *MockBroadcastClientMockRecorder) BroadcastDelete(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BroadcastCreate", reflect.TypeOf((*MockBroadcastClient)(nil).BroadcastCreate), broadcast) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BroadcastDelete", reflect.TypeOf((*MockBroadcastClient)(nil).BroadcastDelete), id) } -// BroadcastGet mocks base method +// BroadcastGet mocks base method. func (m *MockBroadcastClient) BroadcastGet(id string) (*sdk.Broadcast, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "BroadcastGet", id) @@ -2247,70 +2247,65 @@ func (m *MockBroadcastClient) BroadcastGet(id string) (*sdk.Broadcast, error) { return ret0, ret1 } -// BroadcastGet indicates an expected call of BroadcastGet +// BroadcastGet indicates an expected call of BroadcastGet. func (mr *MockBroadcastClientMockRecorder) BroadcastGet(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BroadcastGet", reflect.TypeOf((*MockBroadcastClient)(nil).BroadcastGet), id) } -// BroadcastDelete mocks base method -func (m *MockBroadcastClient) BroadcastDelete(id string) error { +// Broadcasts mocks base method. +func (m *MockBroadcastClient) Broadcasts() ([]sdk.Broadcast, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "BroadcastDelete", id) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "Broadcasts") + ret0, _ := ret[0].([]sdk.Broadcast) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// BroadcastDelete indicates an expected call of BroadcastDelete -func (mr *MockBroadcastClientMockRecorder) BroadcastDelete(id interface{}) *gomock.Call { +// Broadcasts indicates an expected call of Broadcasts. +func (mr *MockBroadcastClientMockRecorder) Broadcasts() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BroadcastDelete", reflect.TypeOf((*MockBroadcastClient)(nil).BroadcastDelete), id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Broadcasts", reflect.TypeOf((*MockBroadcastClient)(nil).Broadcasts)) } -// MockPipelineClient is a mock of PipelineClient interface +// MockPipelineClient is a mock of PipelineClient interface. type MockPipelineClient struct { ctrl *gomock.Controller recorder *MockPipelineClientMockRecorder } -// MockPipelineClientMockRecorder is the mock recorder for MockPipelineClient +// MockPipelineClientMockRecorder is the mock recorder for MockPipelineClient. type MockPipelineClientMockRecorder struct { mock *MockPipelineClient } -// NewMockPipelineClient creates a new mock instance +// NewMockPipelineClient creates a new mock instance. func NewMockPipelineClient(ctrl *gomock.Controller) *MockPipelineClient { mock := &MockPipelineClient{ctrl: ctrl} mock.recorder = &MockPipelineClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockPipelineClient) EXPECT() *MockPipelineClientMockRecorder { return m.recorder } -// PipelineGet mocks base method -func (m *MockPipelineClient) PipelineGet(projectKey, name string, mods ...cdsclient.RequestModifier) (*sdk.Pipeline, error) { +// PipelineCreate mocks base method. +func (m *MockPipelineClient) PipelineCreate(projectKey string, pip *sdk.Pipeline) error { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "PipelineGet", varargs...) - ret0, _ := ret[0].(*sdk.Pipeline) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "PipelineCreate", projectKey, pip) + ret0, _ := ret[0].(error) + return ret0 } -// PipelineGet indicates an expected call of PipelineGet -func (mr *MockPipelineClientMockRecorder) PipelineGet(projectKey, name interface{}, mods ...interface{}) *gomock.Call { +// PipelineCreate indicates an expected call of PipelineCreate. +func (mr *MockPipelineClientMockRecorder) PipelineCreate(projectKey, pip interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineGet", reflect.TypeOf((*MockPipelineClient)(nil).PipelineGet), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineCreate", reflect.TypeOf((*MockPipelineClient)(nil).PipelineCreate), projectKey, pip) } -// PipelineDelete mocks base method +// PipelineDelete mocks base method. func (m *MockPipelineClient) PipelineDelete(projectKey, name string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PipelineDelete", projectKey, name) @@ -2318,27 +2313,33 @@ func (m *MockPipelineClient) PipelineDelete(projectKey, name string) error { return ret0 } -// PipelineDelete indicates an expected call of PipelineDelete +// PipelineDelete indicates an expected call of PipelineDelete. func (mr *MockPipelineClientMockRecorder) PipelineDelete(projectKey, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineDelete", reflect.TypeOf((*MockPipelineClient)(nil).PipelineDelete), projectKey, name) } -// PipelineCreate mocks base method -func (m *MockPipelineClient) PipelineCreate(projectKey string, pip *sdk.Pipeline) error { +// PipelineGet mocks base method. +func (m *MockPipelineClient) PipelineGet(projectKey, name string, mods ...cdsclient.RequestModifier) (*sdk.Pipeline, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PipelineCreate", projectKey, pip) - ret0, _ := ret[0].(error) - return ret0 + varargs := []interface{}{projectKey, name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PipelineGet", varargs...) + ret0, _ := ret[0].(*sdk.Pipeline) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// PipelineCreate indicates an expected call of PipelineCreate -func (mr *MockPipelineClientMockRecorder) PipelineCreate(projectKey, pip interface{}) *gomock.Call { +// PipelineGet indicates an expected call of PipelineGet. +func (mr *MockPipelineClientMockRecorder) PipelineGet(projectKey, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineCreate", reflect.TypeOf((*MockPipelineClient)(nil).PipelineCreate), projectKey, pip) + varargs := append([]interface{}{projectKey, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineGet", reflect.TypeOf((*MockPipelineClient)(nil).PipelineGet), varargs...) } -// PipelineList mocks base method +// PipelineList mocks base method. func (m *MockPipelineClient) PipelineList(projectKey string) ([]sdk.Pipeline, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PipelineList", projectKey) @@ -2347,36 +2348,36 @@ func (m *MockPipelineClient) PipelineList(projectKey string) ([]sdk.Pipeline, er return ret0, ret1 } -// PipelineList indicates an expected call of PipelineList +// PipelineList indicates an expected call of PipelineList. func (mr *MockPipelineClientMockRecorder) PipelineList(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineList", reflect.TypeOf((*MockPipelineClient)(nil).PipelineList), projectKey) } -// MockMaintenanceClient is a mock of MaintenanceClient interface +// MockMaintenanceClient is a mock of MaintenanceClient interface. type MockMaintenanceClient struct { ctrl *gomock.Controller recorder *MockMaintenanceClientMockRecorder } -// MockMaintenanceClientMockRecorder is the mock recorder for MockMaintenanceClient +// MockMaintenanceClientMockRecorder is the mock recorder for MockMaintenanceClient. type MockMaintenanceClientMockRecorder struct { mock *MockMaintenanceClient } -// NewMockMaintenanceClient creates a new mock instance +// NewMockMaintenanceClient creates a new mock instance. func NewMockMaintenanceClient(ctrl *gomock.Controller) *MockMaintenanceClient { mock := &MockMaintenanceClient{ctrl: ctrl} mock.recorder = &MockMaintenanceClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockMaintenanceClient) EXPECT() *MockMaintenanceClientMockRecorder { return m.recorder } -// Maintenance mocks base method +// Maintenance mocks base method. func (m *MockMaintenanceClient) Maintenance(enable, hooks bool) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Maintenance", enable, hooks) @@ -2384,36 +2385,50 @@ func (m *MockMaintenanceClient) Maintenance(enable, hooks bool) error { return ret0 } -// Maintenance indicates an expected call of Maintenance +// Maintenance indicates an expected call of Maintenance. func (mr *MockMaintenanceClientMockRecorder) Maintenance(enable, hooks interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Maintenance", reflect.TypeOf((*MockMaintenanceClient)(nil).Maintenance), enable, hooks) } -// MockProjectClient is a mock of ProjectClient interface +// MockProjectClient is a mock of ProjectClient interface. type MockProjectClient struct { ctrl *gomock.Controller recorder *MockProjectClientMockRecorder } -// MockProjectClientMockRecorder is the mock recorder for MockProjectClient +// MockProjectClientMockRecorder is the mock recorder for MockProjectClient. type MockProjectClientMockRecorder struct { mock *MockProjectClient } -// NewMockProjectClient creates a new mock instance +// NewMockProjectClient creates a new mock instance. func NewMockProjectClient(ctrl *gomock.Controller) *MockProjectClient { mock := &MockProjectClient{ctrl: ctrl} mock.recorder = &MockProjectClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockProjectClient) EXPECT() *MockProjectClientMockRecorder { return m.recorder } -// ProjectCreate mocks base method +// ProjectAccess mocks base method. +func (m *MockProjectClient) ProjectAccess(ctx context.Context, projectKey, sessionID string, itemType sdk.CDNItemType) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ProjectAccess", ctx, projectKey, sessionID, itemType) + ret0, _ := ret[0].(error) + return ret0 +} + +// ProjectAccess indicates an expected call of ProjectAccess. +func (mr *MockProjectClientMockRecorder) ProjectAccess(ctx, projectKey, sessionID, itemType interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectAccess", reflect.TypeOf((*MockProjectClient)(nil).ProjectAccess), ctx, projectKey, sessionID, itemType) +} + +// ProjectCreate mocks base method. func (m *MockProjectClient) ProjectCreate(proj *sdk.Project) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ProjectCreate", proj) @@ -2421,13 +2436,13 @@ func (m *MockProjectClient) ProjectCreate(proj *sdk.Project) error { return ret0 } -// ProjectCreate indicates an expected call of ProjectCreate +// ProjectCreate indicates an expected call of ProjectCreate. func (mr *MockProjectClientMockRecorder) ProjectCreate(proj interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectCreate", reflect.TypeOf((*MockProjectClient)(nil).ProjectCreate), proj) } -// ProjectDelete mocks base method +// ProjectDelete mocks base method. func (m *MockProjectClient) ProjectDelete(projectKey string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ProjectDelete", projectKey) @@ -2435,13 +2450,33 @@ func (m *MockProjectClient) ProjectDelete(projectKey string) error { return ret0 } -// ProjectDelete indicates an expected call of ProjectDelete +// ProjectDelete indicates an expected call of ProjectDelete. func (mr *MockProjectClientMockRecorder) ProjectDelete(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectDelete", reflect.TypeOf((*MockProjectClient)(nil).ProjectDelete), projectKey) } -// ProjectGroupAdd mocks base method +// ProjectGet mocks base method. +func (m *MockProjectClient) ProjectGet(projectKey string, opts ...cdsclient.RequestModifier) (*sdk.Project, error) { + m.ctrl.T.Helper() + varargs := []interface{}{projectKey} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ProjectGet", varargs...) + ret0, _ := ret[0].(*sdk.Project) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ProjectGet indicates an expected call of ProjectGet. +func (mr *MockProjectClientMockRecorder) ProjectGet(projectKey interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{projectKey}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGet", reflect.TypeOf((*MockProjectClient)(nil).ProjectGet), varargs...) +} + +// ProjectGroupAdd mocks base method. func (m *MockProjectClient) ProjectGroupAdd(projectKey, groupName string, permission int, projectOnly bool) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ProjectGroupAdd", projectKey, groupName, permission, projectOnly) @@ -2449,13 +2484,13 @@ func (m *MockProjectClient) ProjectGroupAdd(projectKey, groupName string, permis return ret0 } -// ProjectGroupAdd indicates an expected call of ProjectGroupAdd +// ProjectGroupAdd indicates an expected call of ProjectGroupAdd. func (mr *MockProjectClientMockRecorder) ProjectGroupAdd(projectKey, groupName, permission, projectOnly interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGroupAdd", reflect.TypeOf((*MockProjectClient)(nil).ProjectGroupAdd), projectKey, groupName, permission, projectOnly) } -// ProjectGroupDelete mocks base method +// ProjectGroupDelete mocks base method. func (m *MockProjectClient) ProjectGroupDelete(projectKey, groupName string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ProjectGroupDelete", projectKey, groupName) @@ -2463,96 +2498,111 @@ func (m *MockProjectClient) ProjectGroupDelete(projectKey, groupName string) err return ret0 } -// ProjectGroupDelete indicates an expected call of ProjectGroupDelete +// ProjectGroupDelete indicates an expected call of ProjectGroupDelete. func (mr *MockProjectClientMockRecorder) ProjectGroupDelete(projectKey, groupName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGroupDelete", reflect.TypeOf((*MockProjectClient)(nil).ProjectGroupDelete), projectKey, groupName) } -// ProjectGet mocks base method -func (m *MockProjectClient) ProjectGet(projectKey string, opts ...cdsclient.RequestModifier) (*sdk.Project, error) { +// ProjectGroupsImport mocks base method. +func (m *MockProjectClient) ProjectGroupsImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) (sdk.Project, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey} - for _, a := range opts { + varargs := []interface{}{projectKey, content} + for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ProjectGet", varargs...) - ret0, _ := ret[0].(*sdk.Project) + ret := m.ctrl.Call(m, "ProjectGroupsImport", varargs...) + ret0, _ := ret[0].(sdk.Project) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectGet indicates an expected call of ProjectGet -func (mr *MockProjectClientMockRecorder) ProjectGet(projectKey interface{}, opts ...interface{}) *gomock.Call { +// ProjectGroupsImport indicates an expected call of ProjectGroupsImport. +func (mr *MockProjectClientMockRecorder) ProjectGroupsImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGet", reflect.TypeOf((*MockProjectClient)(nil).ProjectGet), varargs...) + varargs := append([]interface{}{projectKey, content}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGroupsImport", reflect.TypeOf((*MockProjectClient)(nil).ProjectGroupsImport), varargs...) } -// ProjectUpdate mocks base method -func (m *MockProjectClient) ProjectUpdate(key string, project *sdk.Project) error { +// ProjectIntegrationDelete mocks base method. +func (m *MockProjectClient) ProjectIntegrationDelete(projectKey, integrationName string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectUpdate", key, project) + ret := m.ctrl.Call(m, "ProjectIntegrationDelete", projectKey, integrationName) ret0, _ := ret[0].(error) return ret0 } -// ProjectUpdate indicates an expected call of ProjectUpdate -func (mr *MockProjectClientMockRecorder) ProjectUpdate(key, project interface{}) *gomock.Call { +// ProjectIntegrationDelete indicates an expected call of ProjectIntegrationDelete. +func (mr *MockProjectClientMockRecorder) ProjectIntegrationDelete(projectKey, integrationName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectUpdate", reflect.TypeOf((*MockProjectClient)(nil).ProjectUpdate), key, project) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationDelete", reflect.TypeOf((*MockProjectClient)(nil).ProjectIntegrationDelete), projectKey, integrationName) } -// ProjectList mocks base method -func (m *MockProjectClient) ProjectList(withApplications, withWorkflow bool, filters ...cdsclient.Filter) ([]sdk.Project, error) { +// ProjectIntegrationGet mocks base method. +func (m *MockProjectClient) ProjectIntegrationGet(projectKey, integrationName string, clearPassword bool) (sdk.ProjectIntegration, error) { m.ctrl.T.Helper() - varargs := []interface{}{withApplications, withWorkflow} - for _, a := range filters { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ProjectList", varargs...) - ret0, _ := ret[0].([]sdk.Project) + ret := m.ctrl.Call(m, "ProjectIntegrationGet", projectKey, integrationName, clearPassword) + ret0, _ := ret[0].(sdk.ProjectIntegration) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectList indicates an expected call of ProjectList -func (mr *MockProjectClientMockRecorder) ProjectList(withApplications, withWorkflow interface{}, filters ...interface{}) *gomock.Call { +// ProjectIntegrationGet indicates an expected call of ProjectIntegrationGet. +func (mr *MockProjectClientMockRecorder) ProjectIntegrationGet(projectKey, integrationName, clearPassword interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{withApplications, withWorkflow}, filters...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectList", reflect.TypeOf((*MockProjectClient)(nil).ProjectList), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationGet", reflect.TypeOf((*MockProjectClient)(nil).ProjectIntegrationGet), projectKey, integrationName, clearPassword) } -// ProjectKeysList mocks base method -func (m *MockProjectClient) ProjectKeysList(projectKey string) ([]sdk.ProjectKey, error) { +// ProjectIntegrationImport mocks base method. +func (m *MockProjectClient) ProjectIntegrationImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) (sdk.ProjectIntegration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectKeysList", projectKey) - ret0, _ := ret[0].([]sdk.ProjectKey) + varargs := []interface{}{projectKey, content} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ProjectIntegrationImport", varargs...) + ret0, _ := ret[0].(sdk.ProjectIntegration) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectKeysList indicates an expected call of ProjectKeysList -func (mr *MockProjectClientMockRecorder) ProjectKeysList(projectKey interface{}) *gomock.Call { +// ProjectIntegrationImport indicates an expected call of ProjectIntegrationImport. +func (mr *MockProjectClientMockRecorder) ProjectIntegrationImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeysList", reflect.TypeOf((*MockProjectClient)(nil).ProjectKeysList), projectKey) + varargs := append([]interface{}{projectKey, content}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationImport", reflect.TypeOf((*MockProjectClient)(nil).ProjectIntegrationImport), varargs...) } -// ProjectKeyCreate mocks base method -func (m *MockProjectClient) ProjectKeyCreate(projectKey string, key *sdk.ProjectKey) error { +// ProjectIntegrationList mocks base method. +func (m *MockProjectClient) ProjectIntegrationList(projectKey string) ([]sdk.ProjectIntegration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectKeyCreate", projectKey, key) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "ProjectIntegrationList", projectKey) + ret0, _ := ret[0].([]sdk.ProjectIntegration) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ProjectIntegrationList indicates an expected call of ProjectIntegrationList. +func (mr *MockProjectClientMockRecorder) ProjectIntegrationList(projectKey interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationList", reflect.TypeOf((*MockProjectClient)(nil).ProjectIntegrationList), projectKey) +} + +// ProjectKeyCreate mocks base method. +func (m *MockProjectClient) ProjectKeyCreate(projectKey string, key *sdk.ProjectKey) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ProjectKeyCreate", projectKey, key) + ret0, _ := ret[0].(error) + return ret0 } -// ProjectKeyCreate indicates an expected call of ProjectKeyCreate +// ProjectKeyCreate indicates an expected call of ProjectKeyCreate. func (mr *MockProjectClientMockRecorder) ProjectKeyCreate(projectKey, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeyCreate", reflect.TypeOf((*MockProjectClient)(nil).ProjectKeyCreate), projectKey, key) } -// ProjectKeysDelete mocks base method +// ProjectKeysDelete mocks base method. func (m *MockProjectClient) ProjectKeysDelete(projectKey, keyProjectName string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ProjectKeysDelete", projectKey, keyProjectName) @@ -2560,280 +2610,216 @@ func (m *MockProjectClient) ProjectKeysDelete(projectKey, keyProjectName string) return ret0 } -// ProjectKeysDelete indicates an expected call of ProjectKeysDelete +// ProjectKeysDelete indicates an expected call of ProjectKeysDelete. func (mr *MockProjectClientMockRecorder) ProjectKeysDelete(projectKey, keyProjectName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeysDelete", reflect.TypeOf((*MockProjectClient)(nil).ProjectKeysDelete), projectKey, keyProjectName) } -// ProjectVariablesList mocks base method -func (m *MockProjectClient) ProjectVariablesList(key string) ([]sdk.Variable, error) { +// ProjectKeysList mocks base method. +func (m *MockProjectClient) ProjectKeysList(projectKey string) ([]sdk.ProjectKey, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectVariablesList", key) - ret0, _ := ret[0].([]sdk.Variable) + ret := m.ctrl.Call(m, "ProjectKeysList", projectKey) + ret0, _ := ret[0].([]sdk.ProjectKey) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectVariablesList indicates an expected call of ProjectVariablesList -func (mr *MockProjectClientMockRecorder) ProjectVariablesList(key interface{}) *gomock.Call { +// ProjectKeysList indicates an expected call of ProjectKeysList. +func (mr *MockProjectClientMockRecorder) ProjectKeysList(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariablesList", reflect.TypeOf((*MockProjectClient)(nil).ProjectVariablesList), key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeysList", reflect.TypeOf((*MockProjectClient)(nil).ProjectKeysList), projectKey) } -// ProjectVariableCreate mocks base method -func (m *MockProjectClient) ProjectVariableCreate(projectKey string, variable *sdk.Variable) error { +// ProjectList mocks base method. +func (m *MockProjectClient) ProjectList(withApplications, withWorkflow bool, filters ...cdsclient.Filter) ([]sdk.Project, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectVariableCreate", projectKey, variable) - ret0, _ := ret[0].(error) - return ret0 + varargs := []interface{}{withApplications, withWorkflow} + for _, a := range filters { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ProjectList", varargs...) + ret0, _ := ret[0].([]sdk.Project) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// ProjectVariableCreate indicates an expected call of ProjectVariableCreate -func (mr *MockProjectClientMockRecorder) ProjectVariableCreate(projectKey, variable interface{}) *gomock.Call { +// ProjectList indicates an expected call of ProjectList. +func (mr *MockProjectClientMockRecorder) ProjectList(withApplications, withWorkflow interface{}, filters ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableCreate", reflect.TypeOf((*MockProjectClient)(nil).ProjectVariableCreate), projectKey, variable) + varargs := append([]interface{}{withApplications, withWorkflow}, filters...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectList", reflect.TypeOf((*MockProjectClient)(nil).ProjectList), varargs...) } -// ProjectVariableDelete mocks base method -func (m *MockProjectClient) ProjectVariableDelete(projectKey, varName string) error { +// ProjectRepositoryManagerDelete mocks base method. +func (m *MockProjectClient) ProjectRepositoryManagerDelete(projectKey, repoManagerName string, force bool) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectVariableDelete", projectKey, varName) + ret := m.ctrl.Call(m, "ProjectRepositoryManagerDelete", projectKey, repoManagerName, force) ret0, _ := ret[0].(error) return ret0 } -// ProjectVariableDelete indicates an expected call of ProjectVariableDelete -func (mr *MockProjectClientMockRecorder) ProjectVariableDelete(projectKey, varName interface{}) *gomock.Call { +// ProjectRepositoryManagerDelete indicates an expected call of ProjectRepositoryManagerDelete. +func (mr *MockProjectClientMockRecorder) ProjectRepositoryManagerDelete(projectKey, repoManagerName, force interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableDelete", reflect.TypeOf((*MockProjectClient)(nil).ProjectVariableDelete), projectKey, varName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectRepositoryManagerDelete", reflect.TypeOf((*MockProjectClient)(nil).ProjectRepositoryManagerDelete), projectKey, repoManagerName, force) } -// ProjectVariableGet mocks base method -func (m *MockProjectClient) ProjectVariableGet(projectKey, varName string) (*sdk.Variable, error) { +// ProjectRepositoryManagerList mocks base method. +func (m *MockProjectClient) ProjectRepositoryManagerList(projectKey string) ([]sdk.ProjectVCSServer, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectVariableGet", projectKey, varName) - ret0, _ := ret[0].(*sdk.Variable) + ret := m.ctrl.Call(m, "ProjectRepositoryManagerList", projectKey) + ret0, _ := ret[0].([]sdk.ProjectVCSServer) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectVariableGet indicates an expected call of ProjectVariableGet -func (mr *MockProjectClientMockRecorder) ProjectVariableGet(projectKey, varName interface{}) *gomock.Call { +// ProjectRepositoryManagerList indicates an expected call of ProjectRepositoryManagerList. +func (mr *MockProjectClientMockRecorder) ProjectRepositoryManagerList(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableGet", reflect.TypeOf((*MockProjectClient)(nil).ProjectVariableGet), projectKey, varName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectRepositoryManagerList", reflect.TypeOf((*MockProjectClient)(nil).ProjectRepositoryManagerList), projectKey) } -// ProjectVariableUpdate mocks base method -func (m *MockProjectClient) ProjectVariableUpdate(projectKey string, variable *sdk.Variable) error { +// ProjectUpdate mocks base method. +func (m *MockProjectClient) ProjectUpdate(key string, project *sdk.Project) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectVariableUpdate", projectKey, variable) + ret := m.ctrl.Call(m, "ProjectUpdate", key, project) ret0, _ := ret[0].(error) return ret0 } -// ProjectVariableUpdate indicates an expected call of ProjectVariableUpdate -func (mr *MockProjectClientMockRecorder) ProjectVariableUpdate(projectKey, variable interface{}) *gomock.Call { +// ProjectUpdate indicates an expected call of ProjectUpdate. +func (mr *MockProjectClientMockRecorder) ProjectUpdate(key, project interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableUpdate", reflect.TypeOf((*MockProjectClient)(nil).ProjectVariableUpdate), projectKey, variable) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectUpdate", reflect.TypeOf((*MockProjectClient)(nil).ProjectUpdate), key, project) } -// VariableEncrypt mocks base method -func (m *MockProjectClient) VariableEncrypt(projectKey, varName, content string) (*sdk.Variable, error) { +// ProjectVariableCreate mocks base method. +func (m *MockProjectClient) ProjectVariableCreate(projectKey string, variable *sdk.Variable) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "VariableEncrypt", projectKey, varName, content) - ret0, _ := ret[0].(*sdk.Variable) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "ProjectVariableCreate", projectKey, variable) + ret0, _ := ret[0].(error) + return ret0 } -// VariableEncrypt indicates an expected call of VariableEncrypt -func (mr *MockProjectClientMockRecorder) VariableEncrypt(projectKey, varName, content interface{}) *gomock.Call { +// ProjectVariableCreate indicates an expected call of ProjectVariableCreate. +func (mr *MockProjectClientMockRecorder) ProjectVariableCreate(projectKey, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VariableEncrypt", reflect.TypeOf((*MockProjectClient)(nil).VariableEncrypt), projectKey, varName, content) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableCreate", reflect.TypeOf((*MockProjectClient)(nil).ProjectVariableCreate), projectKey, variable) } -// VariableListEncrypt mocks base method -func (m *MockProjectClient) VariableListEncrypt(projectKey string) ([]sdk.Secret, error) { +// ProjectVariableDelete mocks base method. +func (m *MockProjectClient) ProjectVariableDelete(projectKey, varName string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "VariableListEncrypt", projectKey) - ret0, _ := ret[0].([]sdk.Secret) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "ProjectVariableDelete", projectKey, varName) + ret0, _ := ret[0].(error) + return ret0 } -// VariableListEncrypt indicates an expected call of VariableListEncrypt -func (mr *MockProjectClientMockRecorder) VariableListEncrypt(projectKey interface{}) *gomock.Call { +// ProjectVariableDelete indicates an expected call of ProjectVariableDelete. +func (mr *MockProjectClientMockRecorder) ProjectVariableDelete(projectKey, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VariableListEncrypt", reflect.TypeOf((*MockProjectClient)(nil).VariableListEncrypt), projectKey) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableDelete", reflect.TypeOf((*MockProjectClient)(nil).ProjectVariableDelete), projectKey, varName) } -// ProjectGroupsImport mocks base method -func (m *MockProjectClient) ProjectGroupsImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) (sdk.Project, error) { +// ProjectVariableGet mocks base method. +func (m *MockProjectClient) ProjectVariableGet(projectKey, varName string) (*sdk.Variable, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, content} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ProjectGroupsImport", varargs...) - ret0, _ := ret[0].(sdk.Project) + ret := m.ctrl.Call(m, "ProjectVariableGet", projectKey, varName) + ret0, _ := ret[0].(*sdk.Variable) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectGroupsImport indicates an expected call of ProjectGroupsImport -func (mr *MockProjectClientMockRecorder) ProjectGroupsImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { +// ProjectVariableGet indicates an expected call of ProjectVariableGet. +func (mr *MockProjectClientMockRecorder) ProjectVariableGet(projectKey, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, content}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGroupsImport", reflect.TypeOf((*MockProjectClient)(nil).ProjectGroupsImport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableGet", reflect.TypeOf((*MockProjectClient)(nil).ProjectVariableGet), projectKey, varName) } -// ProjectIntegrationImport mocks base method -func (m *MockProjectClient) ProjectIntegrationImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) (sdk.ProjectIntegration, error) { +// ProjectVariableUpdate mocks base method. +func (m *MockProjectClient) ProjectVariableUpdate(projectKey string, variable *sdk.Variable) error { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, content} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ProjectIntegrationImport", varargs...) - ret0, _ := ret[0].(sdk.ProjectIntegration) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "ProjectVariableUpdate", projectKey, variable) + ret0, _ := ret[0].(error) + return ret0 } -// ProjectIntegrationImport indicates an expected call of ProjectIntegrationImport -func (mr *MockProjectClientMockRecorder) ProjectIntegrationImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { +// ProjectVariableUpdate indicates an expected call of ProjectVariableUpdate. +func (mr *MockProjectClientMockRecorder) ProjectVariableUpdate(projectKey, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, content}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationImport", reflect.TypeOf((*MockProjectClient)(nil).ProjectIntegrationImport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableUpdate", reflect.TypeOf((*MockProjectClient)(nil).ProjectVariableUpdate), projectKey, variable) } -// ProjectIntegrationGet mocks base method -func (m *MockProjectClient) ProjectIntegrationGet(projectKey, integrationName string, clearPassword bool) (sdk.ProjectIntegration, error) { +// ProjectVariablesList mocks base method. +func (m *MockProjectClient) ProjectVariablesList(key string) ([]sdk.Variable, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectIntegrationGet", projectKey, integrationName, clearPassword) - ret0, _ := ret[0].(sdk.ProjectIntegration) + ret := m.ctrl.Call(m, "ProjectVariablesList", key) + ret0, _ := ret[0].([]sdk.Variable) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectIntegrationGet indicates an expected call of ProjectIntegrationGet -func (mr *MockProjectClientMockRecorder) ProjectIntegrationGet(projectKey, integrationName, clearPassword interface{}) *gomock.Call { +// ProjectVariablesList indicates an expected call of ProjectVariablesList. +func (mr *MockProjectClientMockRecorder) ProjectVariablesList(key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationGet", reflect.TypeOf((*MockProjectClient)(nil).ProjectIntegrationGet), projectKey, integrationName, clearPassword) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariablesList", reflect.TypeOf((*MockProjectClient)(nil).ProjectVariablesList), key) } -// ProjectIntegrationList mocks base method -func (m *MockProjectClient) ProjectIntegrationList(projectKey string) ([]sdk.ProjectIntegration, error) { +// VariableEncrypt mocks base method. +func (m *MockProjectClient) VariableEncrypt(projectKey, varName, content string) (*sdk.Variable, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectIntegrationList", projectKey) - ret0, _ := ret[0].([]sdk.ProjectIntegration) + ret := m.ctrl.Call(m, "VariableEncrypt", projectKey, varName, content) + ret0, _ := ret[0].(*sdk.Variable) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectIntegrationList indicates an expected call of ProjectIntegrationList -func (mr *MockProjectClientMockRecorder) ProjectIntegrationList(projectKey interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationList", reflect.TypeOf((*MockProjectClient)(nil).ProjectIntegrationList), projectKey) -} - -// ProjectIntegrationDelete mocks base method -func (m *MockProjectClient) ProjectIntegrationDelete(projectKey, integrationName string) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectIntegrationDelete", projectKey, integrationName) - ret0, _ := ret[0].(error) - return ret0 -} - -// ProjectIntegrationDelete indicates an expected call of ProjectIntegrationDelete -func (mr *MockProjectClientMockRecorder) ProjectIntegrationDelete(projectKey, integrationName interface{}) *gomock.Call { +// VariableEncrypt indicates an expected call of VariableEncrypt. +func (mr *MockProjectClientMockRecorder) VariableEncrypt(projectKey, varName, content interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationDelete", reflect.TypeOf((*MockProjectClient)(nil).ProjectIntegrationDelete), projectKey, integrationName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VariableEncrypt", reflect.TypeOf((*MockProjectClient)(nil).VariableEncrypt), projectKey, varName, content) } -// ProjectRepositoryManagerList mocks base method -func (m *MockProjectClient) ProjectRepositoryManagerList(projectKey string) ([]sdk.ProjectVCSServer, error) { +// VariableListEncrypt mocks base method. +func (m *MockProjectClient) VariableListEncrypt(projectKey string) ([]sdk.Secret, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectRepositoryManagerList", projectKey) - ret0, _ := ret[0].([]sdk.ProjectVCSServer) + ret := m.ctrl.Call(m, "VariableListEncrypt", projectKey) + ret0, _ := ret[0].([]sdk.Secret) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectRepositoryManagerList indicates an expected call of ProjectRepositoryManagerList -func (mr *MockProjectClientMockRecorder) ProjectRepositoryManagerList(projectKey interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectRepositoryManagerList", reflect.TypeOf((*MockProjectClient)(nil).ProjectRepositoryManagerList), projectKey) -} - -// ProjectRepositoryManagerDelete mocks base method -func (m *MockProjectClient) ProjectRepositoryManagerDelete(projectKey, repoManagerName string, force bool) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectRepositoryManagerDelete", projectKey, repoManagerName, force) - ret0, _ := ret[0].(error) - return ret0 -} - -// ProjectRepositoryManagerDelete indicates an expected call of ProjectRepositoryManagerDelete -func (mr *MockProjectClientMockRecorder) ProjectRepositoryManagerDelete(projectKey, repoManagerName, force interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectRepositoryManagerDelete", reflect.TypeOf((*MockProjectClient)(nil).ProjectRepositoryManagerDelete), projectKey, repoManagerName, force) -} - -// ProjectAccess mocks base method -func (m *MockProjectClient) ProjectAccess(ctx context.Context, projectKey, sessionID string, itemType sdk.CDNItemType) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectAccess", ctx, projectKey, sessionID, itemType) - ret0, _ := ret[0].(error) - return ret0 -} - -// ProjectAccess indicates an expected call of ProjectAccess -func (mr *MockProjectClientMockRecorder) ProjectAccess(ctx, projectKey, sessionID, itemType interface{}) *gomock.Call { +// VariableListEncrypt indicates an expected call of VariableListEncrypt. +func (mr *MockProjectClientMockRecorder) VariableListEncrypt(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectAccess", reflect.TypeOf((*MockProjectClient)(nil).ProjectAccess), ctx, projectKey, sessionID, itemType) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VariableListEncrypt", reflect.TypeOf((*MockProjectClient)(nil).VariableListEncrypt), projectKey) } -// MockProjectKeysClient is a mock of ProjectKeysClient interface +// MockProjectKeysClient is a mock of ProjectKeysClient interface. type MockProjectKeysClient struct { ctrl *gomock.Controller recorder *MockProjectKeysClientMockRecorder } -// MockProjectKeysClientMockRecorder is the mock recorder for MockProjectKeysClient +// MockProjectKeysClientMockRecorder is the mock recorder for MockProjectKeysClient. type MockProjectKeysClientMockRecorder struct { mock *MockProjectKeysClient } -// NewMockProjectKeysClient creates a new mock instance +// NewMockProjectKeysClient creates a new mock instance. func NewMockProjectKeysClient(ctrl *gomock.Controller) *MockProjectKeysClient { mock := &MockProjectKeysClient{ctrl: ctrl} mock.recorder = &MockProjectKeysClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockProjectKeysClient) EXPECT() *MockProjectKeysClientMockRecorder { return m.recorder } -// ProjectKeysList mocks base method -func (m *MockProjectKeysClient) ProjectKeysList(projectKey string) ([]sdk.ProjectKey, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectKeysList", projectKey) - ret0, _ := ret[0].([]sdk.ProjectKey) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ProjectKeysList indicates an expected call of ProjectKeysList -func (mr *MockProjectKeysClientMockRecorder) ProjectKeysList(projectKey interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeysList", reflect.TypeOf((*MockProjectKeysClient)(nil).ProjectKeysList), projectKey) -} - -// ProjectKeyCreate mocks base method +// ProjectKeyCreate mocks base method. func (m *MockProjectKeysClient) ProjectKeyCreate(projectKey string, key *sdk.ProjectKey) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ProjectKeyCreate", projectKey, key) @@ -2841,13 +2827,13 @@ func (m *MockProjectKeysClient) ProjectKeyCreate(projectKey string, key *sdk.Pro return ret0 } -// ProjectKeyCreate indicates an expected call of ProjectKeyCreate +// ProjectKeyCreate indicates an expected call of ProjectKeyCreate. func (mr *MockProjectKeysClientMockRecorder) ProjectKeyCreate(projectKey, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeyCreate", reflect.TypeOf((*MockProjectKeysClient)(nil).ProjectKeyCreate), projectKey, key) } -// ProjectKeysDelete mocks base method +// ProjectKeysDelete mocks base method. func (m *MockProjectKeysClient) ProjectKeysDelete(projectKey, keyProjectName string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ProjectKeysDelete", projectKey, keyProjectName) @@ -2855,51 +2841,51 @@ func (m *MockProjectKeysClient) ProjectKeysDelete(projectKey, keyProjectName str return ret0 } -// ProjectKeysDelete indicates an expected call of ProjectKeysDelete +// ProjectKeysDelete indicates an expected call of ProjectKeysDelete. func (mr *MockProjectKeysClientMockRecorder) ProjectKeysDelete(projectKey, keyProjectName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeysDelete", reflect.TypeOf((*MockProjectKeysClient)(nil).ProjectKeysDelete), projectKey, keyProjectName) } -// MockProjectVariablesClient is a mock of ProjectVariablesClient interface +// ProjectKeysList mocks base method. +func (m *MockProjectKeysClient) ProjectKeysList(projectKey string) ([]sdk.ProjectKey, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ProjectKeysList", projectKey) + ret0, _ := ret[0].([]sdk.ProjectKey) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ProjectKeysList indicates an expected call of ProjectKeysList. +func (mr *MockProjectKeysClientMockRecorder) ProjectKeysList(projectKey interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeysList", reflect.TypeOf((*MockProjectKeysClient)(nil).ProjectKeysList), projectKey) +} + +// MockProjectVariablesClient is a mock of ProjectVariablesClient interface. type MockProjectVariablesClient struct { ctrl *gomock.Controller recorder *MockProjectVariablesClientMockRecorder } -// MockProjectVariablesClientMockRecorder is the mock recorder for MockProjectVariablesClient +// MockProjectVariablesClientMockRecorder is the mock recorder for MockProjectVariablesClient. type MockProjectVariablesClientMockRecorder struct { mock *MockProjectVariablesClient } -// NewMockProjectVariablesClient creates a new mock instance +// NewMockProjectVariablesClient creates a new mock instance. func NewMockProjectVariablesClient(ctrl *gomock.Controller) *MockProjectVariablesClient { mock := &MockProjectVariablesClient{ctrl: ctrl} mock.recorder = &MockProjectVariablesClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockProjectVariablesClient) EXPECT() *MockProjectVariablesClientMockRecorder { return m.recorder } -// ProjectVariablesList mocks base method -func (m *MockProjectVariablesClient) ProjectVariablesList(key string) ([]sdk.Variable, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectVariablesList", key) - ret0, _ := ret[0].([]sdk.Variable) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ProjectVariablesList indicates an expected call of ProjectVariablesList -func (mr *MockProjectVariablesClientMockRecorder) ProjectVariablesList(key interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariablesList", reflect.TypeOf((*MockProjectVariablesClient)(nil).ProjectVariablesList), key) -} - -// ProjectVariableCreate mocks base method +// ProjectVariableCreate mocks base method. func (m *MockProjectVariablesClient) ProjectVariableCreate(projectKey string, variable *sdk.Variable) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ProjectVariableCreate", projectKey, variable) @@ -2907,13 +2893,13 @@ func (m *MockProjectVariablesClient) ProjectVariableCreate(projectKey string, va return ret0 } -// ProjectVariableCreate indicates an expected call of ProjectVariableCreate +// ProjectVariableCreate indicates an expected call of ProjectVariableCreate. func (mr *MockProjectVariablesClientMockRecorder) ProjectVariableCreate(projectKey, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableCreate", reflect.TypeOf((*MockProjectVariablesClient)(nil).ProjectVariableCreate), projectKey, variable) } -// ProjectVariableDelete mocks base method +// ProjectVariableDelete mocks base method. func (m *MockProjectVariablesClient) ProjectVariableDelete(projectKey, varName string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ProjectVariableDelete", projectKey, varName) @@ -2921,13 +2907,13 @@ func (m *MockProjectVariablesClient) ProjectVariableDelete(projectKey, varName s return ret0 } -// ProjectVariableDelete indicates an expected call of ProjectVariableDelete +// ProjectVariableDelete indicates an expected call of ProjectVariableDelete. func (mr *MockProjectVariablesClientMockRecorder) ProjectVariableDelete(projectKey, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableDelete", reflect.TypeOf((*MockProjectVariablesClient)(nil).ProjectVariableDelete), projectKey, varName) } -// ProjectVariableGet mocks base method +// ProjectVariableGet mocks base method. func (m *MockProjectVariablesClient) ProjectVariableGet(projectKey, varName string) (*sdk.Variable, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ProjectVariableGet", projectKey, varName) @@ -2936,13 +2922,13 @@ func (m *MockProjectVariablesClient) ProjectVariableGet(projectKey, varName stri return ret0, ret1 } -// ProjectVariableGet indicates an expected call of ProjectVariableGet +// ProjectVariableGet indicates an expected call of ProjectVariableGet. func (mr *MockProjectVariablesClientMockRecorder) ProjectVariableGet(projectKey, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableGet", reflect.TypeOf((*MockProjectVariablesClient)(nil).ProjectVariableGet), projectKey, varName) } -// ProjectVariableUpdate mocks base method +// ProjectVariableUpdate mocks base method. func (m *MockProjectVariablesClient) ProjectVariableUpdate(projectKey string, variable *sdk.Variable) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ProjectVariableUpdate", projectKey, variable) @@ -2950,13 +2936,28 @@ func (m *MockProjectVariablesClient) ProjectVariableUpdate(projectKey string, va return ret0 } -// ProjectVariableUpdate indicates an expected call of ProjectVariableUpdate +// ProjectVariableUpdate indicates an expected call of ProjectVariableUpdate. func (mr *MockProjectVariablesClientMockRecorder) ProjectVariableUpdate(projectKey, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableUpdate", reflect.TypeOf((*MockProjectVariablesClient)(nil).ProjectVariableUpdate), projectKey, variable) } -// VariableEncrypt mocks base method +// ProjectVariablesList mocks base method. +func (m *MockProjectVariablesClient) ProjectVariablesList(key string) ([]sdk.Variable, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ProjectVariablesList", key) + ret0, _ := ret[0].([]sdk.Variable) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ProjectVariablesList indicates an expected call of ProjectVariablesList. +func (mr *MockProjectVariablesClientMockRecorder) ProjectVariablesList(key interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariablesList", reflect.TypeOf((*MockProjectVariablesClient)(nil).ProjectVariablesList), key) +} + +// VariableEncrypt mocks base method. func (m *MockProjectVariablesClient) VariableEncrypt(projectKey, varName, content string) (*sdk.Variable, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "VariableEncrypt", projectKey, varName, content) @@ -2965,13 +2966,13 @@ func (m *MockProjectVariablesClient) VariableEncrypt(projectKey, varName, conten return ret0, ret1 } -// VariableEncrypt indicates an expected call of VariableEncrypt +// VariableEncrypt indicates an expected call of VariableEncrypt. func (mr *MockProjectVariablesClientMockRecorder) VariableEncrypt(projectKey, varName, content interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VariableEncrypt", reflect.TypeOf((*MockProjectVariablesClient)(nil).VariableEncrypt), projectKey, varName, content) } -// VariableListEncrypt mocks base method +// VariableListEncrypt mocks base method. func (m *MockProjectVariablesClient) VariableListEncrypt(projectKey string) ([]sdk.Secret, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "VariableListEncrypt", projectKey) @@ -2980,55 +2981,52 @@ func (m *MockProjectVariablesClient) VariableListEncrypt(projectKey string) ([]s return ret0, ret1 } -// VariableListEncrypt indicates an expected call of VariableListEncrypt +// VariableListEncrypt indicates an expected call of VariableListEncrypt. func (mr *MockProjectVariablesClientMockRecorder) VariableListEncrypt(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VariableListEncrypt", reflect.TypeOf((*MockProjectVariablesClient)(nil).VariableListEncrypt), projectKey) } -// MockQueueClient is a mock of QueueClient interface +// MockQueueClient is a mock of QueueClient interface. type MockQueueClient struct { ctrl *gomock.Controller recorder *MockQueueClientMockRecorder } -// MockQueueClientMockRecorder is the mock recorder for MockQueueClient +// MockQueueClientMockRecorder is the mock recorder for MockQueueClient. type MockQueueClientMockRecorder struct { mock *MockQueueClient } -// NewMockQueueClient creates a new mock instance +// NewMockQueueClient creates a new mock instance. func NewMockQueueClient(ctrl *gomock.Controller) *MockQueueClient { mock := &MockQueueClient{ctrl: ctrl} mock.recorder = &MockQueueClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockQueueClient) EXPECT() *MockQueueClientMockRecorder { return m.recorder } -// QueueWorkflowNodeJobRun mocks base method -func (m *MockQueueClient) QueueWorkflowNodeJobRun(status ...string) ([]sdk.WorkflowNodeJobRun, error) { +// QueueArtifactUpload mocks base method. +func (m *MockQueueClient) QueueArtifactUpload(ctx context.Context, projectKey, integrationName string, nodeJobRunID int64, tag, filePath string) (bool, time.Duration, error) { m.ctrl.T.Helper() - varargs := []interface{}{} - for _, a := range status { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "QueueWorkflowNodeJobRun", varargs...) - ret0, _ := ret[0].([]sdk.WorkflowNodeJobRun) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "QueueArtifactUpload", ctx, projectKey, integrationName, nodeJobRunID, tag, filePath) + ret0, _ := ret[0].(bool) + ret1, _ := ret[1].(time.Duration) + ret2, _ := ret[2].(error) + return ret0, ret1, ret2 } -// QueueWorkflowNodeJobRun indicates an expected call of QueueWorkflowNodeJobRun -func (mr *MockQueueClientMockRecorder) QueueWorkflowNodeJobRun(status ...interface{}) *gomock.Call { +// QueueArtifactUpload indicates an expected call of QueueArtifactUpload. +func (mr *MockQueueClientMockRecorder) QueueArtifactUpload(ctx, projectKey, integrationName, nodeJobRunID, tag, filePath interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowNodeJobRun", reflect.TypeOf((*MockQueueClient)(nil).QueueWorkflowNodeJobRun), status...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueArtifactUpload", reflect.TypeOf((*MockQueueClient)(nil).QueueArtifactUpload), ctx, projectKey, integrationName, nodeJobRunID, tag, filePath) } -// QueueCountWorkflowNodeJobRun mocks base method +// QueueCountWorkflowNodeJobRun mocks base method. func (m *MockQueueClient) QueueCountWorkflowNodeJobRun(since, until *time.Time, modelType string, ratioService *int) (sdk.WorkflowNodeJobRunCount, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueCountWorkflowNodeJobRun", since, until, modelType, ratioService) @@ -3037,57 +3035,43 @@ func (m *MockQueueClient) QueueCountWorkflowNodeJobRun(since, until *time.Time, return ret0, ret1 } -// QueueCountWorkflowNodeJobRun indicates an expected call of QueueCountWorkflowNodeJobRun +// QueueCountWorkflowNodeJobRun indicates an expected call of QueueCountWorkflowNodeJobRun. func (mr *MockQueueClientMockRecorder) QueueCountWorkflowNodeJobRun(since, until, modelType, ratioService interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueCountWorkflowNodeJobRun", reflect.TypeOf((*MockQueueClient)(nil).QueueCountWorkflowNodeJobRun), since, until, modelType, ratioService) } -// QueuePolling mocks base method -func (m *MockQueueClient) QueuePolling(ctx context.Context, goRoutines *sdk.GoRoutines, jobs chan<- sdk.WorkflowNodeJobRun, errs chan<- error, delay time.Duration, modelType string, ratioService *int) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueuePolling", ctx, goRoutines, jobs, errs, delay, modelType, ratioService) - ret0, _ := ret[0].(error) - return ret0 -} - -// QueuePolling indicates an expected call of QueuePolling -func (mr *MockQueueClientMockRecorder) QueuePolling(ctx, goRoutines, jobs, errs, delay, modelType, ratioService interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueuePolling", reflect.TypeOf((*MockQueueClient)(nil).QueuePolling), ctx, goRoutines, jobs, errs, delay, modelType, ratioService) -} - -// QueueTakeJob mocks base method -func (m *MockQueueClient) QueueTakeJob(ctx context.Context, job sdk.WorkflowNodeJobRun) (*sdk.WorkflowNodeJobRunData, error) { +// QueueJobBook mocks base method. +func (m *MockQueueClient) QueueJobBook(ctx context.Context, id int64) (sdk.WorkflowNodeJobRunBooked, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueTakeJob", ctx, job) - ret0, _ := ret[0].(*sdk.WorkflowNodeJobRunData) + ret := m.ctrl.Call(m, "QueueJobBook", ctx, id) + ret0, _ := ret[0].(sdk.WorkflowNodeJobRunBooked) ret1, _ := ret[1].(error) return ret0, ret1 } -// QueueTakeJob indicates an expected call of QueueTakeJob -func (mr *MockQueueClientMockRecorder) QueueTakeJob(ctx, job interface{}) *gomock.Call { +// QueueJobBook indicates an expected call of QueueJobBook. +func (mr *MockQueueClientMockRecorder) QueueJobBook(ctx, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueTakeJob", reflect.TypeOf((*MockQueueClient)(nil).QueueTakeJob), ctx, job) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobBook", reflect.TypeOf((*MockQueueClient)(nil).QueueJobBook), ctx, id) } -// QueueJobBook mocks base method -func (m *MockQueueClient) QueueJobBook(ctx context.Context, id int64) (sdk.WorkflowNodeJobRunBooked, error) { +// QueueJobInfo mocks base method. +func (m *MockQueueClient) QueueJobInfo(ctx context.Context, id int64) (*sdk.WorkflowNodeJobRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueJobBook", ctx, id) - ret0, _ := ret[0].(sdk.WorkflowNodeJobRunBooked) + ret := m.ctrl.Call(m, "QueueJobInfo", ctx, id) + ret0, _ := ret[0].(*sdk.WorkflowNodeJobRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// QueueJobBook indicates an expected call of QueueJobBook -func (mr *MockQueueClientMockRecorder) QueueJobBook(ctx, id interface{}) *gomock.Call { +// QueueJobInfo indicates an expected call of QueueJobInfo. +func (mr *MockQueueClientMockRecorder) QueueJobInfo(ctx, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobBook", reflect.TypeOf((*MockQueueClient)(nil).QueueJobBook), ctx, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobInfo", reflect.TypeOf((*MockQueueClient)(nil).QueueJobInfo), ctx, id) } -// QueueJobRelease mocks base method +// QueueJobRelease mocks base method. func (m *MockQueueClient) QueueJobRelease(ctx context.Context, id int64) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueJobRelease", ctx, id) @@ -3095,28 +3079,13 @@ func (m *MockQueueClient) QueueJobRelease(ctx context.Context, id int64) error { return ret0 } -// QueueJobRelease indicates an expected call of QueueJobRelease +// QueueJobRelease indicates an expected call of QueueJobRelease. func (mr *MockQueueClientMockRecorder) QueueJobRelease(ctx, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobRelease", reflect.TypeOf((*MockQueueClient)(nil).QueueJobRelease), ctx, id) } -// QueueJobInfo mocks base method -func (m *MockQueueClient) QueueJobInfo(ctx context.Context, id int64) (*sdk.WorkflowNodeJobRun, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueJobInfo", ctx, id) - ret0, _ := ret[0].(*sdk.WorkflowNodeJobRun) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// QueueJobInfo indicates an expected call of QueueJobInfo -func (mr *MockQueueClientMockRecorder) QueueJobInfo(ctx, id interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobInfo", reflect.TypeOf((*MockQueueClient)(nil).QueueJobInfo), ctx, id) -} - -// QueueJobSendSpawnInfo mocks base method +// QueueJobSendSpawnInfo mocks base method. func (m *MockQueueClient) QueueJobSendSpawnInfo(ctx context.Context, id int64, in []sdk.SpawnInfo) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueJobSendSpawnInfo", ctx, id, in) @@ -3124,83 +3093,83 @@ func (m *MockQueueClient) QueueJobSendSpawnInfo(ctx context.Context, id int64, i return ret0 } -// QueueJobSendSpawnInfo indicates an expected call of QueueJobSendSpawnInfo +// QueueJobSendSpawnInfo indicates an expected call of QueueJobSendSpawnInfo. func (mr *MockQueueClientMockRecorder) QueueJobSendSpawnInfo(ctx, id, in interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobSendSpawnInfo", reflect.TypeOf((*MockQueueClient)(nil).QueueJobSendSpawnInfo), ctx, id, in) } -// QueueSendCoverage mocks base method -func (m *MockQueueClient) QueueSendCoverage(ctx context.Context, id int64, report coverage.Report) error { +// QueueJobSetVersion mocks base method. +func (m *MockQueueClient) QueueJobSetVersion(ctx context.Context, jobID int64, version sdk.WorkflowRunVersion) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendCoverage", ctx, id, report) + ret := m.ctrl.Call(m, "QueueJobSetVersion", ctx, jobID, version) ret0, _ := ret[0].(error) return ret0 } -// QueueSendCoverage indicates an expected call of QueueSendCoverage -func (mr *MockQueueClientMockRecorder) QueueSendCoverage(ctx, id, report interface{}) *gomock.Call { +// QueueJobSetVersion indicates an expected call of QueueJobSetVersion. +func (mr *MockQueueClientMockRecorder) QueueJobSetVersion(ctx, jobID, version interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendCoverage", reflect.TypeOf((*MockQueueClient)(nil).QueueSendCoverage), ctx, id, report) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobSetVersion", reflect.TypeOf((*MockQueueClient)(nil).QueueJobSetVersion), ctx, jobID, version) } -// QueueSendUnitTests mocks base method -func (m *MockQueueClient) QueueSendUnitTests(ctx context.Context, id int64, report venom.Tests) error { +// QueueJobTag mocks base method. +func (m *MockQueueClient) QueueJobTag(ctx context.Context, jobID int64, tags []sdk.WorkflowRunTag) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendUnitTests", ctx, id, report) + ret := m.ctrl.Call(m, "QueueJobTag", ctx, jobID, tags) ret0, _ := ret[0].(error) return ret0 } -// QueueSendUnitTests indicates an expected call of QueueSendUnitTests -func (mr *MockQueueClientMockRecorder) QueueSendUnitTests(ctx, id, report interface{}) *gomock.Call { +// QueueJobTag indicates an expected call of QueueJobTag. +func (mr *MockQueueClientMockRecorder) QueueJobTag(ctx, jobID, tags interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendUnitTests", reflect.TypeOf((*MockQueueClient)(nil).QueueSendUnitTests), ctx, id, report) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobTag", reflect.TypeOf((*MockQueueClient)(nil).QueueJobTag), ctx, jobID, tags) } -// QueueSendLogs mocks base method -func (m *MockQueueClient) QueueSendLogs(ctx context.Context, id int64, log sdk.Log) error { +// QueuePolling mocks base method. +func (m *MockQueueClient) QueuePolling(ctx context.Context, goRoutines *sdk.GoRoutines, jobs chan<- sdk.WorkflowNodeJobRun, errs chan<- error, delay time.Duration, modelType string, ratioService *int) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendLogs", ctx, id, log) + ret := m.ctrl.Call(m, "QueuePolling", ctx, goRoutines, jobs, errs, delay, modelType, ratioService) ret0, _ := ret[0].(error) return ret0 } -// QueueSendLogs indicates an expected call of QueueSendLogs -func (mr *MockQueueClientMockRecorder) QueueSendLogs(ctx, id, log interface{}) *gomock.Call { +// QueuePolling indicates an expected call of QueuePolling. +func (mr *MockQueueClientMockRecorder) QueuePolling(ctx, goRoutines, jobs, errs, delay, modelType, ratioService interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendLogs", reflect.TypeOf((*MockQueueClient)(nil).QueueSendLogs), ctx, id, log) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueuePolling", reflect.TypeOf((*MockQueueClient)(nil).QueuePolling), ctx, goRoutines, jobs, errs, delay, modelType, ratioService) } -// QueueSendVulnerability mocks base method -func (m *MockQueueClient) QueueSendVulnerability(ctx context.Context, id int64, report sdk.VulnerabilityWorkerReport) error { +// QueueSendCoverage mocks base method. +func (m *MockQueueClient) QueueSendCoverage(ctx context.Context, id int64, report coverage.Report) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendVulnerability", ctx, id, report) + ret := m.ctrl.Call(m, "QueueSendCoverage", ctx, id, report) ret0, _ := ret[0].(error) return ret0 } -// QueueSendVulnerability indicates an expected call of QueueSendVulnerability -func (mr *MockQueueClientMockRecorder) QueueSendVulnerability(ctx, id, report interface{}) *gomock.Call { +// QueueSendCoverage indicates an expected call of QueueSendCoverage. +func (mr *MockQueueClientMockRecorder) QueueSendCoverage(ctx, id, report interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendVulnerability", reflect.TypeOf((*MockQueueClient)(nil).QueueSendVulnerability), ctx, id, report) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendCoverage", reflect.TypeOf((*MockQueueClient)(nil).QueueSendCoverage), ctx, id, report) } -// QueueSendStepResult mocks base method -func (m *MockQueueClient) QueueSendStepResult(ctx context.Context, id int64, res sdk.StepStatus) error { +// QueueSendLogs mocks base method. +func (m *MockQueueClient) QueueSendLogs(ctx context.Context, id int64, log sdk.Log) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendStepResult", ctx, id, res) + ret := m.ctrl.Call(m, "QueueSendLogs", ctx, id, log) ret0, _ := ret[0].(error) return ret0 } -// QueueSendStepResult indicates an expected call of QueueSendStepResult -func (mr *MockQueueClientMockRecorder) QueueSendStepResult(ctx, id, res interface{}) *gomock.Call { +// QueueSendLogs indicates an expected call of QueueSendLogs. +func (mr *MockQueueClientMockRecorder) QueueSendLogs(ctx, id, log interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendStepResult", reflect.TypeOf((*MockQueueClient)(nil).QueueSendStepResult), ctx, id, res) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendLogs", reflect.TypeOf((*MockQueueClient)(nil).QueueSendLogs), ctx, id, log) } -// QueueSendResult mocks base method +// QueueSendResult mocks base method. func (m *MockQueueClient) QueueSendResult(ctx context.Context, id int64, res sdk.Result) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueSendResult", ctx, id, res) @@ -3208,60 +3177,55 @@ func (m *MockQueueClient) QueueSendResult(ctx context.Context, id int64, res sdk return ret0 } -// QueueSendResult indicates an expected call of QueueSendResult +// QueueSendResult indicates an expected call of QueueSendResult. func (mr *MockQueueClientMockRecorder) QueueSendResult(ctx, id, res interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendResult", reflect.TypeOf((*MockQueueClient)(nil).QueueSendResult), ctx, id, res) } -// QueueArtifactUpload mocks base method -func (m *MockQueueClient) QueueArtifactUpload(ctx context.Context, projectKey, integrationName string, nodeJobRunID int64, tag, filePath string) (bool, time.Duration, error) { +// QueueSendStepResult mocks base method. +func (m *MockQueueClient) QueueSendStepResult(ctx context.Context, id int64, res sdk.StepStatus) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueArtifactUpload", ctx, projectKey, integrationName, nodeJobRunID, tag, filePath) - ret0, _ := ret[0].(bool) - ret1, _ := ret[1].(time.Duration) - ret2, _ := ret[2].(error) - return ret0, ret1, ret2 + ret := m.ctrl.Call(m, "QueueSendStepResult", ctx, id, res) + ret0, _ := ret[0].(error) + return ret0 } -// QueueArtifactUpload indicates an expected call of QueueArtifactUpload -func (mr *MockQueueClientMockRecorder) QueueArtifactUpload(ctx, projectKey, integrationName, nodeJobRunID, tag, filePath interface{}) *gomock.Call { +// QueueSendStepResult indicates an expected call of QueueSendStepResult. +func (mr *MockQueueClientMockRecorder) QueueSendStepResult(ctx, id, res interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueArtifactUpload", reflect.TypeOf((*MockQueueClient)(nil).QueueArtifactUpload), ctx, projectKey, integrationName, nodeJobRunID, tag, filePath) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendStepResult", reflect.TypeOf((*MockQueueClient)(nil).QueueSendStepResult), ctx, id, res) } -// QueueStaticFilesUpload mocks base method -func (m *MockQueueClient) QueueStaticFilesUpload(ctx context.Context, projectKey, integrationName string, nodeJobRunID int64, name, entrypoint, staticKey string, tarContent io.Reader) (string, bool, time.Duration, error) { +// QueueSendUnitTests mocks base method. +func (m *MockQueueClient) QueueSendUnitTests(ctx context.Context, id int64, report venom.Tests) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueStaticFilesUpload", ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent) - ret0, _ := ret[0].(string) - ret1, _ := ret[1].(bool) - ret2, _ := ret[2].(time.Duration) - ret3, _ := ret[3].(error) - return ret0, ret1, ret2, ret3 + ret := m.ctrl.Call(m, "QueueSendUnitTests", ctx, id, report) + ret0, _ := ret[0].(error) + return ret0 } -// QueueStaticFilesUpload indicates an expected call of QueueStaticFilesUpload -func (mr *MockQueueClientMockRecorder) QueueStaticFilesUpload(ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent interface{}) *gomock.Call { +// QueueSendUnitTests indicates an expected call of QueueSendUnitTests. +func (mr *MockQueueClientMockRecorder) QueueSendUnitTests(ctx, id, report interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueStaticFilesUpload", reflect.TypeOf((*MockQueueClient)(nil).QueueStaticFilesUpload), ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendUnitTests", reflect.TypeOf((*MockQueueClient)(nil).QueueSendUnitTests), ctx, id, report) } -// QueueJobTag mocks base method -func (m *MockQueueClient) QueueJobTag(ctx context.Context, jobID int64, tags []sdk.WorkflowRunTag) error { +// QueueSendVulnerability mocks base method. +func (m *MockQueueClient) QueueSendVulnerability(ctx context.Context, id int64, report sdk.VulnerabilityWorkerReport) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueJobTag", ctx, jobID, tags) + ret := m.ctrl.Call(m, "QueueSendVulnerability", ctx, id, report) ret0, _ := ret[0].(error) return ret0 } -// QueueJobTag indicates an expected call of QueueJobTag -func (mr *MockQueueClientMockRecorder) QueueJobTag(ctx, jobID, tags interface{}) *gomock.Call { +// QueueSendVulnerability indicates an expected call of QueueSendVulnerability. +func (mr *MockQueueClientMockRecorder) QueueSendVulnerability(ctx, id, report interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobTag", reflect.TypeOf((*MockQueueClient)(nil).QueueJobTag), ctx, jobID, tags) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendVulnerability", reflect.TypeOf((*MockQueueClient)(nil).QueueSendVulnerability), ctx, id, report) } -// QueueServiceLogs mocks base method +// QueueServiceLogs mocks base method. func (m *MockQueueClient) QueueServiceLogs(ctx context.Context, logs []sdk.ServiceLog) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueServiceLogs", ctx, logs) @@ -3269,27 +3233,45 @@ func (m *MockQueueClient) QueueServiceLogs(ctx context.Context, logs []sdk.Servi return ret0 } -// QueueServiceLogs indicates an expected call of QueueServiceLogs +// QueueServiceLogs indicates an expected call of QueueServiceLogs. func (mr *MockQueueClientMockRecorder) QueueServiceLogs(ctx, logs interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueServiceLogs", reflect.TypeOf((*MockQueueClient)(nil).QueueServiceLogs), ctx, logs) } -// QueueJobSetVersion mocks base method -func (m *MockQueueClient) QueueJobSetVersion(ctx context.Context, jobID int64, version sdk.WorkflowRunVersion) error { +// QueueStaticFilesUpload mocks base method. +func (m *MockQueueClient) QueueStaticFilesUpload(ctx context.Context, projectKey, integrationName string, nodeJobRunID int64, name, entrypoint, staticKey string, tarContent io.Reader) (string, bool, time.Duration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueJobSetVersion", ctx, jobID, version) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "QueueStaticFilesUpload", ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent) + ret0, _ := ret[0].(string) + ret1, _ := ret[1].(bool) + ret2, _ := ret[2].(time.Duration) + ret3, _ := ret[3].(error) + return ret0, ret1, ret2, ret3 } -// QueueJobSetVersion indicates an expected call of QueueJobSetVersion -func (mr *MockQueueClientMockRecorder) QueueJobSetVersion(ctx, jobID, version interface{}) *gomock.Call { +// QueueStaticFilesUpload indicates an expected call of QueueStaticFilesUpload. +func (mr *MockQueueClientMockRecorder) QueueStaticFilesUpload(ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobSetVersion", reflect.TypeOf((*MockQueueClient)(nil).QueueJobSetVersion), ctx, jobID, version) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueStaticFilesUpload", reflect.TypeOf((*MockQueueClient)(nil).QueueStaticFilesUpload), ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent) +} + +// QueueTakeJob mocks base method. +func (m *MockQueueClient) QueueTakeJob(ctx context.Context, job sdk.WorkflowNodeJobRun) (*sdk.WorkflowNodeJobRunData, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QueueTakeJob", ctx, job) + ret0, _ := ret[0].(*sdk.WorkflowNodeJobRunData) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// QueueTakeJob indicates an expected call of QueueTakeJob. +func (mr *MockQueueClientMockRecorder) QueueTakeJob(ctx, job interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueTakeJob", reflect.TypeOf((*MockQueueClient)(nil).QueueTakeJob), ctx, job) } -// QueueWorkerCacheLink mocks base method +// QueueWorkerCacheLink mocks base method. func (m *MockQueueClient) QueueWorkerCacheLink(ctx context.Context, jobID int64, tag string) (sdk.CDNItemLinks, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueWorkerCacheLink", ctx, jobID, tag) @@ -3298,79 +3280,98 @@ func (m *MockQueueClient) QueueWorkerCacheLink(ctx context.Context, jobID int64, return ret0, ret1 } -// QueueWorkerCacheLink indicates an expected call of QueueWorkerCacheLink +// QueueWorkerCacheLink indicates an expected call of QueueWorkerCacheLink. func (mr *MockQueueClientMockRecorder) QueueWorkerCacheLink(ctx, jobID, tag interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkerCacheLink", reflect.TypeOf((*MockQueueClient)(nil).QueueWorkerCacheLink), ctx, jobID, tag) } -// QueueWorkflowRunResultsAdd mocks base method -func (m *MockQueueClient) QueueWorkflowRunResultsAdd(ctx context.Context, jobID int64, addRequest sdk.WorkflowRunResult) error { +// QueueWorkflowNodeJobRun mocks base method. +func (m *MockQueueClient) QueueWorkflowNodeJobRun(status ...string) ([]sdk.WorkflowNodeJobRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueWorkflowRunResultsAdd", ctx, jobID, addRequest) + varargs := []interface{}{} + for _, a := range status { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "QueueWorkflowNodeJobRun", varargs...) + ret0, _ := ret[0].([]sdk.WorkflowNodeJobRun) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// QueueWorkflowNodeJobRun indicates an expected call of QueueWorkflowNodeJobRun. +func (mr *MockQueueClientMockRecorder) QueueWorkflowNodeJobRun(status ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowNodeJobRun", reflect.TypeOf((*MockQueueClient)(nil).QueueWorkflowNodeJobRun), status...) +} + +// QueueWorkflowRunResultCheck mocks base method. +func (m *MockQueueClient) QueueWorkflowRunResultCheck(ctx context.Context, jobID int64, runResultCheck sdk.WorkflowRunResultCheck) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QueueWorkflowRunResultCheck", ctx, jobID, runResultCheck) ret0, _ := ret[0].(error) return ret0 } -// QueueWorkflowRunResultsAdd indicates an expected call of QueueWorkflowRunResultsAdd -func (mr *MockQueueClientMockRecorder) QueueWorkflowRunResultsAdd(ctx, jobID, addRequest interface{}) *gomock.Call { +// QueueWorkflowRunResultCheck indicates an expected call of QueueWorkflowRunResultCheck. +func (mr *MockQueueClientMockRecorder) QueueWorkflowRunResultCheck(ctx, jobID, runResultCheck interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowRunResultsAdd", reflect.TypeOf((*MockQueueClient)(nil).QueueWorkflowRunResultsAdd), ctx, jobID, addRequest) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowRunResultCheck", reflect.TypeOf((*MockQueueClient)(nil).QueueWorkflowRunResultCheck), ctx, jobID, runResultCheck) } -// QueueWorkflowRunResultCheck mocks base method -func (m *MockQueueClient) QueueWorkflowRunResultCheck(ctx context.Context, jobID int64, apiRef sdk.CDNRunResultAPIRef) error { +// QueueWorkflowRunResultsAdd mocks base method. +func (m *MockQueueClient) QueueWorkflowRunResultsAdd(ctx context.Context, jobID int64, addRequest sdk.WorkflowRunResult) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueWorkflowRunResultCheck", ctx, jobID, apiRef) + ret := m.ctrl.Call(m, "QueueWorkflowRunResultsAdd", ctx, jobID, addRequest) ret0, _ := ret[0].(error) return ret0 } -// QueueWorkflowRunResultCheck indicates an expected call of QueueWorkflowRunResultCheck -func (mr *MockQueueClientMockRecorder) QueueWorkflowRunResultCheck(ctx, jobID, apiRef interface{}) *gomock.Call { +// QueueWorkflowRunResultsAdd indicates an expected call of QueueWorkflowRunResultsAdd. +func (mr *MockQueueClientMockRecorder) QueueWorkflowRunResultsAdd(ctx, jobID, addRequest interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowRunResultCheck", reflect.TypeOf((*MockQueueClient)(nil).QueueWorkflowRunResultCheck), ctx, jobID, apiRef) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowRunResultsAdd", reflect.TypeOf((*MockQueueClient)(nil).QueueWorkflowRunResultsAdd), ctx, jobID, addRequest) } -// MockUserClient is a mock of UserClient interface +// MockUserClient is a mock of UserClient interface. type MockUserClient struct { ctrl *gomock.Controller recorder *MockUserClientMockRecorder } -// MockUserClientMockRecorder is the mock recorder for MockUserClient +// MockUserClientMockRecorder is the mock recorder for MockUserClient. type MockUserClientMockRecorder struct { mock *MockUserClient } -// NewMockUserClient creates a new mock instance +// NewMockUserClient creates a new mock instance. func NewMockUserClient(ctrl *gomock.Controller) *MockUserClient { mock := &MockUserClient{ctrl: ctrl} mock.recorder = &MockUserClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockUserClient) EXPECT() *MockUserClientMockRecorder { return m.recorder } -// UserList mocks base method -func (m *MockUserClient) UserList() ([]sdk.AuthentifiedUser, error) { +// UpdateFavorite mocks base method. +func (m *MockUserClient) UpdateFavorite(params sdk.FavoriteParams) (interface{}, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UserList") - ret0, _ := ret[0].([]sdk.AuthentifiedUser) + ret := m.ctrl.Call(m, "UpdateFavorite", params) + ret0, _ := ret[0].(interface{}) ret1, _ := ret[1].(error) return ret0, ret1 } -// UserList indicates an expected call of UserList -func (mr *MockUserClientMockRecorder) UserList() *gomock.Call { +// UpdateFavorite indicates an expected call of UpdateFavorite. +func (mr *MockUserClientMockRecorder) UpdateFavorite(params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserList", reflect.TypeOf((*MockUserClient)(nil).UserList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFavorite", reflect.TypeOf((*MockUserClient)(nil).UpdateFavorite), params) } -// UserGet mocks base method +// UserGet mocks base method. func (m *MockUserClient) UserGet(username string) (*sdk.AuthentifiedUser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserGet", username) @@ -3379,28 +3380,13 @@ func (m *MockUserClient) UserGet(username string) (*sdk.AuthentifiedUser, error) return ret0, ret1 } -// UserGet indicates an expected call of UserGet +// UserGet indicates an expected call of UserGet. func (mr *MockUserClientMockRecorder) UserGet(username interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserGet", reflect.TypeOf((*MockUserClient)(nil).UserGet), username) } -// UserGetMe mocks base method -func (m *MockUserClient) UserGetMe() (*sdk.AuthentifiedUser, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UserGetMe") - ret0, _ := ret[0].(*sdk.AuthentifiedUser) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UserGetMe indicates an expected call of UserGetMe -func (mr *MockUserClientMockRecorder) UserGetMe() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserGetMe", reflect.TypeOf((*MockUserClient)(nil).UserGetMe)) -} - -// UserGetGroups mocks base method +// UserGetGroups mocks base method. func (m *MockUserClient) UserGetGroups(username string) (map[string][]sdk.Group, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserGetGroups", username) @@ -3409,28 +3395,28 @@ func (m *MockUserClient) UserGetGroups(username string) (map[string][]sdk.Group, return ret0, ret1 } -// UserGetGroups indicates an expected call of UserGetGroups +// UserGetGroups indicates an expected call of UserGetGroups. func (mr *MockUserClientMockRecorder) UserGetGroups(username interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserGetGroups", reflect.TypeOf((*MockUserClient)(nil).UserGetGroups), username) } -// UpdateFavorite mocks base method -func (m *MockUserClient) UpdateFavorite(params sdk.FavoriteParams) (interface{}, error) { +// UserGetMe mocks base method. +func (m *MockUserClient) UserGetMe() (*sdk.AuthentifiedUser, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateFavorite", params) - ret0, _ := ret[0].(interface{}) + ret := m.ctrl.Call(m, "UserGetMe") + ret0, _ := ret[0].(*sdk.AuthentifiedUser) ret1, _ := ret[1].(error) return ret0, ret1 } -// UpdateFavorite indicates an expected call of UpdateFavorite -func (mr *MockUserClientMockRecorder) UpdateFavorite(params interface{}) *gomock.Call { +// UserGetMe indicates an expected call of UserGetMe. +func (mr *MockUserClientMockRecorder) UserGetMe() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFavorite", reflect.TypeOf((*MockUserClient)(nil).UpdateFavorite), params) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserGetMe", reflect.TypeOf((*MockUserClient)(nil).UserGetMe)) } -// UserGetSchema mocks base method +// UserGetSchema mocks base method. func (m *MockUserClient) UserGetSchema() (sdk.SchemaResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserGetSchema") @@ -3439,127 +3425,130 @@ func (m *MockUserClient) UserGetSchema() (sdk.SchemaResponse, error) { return ret0, ret1 } -// UserGetSchema indicates an expected call of UserGetSchema +// UserGetSchema indicates an expected call of UserGetSchema. func (mr *MockUserClientMockRecorder) UserGetSchema() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserGetSchema", reflect.TypeOf((*MockUserClient)(nil).UserGetSchema)) } -// MockWorkerClient is a mock of WorkerClient interface +// UserList mocks base method. +func (m *MockUserClient) UserList() ([]sdk.AuthentifiedUser, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UserList") + ret0, _ := ret[0].([]sdk.AuthentifiedUser) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UserList indicates an expected call of UserList. +func (mr *MockUserClientMockRecorder) UserList() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserList", reflect.TypeOf((*MockUserClient)(nil).UserList)) +} + +// MockWorkerClient is a mock of WorkerClient interface. type MockWorkerClient struct { ctrl *gomock.Controller recorder *MockWorkerClientMockRecorder } -// MockWorkerClientMockRecorder is the mock recorder for MockWorkerClient +// MockWorkerClientMockRecorder is the mock recorder for MockWorkerClient. type MockWorkerClientMockRecorder struct { mock *MockWorkerClient } -// NewMockWorkerClient creates a new mock instance +// NewMockWorkerClient creates a new mock instance. func NewMockWorkerClient(ctrl *gomock.Controller) *MockWorkerClient { mock := &MockWorkerClient{ctrl: ctrl} mock.recorder = &MockWorkerClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockWorkerClient) EXPECT() *MockWorkerClientMockRecorder { return m.recorder } -// WorkerGet mocks base method -func (m *MockWorkerClient) WorkerGet(ctx context.Context, name string, mods ...cdsclient.RequestModifier) (*sdk.Worker, error) { +// CDNItemDownload mocks base method. +func (m *MockWorkerClient) CDNItemDownload(ctx context.Context, cdnAddr, hash string, itemType sdk.CDNItemType) (io.Reader, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkerGet", varargs...) - ret0, _ := ret[0].(*sdk.Worker) + ret := m.ctrl.Call(m, "CDNItemDownload", ctx, cdnAddr, hash, itemType) + ret0, _ := ret[0].(io.Reader) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerGet indicates an expected call of WorkerGet -func (mr *MockWorkerClientMockRecorder) WorkerGet(ctx, name interface{}, mods ...interface{}) *gomock.Call { +// CDNItemDownload indicates an expected call of CDNItemDownload. +func (mr *MockWorkerClientMockRecorder) CDNItemDownload(ctx, cdnAddr, hash, itemType interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerGet", reflect.TypeOf((*MockWorkerClient)(nil).WorkerGet), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemDownload", reflect.TypeOf((*MockWorkerClient)(nil).CDNItemDownload), ctx, cdnAddr, hash, itemType) } -// WorkerModelBook mocks base method -func (m *MockWorkerClient) WorkerModelBook(groupName, name string) error { +// CDNItemUpload mocks base method. +func (m *MockWorkerClient) CDNItemUpload(ctx context.Context, cdnAddr, signature string, fs afero.Fs, path string) (time.Duration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelBook", groupName, name) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "CDNItemUpload", ctx, cdnAddr, signature, fs, path) + ret0, _ := ret[0].(time.Duration) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// WorkerModelBook indicates an expected call of WorkerModelBook -func (mr *MockWorkerClientMockRecorder) WorkerModelBook(groupName, name interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelBook", reflect.TypeOf((*MockWorkerClient)(nil).WorkerModelBook), groupName, name) -} - -// WorkerList mocks base method -func (m *MockWorkerClient) WorkerList(ctx context.Context) ([]sdk.Worker, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerList", ctx) - ret0, _ := ret[0].([]sdk.Worker) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkerList indicates an expected call of WorkerList -func (mr *MockWorkerClientMockRecorder) WorkerList(ctx interface{}) *gomock.Call { +// CDNItemUpload indicates an expected call of CDNItemUpload. +func (mr *MockWorkerClientMockRecorder) CDNItemUpload(ctx, cdnAddr, signature, fs, path interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerList", reflect.TypeOf((*MockWorkerClient)(nil).WorkerList), ctx) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemUpload", reflect.TypeOf((*MockWorkerClient)(nil).CDNItemUpload), ctx, cdnAddr, signature, fs, path) } -// WorkerRefresh mocks base method -func (m *MockWorkerClient) WorkerRefresh(ctx context.Context) error { +// WorkerDisable mocks base method. +func (m *MockWorkerClient) WorkerDisable(ctx context.Context, id string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerRefresh", ctx) + ret := m.ctrl.Call(m, "WorkerDisable", ctx, id) ret0, _ := ret[0].(error) return ret0 } -// WorkerRefresh indicates an expected call of WorkerRefresh -func (mr *MockWorkerClientMockRecorder) WorkerRefresh(ctx interface{}) *gomock.Call { +// WorkerDisable indicates an expected call of WorkerDisable. +func (mr *MockWorkerClientMockRecorder) WorkerDisable(ctx, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerRefresh", reflect.TypeOf((*MockWorkerClient)(nil).WorkerRefresh), ctx) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerDisable", reflect.TypeOf((*MockWorkerClient)(nil).WorkerDisable), ctx, id) } -// WorkerUnregister mocks base method -func (m *MockWorkerClient) WorkerUnregister(ctx context.Context) error { +// WorkerGet mocks base method. +func (m *MockWorkerClient) WorkerGet(ctx context.Context, name string, mods ...cdsclient.RequestModifier) (*sdk.Worker, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerUnregister", ctx) - ret0, _ := ret[0].(error) - return ret0 + varargs := []interface{}{ctx, name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkerGet", varargs...) + ret0, _ := ret[0].(*sdk.Worker) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// WorkerUnregister indicates an expected call of WorkerUnregister -func (mr *MockWorkerClientMockRecorder) WorkerUnregister(ctx interface{}) *gomock.Call { +// WorkerGet indicates an expected call of WorkerGet. +func (mr *MockWorkerClientMockRecorder) WorkerGet(ctx, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerUnregister", reflect.TypeOf((*MockWorkerClient)(nil).WorkerUnregister), ctx) + varargs := append([]interface{}{ctx, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerGet", reflect.TypeOf((*MockWorkerClient)(nil).WorkerGet), varargs...) } -// WorkerDisable mocks base method -func (m *MockWorkerClient) WorkerDisable(ctx context.Context, id string) error { +// WorkerList mocks base method. +func (m *MockWorkerClient) WorkerList(ctx context.Context) ([]sdk.Worker, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerDisable", ctx, id) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "WorkerList", ctx) + ret0, _ := ret[0].([]sdk.Worker) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// WorkerDisable indicates an expected call of WorkerDisable -func (mr *MockWorkerClientMockRecorder) WorkerDisable(ctx, id interface{}) *gomock.Call { +// WorkerList indicates an expected call of WorkerList. +func (mr *MockWorkerClientMockRecorder) WorkerList(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerDisable", reflect.TypeOf((*MockWorkerClient)(nil).WorkerDisable), ctx, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerList", reflect.TypeOf((*MockWorkerClient)(nil).WorkerList), ctx) } -// WorkerModelAdd mocks base method +// WorkerModelAdd mocks base method. func (m *MockWorkerClient) WorkerModelAdd(name, modelType, patternName string, dockerModel *sdk.ModelDocker, vmModel *sdk.ModelVirtualMachine, groupID int64) (sdk.Model, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkerModelAdd", name, modelType, patternName, dockerModel, vmModel, groupID) @@ -3568,28 +3557,27 @@ func (m *MockWorkerClient) WorkerModelAdd(name, modelType, patternName string, d return ret0, ret1 } -// WorkerModelAdd indicates an expected call of WorkerModelAdd +// WorkerModelAdd indicates an expected call of WorkerModelAdd. func (mr *MockWorkerClientMockRecorder) WorkerModelAdd(name, modelType, patternName, dockerModel, vmModel, groupID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelAdd", reflect.TypeOf((*MockWorkerClient)(nil).WorkerModelAdd), name, modelType, patternName, dockerModel, vmModel, groupID) } -// WorkerModelGet mocks base method -func (m *MockWorkerClient) WorkerModelGet(groupName, name string) (sdk.Model, error) { +// WorkerModelBook mocks base method. +func (m *MockWorkerClient) WorkerModelBook(groupName, name string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelGet", groupName, name) - ret0, _ := ret[0].(sdk.Model) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "WorkerModelBook", groupName, name) + ret0, _ := ret[0].(error) + return ret0 } -// WorkerModelGet indicates an expected call of WorkerModelGet -func (mr *MockWorkerClientMockRecorder) WorkerModelGet(groupName, name interface{}) *gomock.Call { +// WorkerModelBook indicates an expected call of WorkerModelBook. +func (mr *MockWorkerClientMockRecorder) WorkerModelBook(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelGet", reflect.TypeOf((*MockWorkerClient)(nil).WorkerModelGet), groupName, name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelBook", reflect.TypeOf((*MockWorkerClient)(nil).WorkerModelBook), groupName, name) } -// WorkerModelDelete mocks base method +// WorkerModelDelete mocks base method. func (m *MockWorkerClient) WorkerModelDelete(groupName, name string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkerModelDelete", groupName, name) @@ -3597,57 +3585,58 @@ func (m *MockWorkerClient) WorkerModelDelete(groupName, name string) error { return ret0 } -// WorkerModelDelete indicates an expected call of WorkerModelDelete +// WorkerModelDelete indicates an expected call of WorkerModelDelete. func (mr *MockWorkerClientMockRecorder) WorkerModelDelete(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelDelete", reflect.TypeOf((*MockWorkerClient)(nil).WorkerModelDelete), groupName, name) } -// WorkerModelSpawnError mocks base method -func (m *MockWorkerClient) WorkerModelSpawnError(groupName, name string, info sdk.SpawnErrorForm) error { +// WorkerModelEnabledList mocks base method. +func (m *MockWorkerClient) WorkerModelEnabledList() ([]sdk.Model, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelSpawnError", groupName, name, info) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "WorkerModelEnabledList") + ret0, _ := ret[0].([]sdk.Model) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// WorkerModelSpawnError indicates an expected call of WorkerModelSpawnError -func (mr *MockWorkerClientMockRecorder) WorkerModelSpawnError(groupName, name, info interface{}) *gomock.Call { +// WorkerModelEnabledList indicates an expected call of WorkerModelEnabledList. +func (mr *MockWorkerClientMockRecorder) WorkerModelEnabledList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelSpawnError", reflect.TypeOf((*MockWorkerClient)(nil).WorkerModelSpawnError), groupName, name, info) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelEnabledList", reflect.TypeOf((*MockWorkerClient)(nil).WorkerModelEnabledList)) } -// WorkerModelList mocks base method -func (m *MockWorkerClient) WorkerModelList(arg0 *cdsclient.WorkerModelFilter) ([]sdk.Model, error) { +// WorkerModelGet mocks base method. +func (m *MockWorkerClient) WorkerModelGet(groupName, name string) (sdk.Model, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelList", arg0) - ret0, _ := ret[0].([]sdk.Model) + ret := m.ctrl.Call(m, "WorkerModelGet", groupName, name) + ret0, _ := ret[0].(sdk.Model) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerModelList indicates an expected call of WorkerModelList -func (mr *MockWorkerClientMockRecorder) WorkerModelList(arg0 interface{}) *gomock.Call { +// WorkerModelGet indicates an expected call of WorkerModelGet. +func (mr *MockWorkerClientMockRecorder) WorkerModelGet(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelList", reflect.TypeOf((*MockWorkerClient)(nil).WorkerModelList), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelGet", reflect.TypeOf((*MockWorkerClient)(nil).WorkerModelGet), groupName, name) } -// WorkerModelEnabledList mocks base method -func (m *MockWorkerClient) WorkerModelEnabledList() ([]sdk.Model, error) { +// WorkerModelList mocks base method. +func (m *MockWorkerClient) WorkerModelList(arg0 *cdsclient.WorkerModelFilter) ([]sdk.Model, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelEnabledList") + ret := m.ctrl.Call(m, "WorkerModelList", arg0) ret0, _ := ret[0].([]sdk.Model) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerModelEnabledList indicates an expected call of WorkerModelEnabledList -func (mr *MockWorkerClientMockRecorder) WorkerModelEnabledList() *gomock.Call { +// WorkerModelList indicates an expected call of WorkerModelList. +func (mr *MockWorkerClientMockRecorder) WorkerModelList(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelEnabledList", reflect.TypeOf((*MockWorkerClient)(nil).WorkerModelEnabledList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelList", reflect.TypeOf((*MockWorkerClient)(nil).WorkerModelList), arg0) } -// WorkerModelSecretList mocks base method +// WorkerModelSecretList mocks base method. func (m *MockWorkerClient) WorkerModelSecretList(groupName, name string) (sdk.WorkerModelSecrets, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkerModelSecretList", groupName, name) @@ -3656,13 +3645,41 @@ func (m *MockWorkerClient) WorkerModelSecretList(groupName, name string) (sdk.Wo return ret0, ret1 } -// WorkerModelSecretList indicates an expected call of WorkerModelSecretList +// WorkerModelSecretList indicates an expected call of WorkerModelSecretList. func (mr *MockWorkerClientMockRecorder) WorkerModelSecretList(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelSecretList", reflect.TypeOf((*MockWorkerClient)(nil).WorkerModelSecretList), groupName, name) } -// WorkerRegister mocks base method +// WorkerModelSpawnError mocks base method. +func (m *MockWorkerClient) WorkerModelSpawnError(groupName, name string, info sdk.SpawnErrorForm) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkerModelSpawnError", groupName, name, info) + ret0, _ := ret[0].(error) + return ret0 +} + +// WorkerModelSpawnError indicates an expected call of WorkerModelSpawnError. +func (mr *MockWorkerClientMockRecorder) WorkerModelSpawnError(groupName, name, info interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelSpawnError", reflect.TypeOf((*MockWorkerClient)(nil).WorkerModelSpawnError), groupName, name, info) +} + +// WorkerRefresh mocks base method. +func (m *MockWorkerClient) WorkerRefresh(ctx context.Context) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkerRefresh", ctx) + ret0, _ := ret[0].(error) + return ret0 +} + +// WorkerRefresh indicates an expected call of WorkerRefresh. +func (mr *MockWorkerClientMockRecorder) WorkerRefresh(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerRefresh", reflect.TypeOf((*MockWorkerClient)(nil).WorkerRefresh), ctx) +} + +// WorkerRegister mocks base method. func (m *MockWorkerClient) WorkerRegister(ctx context.Context, authToken string, form sdk.WorkerRegistrationForm) (*sdk.Worker, bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkerRegister", ctx, authToken, form) @@ -3672,13 +3689,13 @@ func (m *MockWorkerClient) WorkerRegister(ctx context.Context, authToken string, return ret0, ret1, ret2 } -// WorkerRegister indicates an expected call of WorkerRegister +// WorkerRegister indicates an expected call of WorkerRegister. func (mr *MockWorkerClientMockRecorder) WorkerRegister(ctx, authToken, form interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerRegister", reflect.TypeOf((*MockWorkerClient)(nil).WorkerRegister), ctx, authToken, form) } -// WorkerSetStatus mocks base method +// WorkerSetStatus mocks base method. func (m *MockWorkerClient) WorkerSetStatus(ctx context.Context, status string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkerSetStatus", ctx, status) @@ -3686,119 +3703,103 @@ func (m *MockWorkerClient) WorkerSetStatus(ctx context.Context, status string) e return ret0 } -// WorkerSetStatus indicates an expected call of WorkerSetStatus +// WorkerSetStatus indicates an expected call of WorkerSetStatus. func (mr *MockWorkerClientMockRecorder) WorkerSetStatus(ctx, status interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerSetStatus", reflect.TypeOf((*MockWorkerClient)(nil).WorkerSetStatus), ctx, status) } -// CDNItemUpload mocks base method -func (m *MockWorkerClient) CDNItemUpload(ctx context.Context, cdnAddr, signature string, fs afero.Fs, path string) (time.Duration, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CDNItemUpload", ctx, cdnAddr, signature, fs, path) - ret0, _ := ret[0].(time.Duration) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CDNItemUpload indicates an expected call of CDNItemUpload -func (mr *MockWorkerClientMockRecorder) CDNItemUpload(ctx, cdnAddr, signature, fs, path interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemUpload", reflect.TypeOf((*MockWorkerClient)(nil).CDNItemUpload), ctx, cdnAddr, signature, fs, path) -} - -// CDNItemDownload mocks base method -func (m *MockWorkerClient) CDNItemDownload(ctx context.Context, cdnAddr, hash string, itemType sdk.CDNItemType) (io.Reader, error) { +// WorkerUnregister mocks base method. +func (m *MockWorkerClient) WorkerUnregister(ctx context.Context) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CDNItemDownload", ctx, cdnAddr, hash, itemType) - ret0, _ := ret[0].(io.Reader) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "WorkerUnregister", ctx) + ret0, _ := ret[0].(error) + return ret0 } -// CDNItemDownload indicates an expected call of CDNItemDownload -func (mr *MockWorkerClientMockRecorder) CDNItemDownload(ctx, cdnAddr, hash, itemType interface{}) *gomock.Call { +// WorkerUnregister indicates an expected call of WorkerUnregister. +func (mr *MockWorkerClientMockRecorder) WorkerUnregister(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemDownload", reflect.TypeOf((*MockWorkerClient)(nil).CDNItemDownload), ctx, cdnAddr, hash, itemType) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerUnregister", reflect.TypeOf((*MockWorkerClient)(nil).WorkerUnregister), ctx) } -// MockCDNClient is a mock of CDNClient interface +// MockCDNClient is a mock of CDNClient interface. type MockCDNClient struct { ctrl *gomock.Controller recorder *MockCDNClientMockRecorder } -// MockCDNClientMockRecorder is the mock recorder for MockCDNClient +// MockCDNClientMockRecorder is the mock recorder for MockCDNClient. type MockCDNClientMockRecorder struct { mock *MockCDNClient } -// NewMockCDNClient creates a new mock instance +// NewMockCDNClient creates a new mock instance. func NewMockCDNClient(ctrl *gomock.Controller) *MockCDNClient { mock := &MockCDNClient{ctrl: ctrl} mock.recorder = &MockCDNClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockCDNClient) EXPECT() *MockCDNClientMockRecorder { return m.recorder } -// CDNItemUpload mocks base method -func (m *MockCDNClient) CDNItemUpload(ctx context.Context, cdnAddr, signature string, fs afero.Fs, path string) (time.Duration, error) { +// CDNItemDownload mocks base method. +func (m *MockCDNClient) CDNItemDownload(ctx context.Context, cdnAddr, hash string, itemType sdk.CDNItemType) (io.Reader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CDNItemUpload", ctx, cdnAddr, signature, fs, path) - ret0, _ := ret[0].(time.Duration) + ret := m.ctrl.Call(m, "CDNItemDownload", ctx, cdnAddr, hash, itemType) + ret0, _ := ret[0].(io.Reader) ret1, _ := ret[1].(error) return ret0, ret1 } -// CDNItemUpload indicates an expected call of CDNItemUpload -func (mr *MockCDNClientMockRecorder) CDNItemUpload(ctx, cdnAddr, signature, fs, path interface{}) *gomock.Call { +// CDNItemDownload indicates an expected call of CDNItemDownload. +func (mr *MockCDNClientMockRecorder) CDNItemDownload(ctx, cdnAddr, hash, itemType interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemUpload", reflect.TypeOf((*MockCDNClient)(nil).CDNItemUpload), ctx, cdnAddr, signature, fs, path) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemDownload", reflect.TypeOf((*MockCDNClient)(nil).CDNItemDownload), ctx, cdnAddr, hash, itemType) } -// CDNItemDownload mocks base method -func (m *MockCDNClient) CDNItemDownload(ctx context.Context, cdnAddr, hash string, itemType sdk.CDNItemType) (io.Reader, error) { +// CDNItemUpload mocks base method. +func (m *MockCDNClient) CDNItemUpload(ctx context.Context, cdnAddr, signature string, fs afero.Fs, path string) (time.Duration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CDNItemDownload", ctx, cdnAddr, hash, itemType) - ret0, _ := ret[0].(io.Reader) + ret := m.ctrl.Call(m, "CDNItemUpload", ctx, cdnAddr, signature, fs, path) + ret0, _ := ret[0].(time.Duration) ret1, _ := ret[1].(error) return ret0, ret1 } -// CDNItemDownload indicates an expected call of CDNItemDownload -func (mr *MockCDNClientMockRecorder) CDNItemDownload(ctx, cdnAddr, hash, itemType interface{}) *gomock.Call { +// CDNItemUpload indicates an expected call of CDNItemUpload. +func (mr *MockCDNClientMockRecorder) CDNItemUpload(ctx, cdnAddr, signature, fs, path interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemDownload", reflect.TypeOf((*MockCDNClient)(nil).CDNItemDownload), ctx, cdnAddr, hash, itemType) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemUpload", reflect.TypeOf((*MockCDNClient)(nil).CDNItemUpload), ctx, cdnAddr, signature, fs, path) } -// MockHookClient is a mock of HookClient interface +// MockHookClient is a mock of HookClient interface. type MockHookClient struct { ctrl *gomock.Controller recorder *MockHookClientMockRecorder } -// MockHookClientMockRecorder is the mock recorder for MockHookClient +// MockHookClientMockRecorder is the mock recorder for MockHookClient. type MockHookClientMockRecorder struct { mock *MockHookClient } -// NewMockHookClient creates a new mock instance +// NewMockHookClient creates a new mock instance. func NewMockHookClient(ctrl *gomock.Controller) *MockHookClient { mock := &MockHookClient{ctrl: ctrl} mock.recorder = &MockHookClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockHookClient) EXPECT() *MockHookClientMockRecorder { return m.recorder } -// PollVCSEvents mocks base method +// PollVCSEvents mocks base method. func (m *MockHookClient) PollVCSEvents(uuid string, workflowID int64, vcsServer string, timestamp int64) (sdk.RepositoryEvents, time.Duration, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PollVCSEvents", uuid, workflowID, vcsServer, timestamp) @@ -3808,13 +3809,13 @@ func (m *MockHookClient) PollVCSEvents(uuid string, workflowID int64, vcsServer return ret0, ret1, ret2 } -// PollVCSEvents indicates an expected call of PollVCSEvents +// PollVCSEvents indicates an expected call of PollVCSEvents. func (mr *MockHookClientMockRecorder) PollVCSEvents(uuid, workflowID, vcsServer, timestamp interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PollVCSEvents", reflect.TypeOf((*MockHookClient)(nil).PollVCSEvents), uuid, workflowID, vcsServer, timestamp) } -// VCSConfiguration mocks base method +// VCSConfiguration mocks base method. func (m *MockHookClient) VCSConfiguration() (map[string]sdk.VCSConfiguration, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "VCSConfiguration") @@ -3823,36 +3824,36 @@ func (m *MockHookClient) VCSConfiguration() (map[string]sdk.VCSConfiguration, er return ret0, ret1 } -// VCSConfiguration indicates an expected call of VCSConfiguration +// VCSConfiguration indicates an expected call of VCSConfiguration. func (mr *MockHookClientMockRecorder) VCSConfiguration() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VCSConfiguration", reflect.TypeOf((*MockHookClient)(nil).VCSConfiguration)) } -// MockServiceClient is a mock of ServiceClient interface +// MockServiceClient is a mock of ServiceClient interface. type MockServiceClient struct { ctrl *gomock.Controller recorder *MockServiceClientMockRecorder } -// MockServiceClientMockRecorder is the mock recorder for MockServiceClient +// MockServiceClientMockRecorder is the mock recorder for MockServiceClient. type MockServiceClientMockRecorder struct { mock *MockServiceClient } -// NewMockServiceClient creates a new mock instance +// NewMockServiceClient creates a new mock instance. func NewMockServiceClient(ctrl *gomock.Controller) *MockServiceClient { mock := &MockServiceClient{ctrl: ctrl} mock.recorder = &MockServiceClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockServiceClient) EXPECT() *MockServiceClientMockRecorder { return m.recorder } -// ServiceConfigurationGet mocks base method +// ServiceConfigurationGet mocks base method. func (m *MockServiceClient) ServiceConfigurationGet(arg0 context.Context, arg1 string) ([]sdk.ServiceConfiguration, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ServiceConfigurationGet", arg0, arg1) @@ -3861,90 +3862,108 @@ func (m *MockServiceClient) ServiceConfigurationGet(arg0 context.Context, arg1 s return ret0, ret1 } -// ServiceConfigurationGet indicates an expected call of ServiceConfigurationGet +// ServiceConfigurationGet indicates an expected call of ServiceConfigurationGet. func (mr *MockServiceClientMockRecorder) ServiceConfigurationGet(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceConfigurationGet", reflect.TypeOf((*MockServiceClient)(nil).ServiceConfigurationGet), arg0, arg1) } -// MockWorkflowClient is a mock of WorkflowClient interface +// MockWorkflowClient is a mock of WorkflowClient interface. type MockWorkflowClient struct { ctrl *gomock.Controller recorder *MockWorkflowClientMockRecorder } -// MockWorkflowClientMockRecorder is the mock recorder for MockWorkflowClient +// MockWorkflowClientMockRecorder is the mock recorder for MockWorkflowClient. type MockWorkflowClientMockRecorder struct { mock *MockWorkflowClient } -// NewMockWorkflowClient creates a new mock instance +// NewMockWorkflowClient creates a new mock instance. func NewMockWorkflowClient(ctrl *gomock.Controller) *MockWorkflowClient { mock := &MockWorkflowClient{ctrl: ctrl} mock.recorder = &MockWorkflowClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockWorkflowClient) EXPECT() *MockWorkflowClientMockRecorder { return m.recorder } -// WorkflowSearch mocks base method -func (m *MockWorkflowClient) WorkflowSearch(opts ...cdsclient.RequestModifier) ([]sdk.Workflow, error) { +// WorkflowAccess mocks base method. +func (m *MockWorkflowClient) WorkflowAccess(ctx context.Context, projectKey string, workflowID int64, sessionID string, itemType sdk.CDNItemType) error { m.ctrl.T.Helper() - varargs := []interface{}{} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkflowSearch", varargs...) - ret0, _ := ret[0].([]sdk.Workflow) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "WorkflowAccess", ctx, projectKey, workflowID, sessionID, itemType) + ret0, _ := ret[0].(error) + return ret0 } -// WorkflowSearch indicates an expected call of WorkflowSearch -func (mr *MockWorkflowClientMockRecorder) WorkflowSearch(opts ...interface{}) *gomock.Call { +// WorkflowAccess indicates an expected call of WorkflowAccess. +func (mr *MockWorkflowClientMockRecorder) WorkflowAccess(ctx, projectKey, workflowID, sessionID, itemType interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowSearch", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowSearch), opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAccess", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowAccess), ctx, projectKey, workflowID, sessionID, itemType) } -// WorkflowRunsAndNodesIDs mocks base method -func (m *MockWorkflowClient) WorkflowRunsAndNodesIDs(projectkey string) ([]sdk.WorkflowNodeRunIdentifiers, error) { +// WorkflowAllHooksList mocks base method. +func (m *MockWorkflowClient) WorkflowAllHooksList() ([]sdk.NodeHook, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunsAndNodesIDs", projectkey) - ret0, _ := ret[0].([]sdk.WorkflowNodeRunIdentifiers) + ret := m.ctrl.Call(m, "WorkflowAllHooksList") + ret0, _ := ret[0].([]sdk.NodeHook) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowRunsAndNodesIDs indicates an expected call of WorkflowRunsAndNodesIDs -func (mr *MockWorkflowClientMockRecorder) WorkflowRunsAndNodesIDs(projectkey interface{}) *gomock.Call { +// WorkflowAllHooksList indicates an expected call of WorkflowAllHooksList. +func (mr *MockWorkflowClientMockRecorder) WorkflowAllHooksList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunsAndNodesIDs", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunsAndNodesIDs), projectkey) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAllHooksList", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowAllHooksList)) } -// WorkflowList mocks base method -func (m *MockWorkflowClient) WorkflowList(projectKey string, opts ...cdsclient.RequestModifier) ([]sdk.Workflow, error) { +// WorkflowCachePull mocks base method. +func (m *MockWorkflowClient) WorkflowCachePull(projectKey, integrationName, ref string) (io.Reader, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkflowList", varargs...) - ret0, _ := ret[0].([]sdk.Workflow) + ret := m.ctrl.Call(m, "WorkflowCachePull", projectKey, integrationName, ref) + ret0, _ := ret[0].(io.Reader) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowList indicates an expected call of WorkflowList -func (mr *MockWorkflowClientMockRecorder) WorkflowList(projectKey interface{}, opts ...interface{}) *gomock.Call { +// WorkflowCachePull indicates an expected call of WorkflowCachePull. +func (mr *MockWorkflowClientMockRecorder) WorkflowCachePull(projectKey, integrationName, ref interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowList", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowList), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowCachePull", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowCachePull), projectKey, integrationName, ref) +} + +// WorkflowCachePush mocks base method. +func (m *MockWorkflowClient) WorkflowCachePush(projectKey, integrationName, ref string, tarContent io.Reader, size int) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowCachePush", projectKey, integrationName, ref, tarContent, size) + ret0, _ := ret[0].(error) + return ret0 +} + +// WorkflowCachePush indicates an expected call of WorkflowCachePush. +func (mr *MockWorkflowClientMockRecorder) WorkflowCachePush(projectKey, integrationName, ref, tarContent, size interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowCachePush", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowCachePush), projectKey, integrationName, ref, tarContent, size) +} + +// WorkflowDelete mocks base method. +func (m *MockWorkflowClient) WorkflowDelete(projectKey, workflowName string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowDelete", projectKey, workflowName) + ret0, _ := ret[0].(error) + return ret0 +} + +// WorkflowDelete indicates an expected call of WorkflowDelete. +func (mr *MockWorkflowClientMockRecorder) WorkflowDelete(projectKey, workflowName interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowDelete", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowDelete), projectKey, workflowName) } -// WorkflowGet mocks base method +// WorkflowGet mocks base method. func (m *MockWorkflowClient) WorkflowGet(projectKey, name string, opts ...cdsclient.RequestModifier) (*sdk.Workflow, error) { m.ctrl.T.Helper() varargs := []interface{}{projectKey, name} @@ -3957,42 +3976,42 @@ func (m *MockWorkflowClient) WorkflowGet(projectKey, name string, opts ...cdscli return ret0, ret1 } -// WorkflowGet indicates an expected call of WorkflowGet +// WorkflowGet indicates an expected call of WorkflowGet. func (mr *MockWorkflowClientMockRecorder) WorkflowGet(projectKey, name interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{projectKey, name}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowGet", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowGet), varargs...) } -// WorkflowUpdate mocks base method -func (m *MockWorkflowClient) WorkflowUpdate(projectKey, name string, wf *sdk.Workflow) error { +// WorkflowGroupAdd mocks base method. +func (m *MockWorkflowClient) WorkflowGroupAdd(projectKey, name, groupName string, permission int) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowUpdate", projectKey, name, wf) + ret := m.ctrl.Call(m, "WorkflowGroupAdd", projectKey, name, groupName, permission) ret0, _ := ret[0].(error) return ret0 } -// WorkflowUpdate indicates an expected call of WorkflowUpdate -func (mr *MockWorkflowClientMockRecorder) WorkflowUpdate(projectKey, name, wf interface{}) *gomock.Call { +// WorkflowGroupAdd indicates an expected call of WorkflowGroupAdd. +func (mr *MockWorkflowClientMockRecorder) WorkflowGroupAdd(projectKey, name, groupName, permission interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowUpdate", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowUpdate), projectKey, name, wf) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowGroupAdd", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowGroupAdd), projectKey, name, groupName, permission) } -// WorkflowDelete mocks base method -func (m *MockWorkflowClient) WorkflowDelete(projectKey, workflowName string) error { +// WorkflowGroupDelete mocks base method. +func (m *MockWorkflowClient) WorkflowGroupDelete(projectKey, name, groupName string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowDelete", projectKey, workflowName) + ret := m.ctrl.Call(m, "WorkflowGroupDelete", projectKey, name, groupName) ret0, _ := ret[0].(error) return ret0 } -// WorkflowDelete indicates an expected call of WorkflowDelete -func (mr *MockWorkflowClientMockRecorder) WorkflowDelete(projectKey, workflowName interface{}) *gomock.Call { +// WorkflowGroupDelete indicates an expected call of WorkflowGroupDelete. +func (mr *MockWorkflowClientMockRecorder) WorkflowGroupDelete(projectKey, name, groupName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowDelete", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowDelete), projectKey, workflowName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowGroupDelete", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowGroupDelete), projectKey, name, groupName) } -// WorkflowLabelAdd mocks base method +// WorkflowLabelAdd mocks base method. func (m *MockWorkflowClient) WorkflowLabelAdd(projectKey, name, labelName string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowLabelAdd", projectKey, name, labelName) @@ -4000,13 +4019,13 @@ func (m *MockWorkflowClient) WorkflowLabelAdd(projectKey, name, labelName string return ret0 } -// WorkflowLabelAdd indicates an expected call of WorkflowLabelAdd +// WorkflowLabelAdd indicates an expected call of WorkflowLabelAdd. func (mr *MockWorkflowClientMockRecorder) WorkflowLabelAdd(projectKey, name, labelName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowLabelAdd", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowLabelAdd), projectKey, name, labelName) } -// WorkflowLabelDelete mocks base method +// WorkflowLabelDelete mocks base method. func (m *MockWorkflowClient) WorkflowLabelDelete(projectKey, name string, labelID int64) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowLabelDelete", projectKey, name, labelID) @@ -4014,120 +4033,181 @@ func (m *MockWorkflowClient) WorkflowLabelDelete(projectKey, name string, labelI return ret0 } -// WorkflowLabelDelete indicates an expected call of WorkflowLabelDelete +// WorkflowLabelDelete indicates an expected call of WorkflowLabelDelete. func (mr *MockWorkflowClientMockRecorder) WorkflowLabelDelete(projectKey, name, labelID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowLabelDelete", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowLabelDelete), projectKey, name, labelID) } -// WorkflowGroupAdd mocks base method -func (m *MockWorkflowClient) WorkflowGroupAdd(projectKey, name, groupName string, permission int) error { +// WorkflowList mocks base method. +func (m *MockWorkflowClient) WorkflowList(projectKey string, opts ...cdsclient.RequestModifier) ([]sdk.Workflow, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowGroupAdd", projectKey, name, groupName, permission) - ret0, _ := ret[0].(error) - return ret0 + varargs := []interface{}{projectKey} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowList", varargs...) + ret0, _ := ret[0].([]sdk.Workflow) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// WorkflowGroupAdd indicates an expected call of WorkflowGroupAdd -func (mr *MockWorkflowClientMockRecorder) WorkflowGroupAdd(projectKey, name, groupName, permission interface{}) *gomock.Call { +// WorkflowList indicates an expected call of WorkflowList. +func (mr *MockWorkflowClientMockRecorder) WorkflowList(projectKey interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowGroupAdd", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowGroupAdd), projectKey, name, groupName, permission) + varargs := append([]interface{}{projectKey}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowList", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowList), varargs...) } -// WorkflowGroupDelete mocks base method -func (m *MockWorkflowClient) WorkflowGroupDelete(projectKey, name, groupName string) error { +// WorkflowLogDownload mocks base method. +func (m *MockWorkflowClient) WorkflowLogDownload(ctx context.Context, link sdk.CDNLogLink) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowGroupDelete", projectKey, name, groupName) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "WorkflowLogDownload", ctx, link) + ret0, _ := ret[0].([]byte) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// WorkflowGroupDelete indicates an expected call of WorkflowGroupDelete -func (mr *MockWorkflowClientMockRecorder) WorkflowGroupDelete(projectKey, name, groupName interface{}) *gomock.Call { +// WorkflowLogDownload indicates an expected call of WorkflowLogDownload. +func (mr *MockWorkflowClientMockRecorder) WorkflowLogDownload(ctx, link interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowGroupDelete", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowGroupDelete), projectKey, name, groupName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowLogDownload", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowLogDownload), ctx, link) } -// WorkflowRunGet mocks base method -func (m *MockWorkflowClient) WorkflowRunGet(projectKey, workflowName string, number int64) (*sdk.WorkflowRun, error) { +// WorkflowNodeRun mocks base method. +func (m *MockWorkflowClient) WorkflowNodeRun(projectKey, name string, number, nodeRunID int64) (*sdk.WorkflowNodeRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunGet", projectKey, workflowName, number) - ret0, _ := ret[0].(*sdk.WorkflowRun) + ret := m.ctrl.Call(m, "WorkflowNodeRun", projectKey, name, number, nodeRunID) + ret0, _ := ret[0].(*sdk.WorkflowNodeRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowRunGet indicates an expected call of WorkflowRunGet -func (mr *MockWorkflowClientMockRecorder) WorkflowRunGet(projectKey, workflowName, number interface{}) *gomock.Call { +// WorkflowNodeRun indicates an expected call of WorkflowNodeRun. +func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRun(projectKey, name, number, nodeRunID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunGet", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunGet), projectKey, workflowName, number) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRun", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRun), projectKey, name, number, nodeRunID) } -// WorkflowRunsDeleteByBranch mocks base method -func (m *MockWorkflowClient) WorkflowRunsDeleteByBranch(projectKey, workflowName, branch string) error { +// WorkflowNodeRunArtifactDownload mocks base method. +func (m *MockWorkflowClient) WorkflowNodeRunArtifactDownload(projectKey, name string, a sdk.WorkflowNodeRunArtifact, w io.Writer) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunsDeleteByBranch", projectKey, workflowName, branch) + ret := m.ctrl.Call(m, "WorkflowNodeRunArtifactDownload", projectKey, name, a, w) ret0, _ := ret[0].(error) return ret0 } -// WorkflowRunsDeleteByBranch indicates an expected call of WorkflowRunsDeleteByBranch -func (mr *MockWorkflowClientMockRecorder) WorkflowRunsDeleteByBranch(projectKey, workflowName, branch interface{}) *gomock.Call { +// WorkflowNodeRunArtifactDownload indicates an expected call of WorkflowNodeRunArtifactDownload. +func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunArtifactDownload(projectKey, name, a, w interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunsDeleteByBranch", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunsDeleteByBranch), projectKey, workflowName, branch) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunArtifactDownload", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunArtifactDownload), projectKey, name, a, w) } -// WorkflowRunResync mocks base method -func (m *MockWorkflowClient) WorkflowRunResync(projectKey, workflowName string, number int64) (*sdk.WorkflowRun, error) { +// WorkflowNodeRunJobServiceLink mocks base method. +func (m *MockWorkflowClient) WorkflowNodeRunJobServiceLink(ctx context.Context, projectKey, workflowName string, nodeRunID, job int64, serviceName string) (*sdk.CDNLogLink, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunResync", projectKey, workflowName, number) - ret0, _ := ret[0].(*sdk.WorkflowRun) + ret := m.ctrl.Call(m, "WorkflowNodeRunJobServiceLink", ctx, projectKey, workflowName, nodeRunID, job, serviceName) + ret0, _ := ret[0].(*sdk.CDNLogLink) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowRunResync indicates an expected call of WorkflowRunResync -func (mr *MockWorkflowClientMockRecorder) WorkflowRunResync(projectKey, workflowName, number interface{}) *gomock.Call { +// WorkflowNodeRunJobServiceLink indicates an expected call of WorkflowNodeRunJobServiceLink. +func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunJobServiceLink(ctx, projectKey, workflowName, nodeRunID, job, serviceName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunResync", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunResync), projectKey, workflowName, number) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobServiceLink", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunJobServiceLink), ctx, projectKey, workflowName, nodeRunID, job, serviceName) } -// WorkflowRunSearch mocks base method -func (m *MockWorkflowClient) WorkflowRunSearch(projectKey string, offset, limit int64, filter ...cdsclient.Filter) ([]sdk.WorkflowRun, error) { +// WorkflowNodeRunJobServiceLog mocks base method. +func (m *MockWorkflowClient) WorkflowNodeRunJobServiceLog(ctx context.Context, projectKey, workflowName string, nodeRunID, job int64, serviceName string) (*sdk.ServiceLog, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, offset, limit} - for _, a := range filter { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkflowRunSearch", varargs...) - ret0, _ := ret[0].([]sdk.WorkflowRun) + ret := m.ctrl.Call(m, "WorkflowNodeRunJobServiceLog", ctx, projectKey, workflowName, nodeRunID, job, serviceName) + ret0, _ := ret[0].(*sdk.ServiceLog) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowRunSearch indicates an expected call of WorkflowRunSearch -func (mr *MockWorkflowClientMockRecorder) WorkflowRunSearch(projectKey, offset, limit interface{}, filter ...interface{}) *gomock.Call { +// WorkflowNodeRunJobServiceLog indicates an expected call of WorkflowNodeRunJobServiceLog. +func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunJobServiceLog(ctx, projectKey, workflowName, nodeRunID, job, serviceName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, offset, limit}, filter...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunSearch", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunSearch), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobServiceLog", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunJobServiceLog), ctx, projectKey, workflowName, nodeRunID, job, serviceName) } -// WorkflowRunList mocks base method -func (m *MockWorkflowClient) WorkflowRunList(projectKey, workflowName string, offset, limit int64) ([]sdk.WorkflowRun, error) { +// WorkflowNodeRunJobStepLink mocks base method. +func (m *MockWorkflowClient) WorkflowNodeRunJobStepLink(ctx context.Context, projectKey, workflowName string, nodeRunID, job, step int64) (*sdk.CDNLogLink, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunList", projectKey, workflowName, offset, limit) - ret0, _ := ret[0].([]sdk.WorkflowRun) + ret := m.ctrl.Call(m, "WorkflowNodeRunJobStepLink", ctx, projectKey, workflowName, nodeRunID, job, step) + ret0, _ := ret[0].(*sdk.CDNLogLink) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowRunList indicates an expected call of WorkflowRunList -func (mr *MockWorkflowClientMockRecorder) WorkflowRunList(projectKey, workflowName, offset, limit interface{}) *gomock.Call { +// WorkflowNodeRunJobStepLink indicates an expected call of WorkflowNodeRunJobStepLink. +func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunJobStepLink(ctx, projectKey, workflowName, nodeRunID, job, step interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunList", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunList), projectKey, workflowName, offset, limit) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobStepLink", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunJobStepLink), ctx, projectKey, workflowName, nodeRunID, job, step) +} + +// WorkflowNodeRunJobStepLinks mocks base method. +func (m *MockWorkflowClient) WorkflowNodeRunJobStepLinks(ctx context.Context, projectKey, workflowName string, nodeRunID, job int64) (*sdk.CDNLogLinks, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowNodeRunJobStepLinks", ctx, projectKey, workflowName, nodeRunID, job) + ret0, _ := ret[0].(*sdk.CDNLogLinks) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkflowNodeRunJobStepLinks indicates an expected call of WorkflowNodeRunJobStepLinks. +func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunJobStepLinks(ctx, projectKey, workflowName, nodeRunID, job interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobStepLinks", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunJobStepLinks), ctx, projectKey, workflowName, nodeRunID, job) +} + +// WorkflowNodeRunJobStepLog mocks base method. +func (m *MockWorkflowClient) WorkflowNodeRunJobStepLog(ctx context.Context, projectKey, workflowName string, nodeRunID, job, step int64) (*sdk.BuildState, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowNodeRunJobStepLog", ctx, projectKey, workflowName, nodeRunID, job, step) + ret0, _ := ret[0].(*sdk.BuildState) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkflowNodeRunJobStepLog indicates an expected call of WorkflowNodeRunJobStepLog. +func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunJobStepLog(ctx, projectKey, workflowName, nodeRunID, job, step interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobStepLog", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunJobStepLog), ctx, projectKey, workflowName, nodeRunID, job, step) +} + +// WorkflowNodeRunRelease mocks base method. +func (m *MockWorkflowClient) WorkflowNodeRunRelease(projectKey, workflowName string, runNumber, nodeRunID int64, release sdk.WorkflowNodeRunRelease) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowNodeRunRelease", projectKey, workflowName, runNumber, nodeRunID, release) + ret0, _ := ret[0].(error) + return ret0 +} + +// WorkflowNodeRunRelease indicates an expected call of WorkflowNodeRunRelease. +func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunRelease(projectKey, workflowName, runNumber, nodeRunID, release interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunRelease", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunRelease), projectKey, workflowName, runNumber, nodeRunID, release) +} + +// WorkflowNodeStop mocks base method. +func (m *MockWorkflowClient) WorkflowNodeStop(projectKey, workflowName string, number, fromNodeID int64) (*sdk.WorkflowNodeRun, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowNodeStop", projectKey, workflowName, number, fromNodeID) + ret0, _ := ret[0].(*sdk.WorkflowNodeRun) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkflowNodeStop indicates an expected call of WorkflowNodeStop. +func (mr *MockWorkflowClientMockRecorder) WorkflowNodeStop(projectKey, workflowName, number, fromNodeID interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeStop", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeStop), projectKey, workflowName, number, fromNodeID) } -// WorkflowRunArtifacts mocks base method +// WorkflowRunArtifacts mocks base method. func (m *MockWorkflowClient) WorkflowRunArtifacts(projectKey, name string, number int64) ([]sdk.WorkflowNodeRunArtifact, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowRunArtifacts", projectKey, name, number) @@ -4136,13 +4216,13 @@ func (m *MockWorkflowClient) WorkflowRunArtifacts(projectKey, name string, numbe return ret0, ret1 } -// WorkflowRunArtifacts indicates an expected call of WorkflowRunArtifacts +// WorkflowRunArtifacts indicates an expected call of WorkflowRunArtifacts. func (mr *MockWorkflowClientMockRecorder) WorkflowRunArtifacts(projectKey, name, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunArtifacts", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunArtifacts), projectKey, name, number) } -// WorkflowRunArtifactsLinks mocks base method +// WorkflowRunArtifactsLinks mocks base method. func (m *MockWorkflowClient) WorkflowRunArtifactsLinks(projectKey, name string, number int64) (sdk.CDNItemLinks, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowRunArtifactsLinks", projectKey, name, number) @@ -4151,28 +4231,13 @@ func (m *MockWorkflowClient) WorkflowRunArtifactsLinks(projectKey, name string, return ret0, ret1 } -// WorkflowRunArtifactsLinks indicates an expected call of WorkflowRunArtifactsLinks +// WorkflowRunArtifactsLinks indicates an expected call of WorkflowRunArtifactsLinks. func (mr *MockWorkflowClientMockRecorder) WorkflowRunArtifactsLinks(projectKey, name, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunArtifactsLinks", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunArtifactsLinks), projectKey, name, number) } -// WorkflowRunResultsList mocks base method -func (m *MockWorkflowClient) WorkflowRunResultsList(ctx context.Context, projectKey, name string, number int64) ([]sdk.WorkflowRunResult, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunResultsList", ctx, projectKey, name, number) - ret0, _ := ret[0].([]sdk.WorkflowRunResult) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkflowRunResultsList indicates an expected call of WorkflowRunResultsList -func (mr *MockWorkflowClientMockRecorder) WorkflowRunResultsList(ctx, projectKey, name, number interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunResultsList", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunResultsList), ctx, projectKey, name, number) -} - -// WorkflowRunFromHook mocks base method +// WorkflowRunFromHook mocks base method. func (m *MockWorkflowClient) WorkflowRunFromHook(projectKey, workflowName string, hook sdk.WorkflowNodeRunHookEvent) (*sdk.WorkflowRun, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowRunFromHook", projectKey, workflowName, hook) @@ -4181,13 +4246,13 @@ func (m *MockWorkflowClient) WorkflowRunFromHook(projectKey, workflowName string return ret0, ret1 } -// WorkflowRunFromHook indicates an expected call of WorkflowRunFromHook +// WorkflowRunFromHook indicates an expected call of WorkflowRunFromHook. func (mr *MockWorkflowClientMockRecorder) WorkflowRunFromHook(projectKey, workflowName, hook interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunFromHook", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunFromHook), projectKey, workflowName, hook) } -// WorkflowRunFromManual mocks base method +// WorkflowRunFromManual mocks base method. func (m *MockWorkflowClient) WorkflowRunFromManual(projectKey, workflowName string, manual sdk.WorkflowNodeRunManual, number, fromNodeID int64) (*sdk.WorkflowRun, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowRunFromManual", projectKey, workflowName, manual, number, fromNodeID) @@ -4196,13 +4261,43 @@ func (m *MockWorkflowClient) WorkflowRunFromManual(projectKey, workflowName stri return ret0, ret1 } -// WorkflowRunFromManual indicates an expected call of WorkflowRunFromManual +// WorkflowRunFromManual indicates an expected call of WorkflowRunFromManual. func (mr *MockWorkflowClientMockRecorder) WorkflowRunFromManual(projectKey, workflowName, manual, number, fromNodeID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunFromManual", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunFromManual), projectKey, workflowName, manual, number, fromNodeID) } -// WorkflowRunNumberGet mocks base method +// WorkflowRunGet mocks base method. +func (m *MockWorkflowClient) WorkflowRunGet(projectKey, workflowName string, number int64) (*sdk.WorkflowRun, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowRunGet", projectKey, workflowName, number) + ret0, _ := ret[0].(*sdk.WorkflowRun) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkflowRunGet indicates an expected call of WorkflowRunGet. +func (mr *MockWorkflowClientMockRecorder) WorkflowRunGet(projectKey, workflowName, number interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunGet", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunGet), projectKey, workflowName, number) +} + +// WorkflowRunList mocks base method. +func (m *MockWorkflowClient) WorkflowRunList(projectKey, workflowName string, offset, limit int64) ([]sdk.WorkflowRun, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowRunList", projectKey, workflowName, offset, limit) + ret0, _ := ret[0].([]sdk.WorkflowRun) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkflowRunList indicates an expected call of WorkflowRunList. +func (mr *MockWorkflowClientMockRecorder) WorkflowRunList(projectKey, workflowName, offset, limit interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunList", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunList), projectKey, workflowName, offset, limit) +} + +// WorkflowRunNumberGet mocks base method. func (m *MockWorkflowClient) WorkflowRunNumberGet(projectKey, workflowName string) (*sdk.WorkflowRunNumber, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowRunNumberGet", projectKey, workflowName) @@ -4211,13 +4306,13 @@ func (m *MockWorkflowClient) WorkflowRunNumberGet(projectKey, workflowName strin return ret0, ret1 } -// WorkflowRunNumberGet indicates an expected call of WorkflowRunNumberGet +// WorkflowRunNumberGet indicates an expected call of WorkflowRunNumberGet. func (mr *MockWorkflowClientMockRecorder) WorkflowRunNumberGet(projectKey, workflowName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunNumberGet", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunNumberGet), projectKey, workflowName) } -// WorkflowRunNumberSet mocks base method +// WorkflowRunNumberSet mocks base method. func (m *MockWorkflowClient) WorkflowRunNumberSet(projectKey, workflowName string, number int64) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowRunNumberSet", projectKey, workflowName, number) @@ -4225,370 +4320,289 @@ func (m *MockWorkflowClient) WorkflowRunNumberSet(projectKey, workflowName strin return ret0 } -// WorkflowRunNumberSet indicates an expected call of WorkflowRunNumberSet +// WorkflowRunNumberSet indicates an expected call of WorkflowRunNumberSet. func (mr *MockWorkflowClientMockRecorder) WorkflowRunNumberSet(projectKey, workflowName, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunNumberSet", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunNumberSet), projectKey, workflowName, number) } -// WorkflowStop mocks base method -func (m *MockWorkflowClient) WorkflowStop(projectKey, workflowName string, number int64) (*sdk.WorkflowRun, error) { +// WorkflowRunResultsList mocks base method. +func (m *MockWorkflowClient) WorkflowRunResultsList(ctx context.Context, projectKey, name string, number int64) ([]sdk.WorkflowRunResult, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowStop", projectKey, workflowName, number) + ret := m.ctrl.Call(m, "WorkflowRunResultsList", ctx, projectKey, name, number) + ret0, _ := ret[0].([]sdk.WorkflowRunResult) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkflowRunResultsList indicates an expected call of WorkflowRunResultsList. +func (mr *MockWorkflowClientMockRecorder) WorkflowRunResultsList(ctx, projectKey, name, number interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunResultsList", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunResultsList), ctx, projectKey, name, number) +} + +// WorkflowRunResync mocks base method. +func (m *MockWorkflowClient) WorkflowRunResync(projectKey, workflowName string, number int64) (*sdk.WorkflowRun, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowRunResync", projectKey, workflowName, number) ret0, _ := ret[0].(*sdk.WorkflowRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowStop indicates an expected call of WorkflowStop -func (mr *MockWorkflowClientMockRecorder) WorkflowStop(projectKey, workflowName, number interface{}) *gomock.Call { +// WorkflowRunResync indicates an expected call of WorkflowRunResync. +func (mr *MockWorkflowClientMockRecorder) WorkflowRunResync(projectKey, workflowName, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowStop", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowStop), projectKey, workflowName, number) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunResync", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunResync), projectKey, workflowName, number) } -// WorkflowNodeStop mocks base method -func (m *MockWorkflowClient) WorkflowNodeStop(projectKey, workflowName string, number, fromNodeID int64) (*sdk.WorkflowNodeRun, error) { +// WorkflowRunSearch mocks base method. +func (m *MockWorkflowClient) WorkflowRunSearch(projectKey string, offset, limit int64, filter ...cdsclient.Filter) ([]sdk.WorkflowRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeStop", projectKey, workflowName, number, fromNodeID) - ret0, _ := ret[0].(*sdk.WorkflowNodeRun) + varargs := []interface{}{projectKey, offset, limit} + for _, a := range filter { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowRunSearch", varargs...) + ret0, _ := ret[0].([]sdk.WorkflowRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowNodeStop indicates an expected call of WorkflowNodeStop -func (mr *MockWorkflowClientMockRecorder) WorkflowNodeStop(projectKey, workflowName, number, fromNodeID interface{}) *gomock.Call { +// WorkflowRunSearch indicates an expected call of WorkflowRunSearch. +func (mr *MockWorkflowClientMockRecorder) WorkflowRunSearch(projectKey, offset, limit interface{}, filter ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeStop", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeStop), projectKey, workflowName, number, fromNodeID) + varargs := append([]interface{}{projectKey, offset, limit}, filter...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunSearch", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunSearch), varargs...) } -// WorkflowNodeRun mocks base method -func (m *MockWorkflowClient) WorkflowNodeRun(projectKey, name string, number, nodeRunID int64) (*sdk.WorkflowNodeRun, error) { +// WorkflowRunsAndNodesIDs mocks base method. +func (m *MockWorkflowClient) WorkflowRunsAndNodesIDs(projectkey string) ([]sdk.WorkflowNodeRunIdentifiers, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeRun", projectKey, name, number, nodeRunID) - ret0, _ := ret[0].(*sdk.WorkflowNodeRun) + ret := m.ctrl.Call(m, "WorkflowRunsAndNodesIDs", projectkey) + ret0, _ := ret[0].([]sdk.WorkflowNodeRunIdentifiers) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowNodeRun indicates an expected call of WorkflowNodeRun -func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRun(projectKey, name, number, nodeRunID interface{}) *gomock.Call { +// WorkflowRunsAndNodesIDs indicates an expected call of WorkflowRunsAndNodesIDs. +func (mr *MockWorkflowClientMockRecorder) WorkflowRunsAndNodesIDs(projectkey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRun", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRun), projectKey, name, number, nodeRunID) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunsAndNodesIDs", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunsAndNodesIDs), projectkey) } -// WorkflowNodeRunArtifactDownload mocks base method -func (m *MockWorkflowClient) WorkflowNodeRunArtifactDownload(projectKey, name string, a sdk.WorkflowNodeRunArtifact, w io.Writer) error { +// WorkflowRunsDeleteByBranch mocks base method. +func (m *MockWorkflowClient) WorkflowRunsDeleteByBranch(projectKey, workflowName, branch string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeRunArtifactDownload", projectKey, name, a, w) + ret := m.ctrl.Call(m, "WorkflowRunsDeleteByBranch", projectKey, workflowName, branch) ret0, _ := ret[0].(error) return ret0 } -// WorkflowNodeRunArtifactDownload indicates an expected call of WorkflowNodeRunArtifactDownload -func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunArtifactDownload(projectKey, name, a, w interface{}) *gomock.Call { +// WorkflowRunsDeleteByBranch indicates an expected call of WorkflowRunsDeleteByBranch. +func (mr *MockWorkflowClientMockRecorder) WorkflowRunsDeleteByBranch(projectKey, workflowName, branch interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunArtifactDownload", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunArtifactDownload), projectKey, name, a, w) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunsDeleteByBranch", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowRunsDeleteByBranch), projectKey, workflowName, branch) } -// WorkflowNodeRunJobStepLinks mocks base method -func (m *MockWorkflowClient) WorkflowNodeRunJobStepLinks(ctx context.Context, projectKey, workflowName string, nodeRunID, job int64) (*sdk.CDNLogLinks, error) { +// WorkflowSearch mocks base method. +func (m *MockWorkflowClient) WorkflowSearch(opts ...cdsclient.RequestModifier) ([]sdk.Workflow, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeRunJobStepLinks", ctx, projectKey, workflowName, nodeRunID, job) - ret0, _ := ret[0].(*sdk.CDNLogLinks) + varargs := []interface{}{} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowSearch", varargs...) + ret0, _ := ret[0].([]sdk.Workflow) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowNodeRunJobStepLinks indicates an expected call of WorkflowNodeRunJobStepLinks -func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunJobStepLinks(ctx, projectKey, workflowName, nodeRunID, job interface{}) *gomock.Call { +// WorkflowSearch indicates an expected call of WorkflowSearch. +func (mr *MockWorkflowClientMockRecorder) WorkflowSearch(opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobStepLinks", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunJobStepLinks), ctx, projectKey, workflowName, nodeRunID, job) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowSearch", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowSearch), opts...) } -// WorkflowNodeRunJobStepLink mocks base method -func (m *MockWorkflowClient) WorkflowNodeRunJobStepLink(ctx context.Context, projectKey, workflowName string, nodeRunID, job, step int64) (*sdk.CDNLogLink, error) { +// WorkflowStop mocks base method. +func (m *MockWorkflowClient) WorkflowStop(projectKey, workflowName string, number int64) (*sdk.WorkflowRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeRunJobStepLink", ctx, projectKey, workflowName, nodeRunID, job, step) - ret0, _ := ret[0].(*sdk.CDNLogLink) + ret := m.ctrl.Call(m, "WorkflowStop", projectKey, workflowName, number) + ret0, _ := ret[0].(*sdk.WorkflowRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowNodeRunJobStepLink indicates an expected call of WorkflowNodeRunJobStepLink -func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunJobStepLink(ctx, projectKey, workflowName, nodeRunID, job, step interface{}) *gomock.Call { +// WorkflowStop indicates an expected call of WorkflowStop. +func (mr *MockWorkflowClientMockRecorder) WorkflowStop(projectKey, workflowName, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobStepLink", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunJobStepLink), ctx, projectKey, workflowName, nodeRunID, job, step) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowStop", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowStop), projectKey, workflowName, number) } -// WorkflowNodeRunJobStepLog mocks base method -func (m *MockWorkflowClient) WorkflowNodeRunJobStepLog(ctx context.Context, projectKey, workflowName string, nodeRunID, job, step int64) (*sdk.BuildState, error) { +// WorkflowTransformAsCode mocks base method. +func (m *MockWorkflowClient) WorkflowTransformAsCode(projectKey, workflowName, branch, message string) (*sdk.Operation, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeRunJobStepLog", ctx, projectKey, workflowName, nodeRunID, job, step) - ret0, _ := ret[0].(*sdk.BuildState) + ret := m.ctrl.Call(m, "WorkflowTransformAsCode", projectKey, workflowName, branch, message) + ret0, _ := ret[0].(*sdk.Operation) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowNodeRunJobStepLog indicates an expected call of WorkflowNodeRunJobStepLog -func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunJobStepLog(ctx, projectKey, workflowName, nodeRunID, job, step interface{}) *gomock.Call { +// WorkflowTransformAsCode indicates an expected call of WorkflowTransformAsCode. +func (mr *MockWorkflowClientMockRecorder) WorkflowTransformAsCode(projectKey, workflowName, branch, message interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobStepLog", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunJobStepLog), ctx, projectKey, workflowName, nodeRunID, job, step) -} - -// WorkflowNodeRunJobServiceLink mocks base method -func (m *MockWorkflowClient) WorkflowNodeRunJobServiceLink(ctx context.Context, projectKey, workflowName string, nodeRunID, job int64, serviceName string) (*sdk.CDNLogLink, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeRunJobServiceLink", ctx, projectKey, workflowName, nodeRunID, job, serviceName) - ret0, _ := ret[0].(*sdk.CDNLogLink) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkflowNodeRunJobServiceLink indicates an expected call of WorkflowNodeRunJobServiceLink -func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunJobServiceLink(ctx, projectKey, workflowName, nodeRunID, job, serviceName interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobServiceLink", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunJobServiceLink), ctx, projectKey, workflowName, nodeRunID, job, serviceName) -} - -// WorkflowNodeRunJobServiceLog mocks base method -func (m *MockWorkflowClient) WorkflowNodeRunJobServiceLog(ctx context.Context, projectKey, workflowName string, nodeRunID, job int64, serviceName string) (*sdk.ServiceLog, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeRunJobServiceLog", ctx, projectKey, workflowName, nodeRunID, job, serviceName) - ret0, _ := ret[0].(*sdk.ServiceLog) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkflowNodeRunJobServiceLog indicates an expected call of WorkflowNodeRunJobServiceLog -func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunJobServiceLog(ctx, projectKey, workflowName, nodeRunID, job, serviceName interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobServiceLog", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunJobServiceLog), ctx, projectKey, workflowName, nodeRunID, job, serviceName) -} - -// WorkflowAccess mocks base method -func (m *MockWorkflowClient) WorkflowAccess(ctx context.Context, projectKey string, workflowID int64, sessionID string, itemType sdk.CDNItemType) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowAccess", ctx, projectKey, workflowID, sessionID, itemType) - ret0, _ := ret[0].(error) - return ret0 -} - -// WorkflowAccess indicates an expected call of WorkflowAccess -func (mr *MockWorkflowClientMockRecorder) WorkflowAccess(ctx, projectKey, workflowID, sessionID, itemType interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAccess", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowAccess), ctx, projectKey, workflowID, sessionID, itemType) -} - -// WorkflowLogDownload mocks base method -func (m *MockWorkflowClient) WorkflowLogDownload(ctx context.Context, link sdk.CDNLogLink) ([]byte, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowLogDownload", ctx, link) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkflowLogDownload indicates an expected call of WorkflowLogDownload -func (mr *MockWorkflowClientMockRecorder) WorkflowLogDownload(ctx, link interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowLogDownload", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowLogDownload), ctx, link) -} - -// WorkflowNodeRunRelease mocks base method -func (m *MockWorkflowClient) WorkflowNodeRunRelease(projectKey, workflowName string, runNumber, nodeRunID int64, release sdk.WorkflowNodeRunRelease) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeRunRelease", projectKey, workflowName, runNumber, nodeRunID, release) - ret0, _ := ret[0].(error) - return ret0 -} - -// WorkflowNodeRunRelease indicates an expected call of WorkflowNodeRunRelease -func (mr *MockWorkflowClientMockRecorder) WorkflowNodeRunRelease(projectKey, workflowName, runNumber, nodeRunID, release interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunRelease", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowNodeRunRelease), projectKey, workflowName, runNumber, nodeRunID, release) -} - -// WorkflowAllHooksList mocks base method -func (m *MockWorkflowClient) WorkflowAllHooksList() ([]sdk.NodeHook, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowAllHooksList") - ret0, _ := ret[0].([]sdk.NodeHook) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkflowAllHooksList indicates an expected call of WorkflowAllHooksList -func (mr *MockWorkflowClientMockRecorder) WorkflowAllHooksList() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAllHooksList", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowAllHooksList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowTransformAsCode", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowTransformAsCode), projectKey, workflowName, branch, message) } -// WorkflowCachePush mocks base method -func (m *MockWorkflowClient) WorkflowCachePush(projectKey, integrationName, ref string, tarContent io.Reader, size int) error { +// WorkflowUpdate mocks base method. +func (m *MockWorkflowClient) WorkflowUpdate(projectKey, name string, wf *sdk.Workflow) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowCachePush", projectKey, integrationName, ref, tarContent, size) + ret := m.ctrl.Call(m, "WorkflowUpdate", projectKey, name, wf) ret0, _ := ret[0].(error) return ret0 } -// WorkflowCachePush indicates an expected call of WorkflowCachePush -func (mr *MockWorkflowClientMockRecorder) WorkflowCachePush(projectKey, integrationName, ref, tarContent, size interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowCachePush", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowCachePush), projectKey, integrationName, ref, tarContent, size) -} - -// WorkflowCachePull mocks base method -func (m *MockWorkflowClient) WorkflowCachePull(projectKey, integrationName, ref string) (io.Reader, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowCachePull", projectKey, integrationName, ref) - ret0, _ := ret[0].(io.Reader) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkflowCachePull indicates an expected call of WorkflowCachePull -func (mr *MockWorkflowClientMockRecorder) WorkflowCachePull(projectKey, integrationName, ref interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowCachePull", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowCachePull), projectKey, integrationName, ref) -} - -// WorkflowTransformAsCode mocks base method -func (m *MockWorkflowClient) WorkflowTransformAsCode(projectKey, workflowName, branch, message string) (*sdk.Operation, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowTransformAsCode", projectKey, workflowName, branch, message) - ret0, _ := ret[0].(*sdk.Operation) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkflowTransformAsCode indicates an expected call of WorkflowTransformAsCode -func (mr *MockWorkflowClientMockRecorder) WorkflowTransformAsCode(projectKey, workflowName, branch, message interface{}) *gomock.Call { +// WorkflowUpdate indicates an expected call of WorkflowUpdate. +func (mr *MockWorkflowClientMockRecorder) WorkflowUpdate(projectKey, name, wf interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowTransformAsCode", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowTransformAsCode), projectKey, workflowName, branch, message) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowUpdate", reflect.TypeOf((*MockWorkflowClient)(nil).WorkflowUpdate), projectKey, name, wf) } -// MockMonitoringClient is a mock of MonitoringClient interface +// MockMonitoringClient is a mock of MonitoringClient interface. type MockMonitoringClient struct { ctrl *gomock.Controller recorder *MockMonitoringClientMockRecorder } -// MockMonitoringClientMockRecorder is the mock recorder for MockMonitoringClient +// MockMonitoringClientMockRecorder is the mock recorder for MockMonitoringClient. type MockMonitoringClientMockRecorder struct { mock *MockMonitoringClient } -// NewMockMonitoringClient creates a new mock instance +// NewMockMonitoringClient creates a new mock instance. func NewMockMonitoringClient(ctrl *gomock.Controller) *MockMonitoringClient { mock := &MockMonitoringClient{ctrl: ctrl} mock.recorder = &MockMonitoringClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockMonitoringClient) EXPECT() *MockMonitoringClientMockRecorder { return m.recorder } -// MonStatus mocks base method -func (m *MockMonitoringClient) MonStatus() (*sdk.MonitoringStatus, error) { +// MonDBMigrate mocks base method. +func (m *MockMonitoringClient) MonDBMigrate() ([]sdk.MonDBMigrate, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MonStatus") - ret0, _ := ret[0].(*sdk.MonitoringStatus) + ret := m.ctrl.Call(m, "MonDBMigrate") + ret0, _ := ret[0].([]sdk.MonDBMigrate) ret1, _ := ret[1].(error) return ret0, ret1 } -// MonStatus indicates an expected call of MonStatus -func (mr *MockMonitoringClientMockRecorder) MonStatus() *gomock.Call { +// MonDBMigrate indicates an expected call of MonDBMigrate. +func (mr *MockMonitoringClientMockRecorder) MonDBMigrate() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonStatus", reflect.TypeOf((*MockMonitoringClient)(nil).MonStatus)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonDBMigrate", reflect.TypeOf((*MockMonitoringClient)(nil).MonDBMigrate)) } -// MonVersion mocks base method -func (m *MockMonitoringClient) MonVersion() (*sdk.Version, error) { +// MonErrorsGet mocks base method. +func (m *MockMonitoringClient) MonErrorsGet(requestID string) ([]sdk.Error, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MonVersion") - ret0, _ := ret[0].(*sdk.Version) + ret := m.ctrl.Call(m, "MonErrorsGet", requestID) + ret0, _ := ret[0].([]sdk.Error) ret1, _ := ret[1].(error) return ret0, ret1 } -// MonVersion indicates an expected call of MonVersion -func (mr *MockMonitoringClientMockRecorder) MonVersion() *gomock.Call { +// MonErrorsGet indicates an expected call of MonErrorsGet. +func (mr *MockMonitoringClientMockRecorder) MonErrorsGet(requestID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonVersion", reflect.TypeOf((*MockMonitoringClient)(nil).MonVersion)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonErrorsGet", reflect.TypeOf((*MockMonitoringClient)(nil).MonErrorsGet), requestID) } -// MonDBMigrate mocks base method -func (m *MockMonitoringClient) MonDBMigrate() ([]sdk.MonDBMigrate, error) { +// MonStatus mocks base method. +func (m *MockMonitoringClient) MonStatus() (*sdk.MonitoringStatus, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MonDBMigrate") - ret0, _ := ret[0].([]sdk.MonDBMigrate) + ret := m.ctrl.Call(m, "MonStatus") + ret0, _ := ret[0].(*sdk.MonitoringStatus) ret1, _ := ret[1].(error) return ret0, ret1 } -// MonDBMigrate indicates an expected call of MonDBMigrate -func (mr *MockMonitoringClientMockRecorder) MonDBMigrate() *gomock.Call { +// MonStatus indicates an expected call of MonStatus. +func (mr *MockMonitoringClientMockRecorder) MonStatus() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonDBMigrate", reflect.TypeOf((*MockMonitoringClient)(nil).MonDBMigrate)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonStatus", reflect.TypeOf((*MockMonitoringClient)(nil).MonStatus)) } -// MonErrorsGet mocks base method -func (m *MockMonitoringClient) MonErrorsGet(requestID string) ([]sdk.Error, error) { +// MonVersion mocks base method. +func (m *MockMonitoringClient) MonVersion() (*sdk.Version, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MonErrorsGet", requestID) - ret0, _ := ret[0].([]sdk.Error) + ret := m.ctrl.Call(m, "MonVersion") + ret0, _ := ret[0].(*sdk.Version) ret1, _ := ret[1].(error) return ret0, ret1 } -// MonErrorsGet indicates an expected call of MonErrorsGet -func (mr *MockMonitoringClientMockRecorder) MonErrorsGet(requestID interface{}) *gomock.Call { +// MonVersion indicates an expected call of MonVersion. +func (mr *MockMonitoringClientMockRecorder) MonVersion() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonErrorsGet", reflect.TypeOf((*MockMonitoringClient)(nil).MonErrorsGet), requestID) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonVersion", reflect.TypeOf((*MockMonitoringClient)(nil).MonVersion)) } -// MockIntegrationClient is a mock of IntegrationClient interface +// MockIntegrationClient is a mock of IntegrationClient interface. type MockIntegrationClient struct { ctrl *gomock.Controller recorder *MockIntegrationClientMockRecorder } -// MockIntegrationClientMockRecorder is the mock recorder for MockIntegrationClient +// MockIntegrationClientMockRecorder is the mock recorder for MockIntegrationClient. type MockIntegrationClientMockRecorder struct { mock *MockIntegrationClient } -// NewMockIntegrationClient creates a new mock instance +// NewMockIntegrationClient creates a new mock instance. func NewMockIntegrationClient(ctrl *gomock.Controller) *MockIntegrationClient { mock := &MockIntegrationClient{ctrl: ctrl} mock.recorder = &MockIntegrationClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockIntegrationClient) EXPECT() *MockIntegrationClientMockRecorder { return m.recorder } -// IntegrationModelList mocks base method -func (m *MockIntegrationClient) IntegrationModelList() ([]sdk.IntegrationModel, error) { +// IntegrationModelAdd mocks base method. +func (m_2 *MockIntegrationClient) IntegrationModelAdd(m *sdk.IntegrationModel) error { + m_2.ctrl.T.Helper() + ret := m_2.ctrl.Call(m_2, "IntegrationModelAdd", m) + ret0, _ := ret[0].(error) + return ret0 +} + +// IntegrationModelAdd indicates an expected call of IntegrationModelAdd. +func (mr *MockIntegrationClientMockRecorder) IntegrationModelAdd(m interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelAdd", reflect.TypeOf((*MockIntegrationClient)(nil).IntegrationModelAdd), m) +} + +// IntegrationModelDelete mocks base method. +func (m *MockIntegrationClient) IntegrationModelDelete(name string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "IntegrationModelList") - ret0, _ := ret[0].([]sdk.IntegrationModel) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "IntegrationModelDelete", name) + ret0, _ := ret[0].(error) + return ret0 } -// IntegrationModelList indicates an expected call of IntegrationModelList -func (mr *MockIntegrationClientMockRecorder) IntegrationModelList() *gomock.Call { +// IntegrationModelDelete indicates an expected call of IntegrationModelDelete. +func (mr *MockIntegrationClientMockRecorder) IntegrationModelDelete(name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelList", reflect.TypeOf((*MockIntegrationClient)(nil).IntegrationModelList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelDelete", reflect.TypeOf((*MockIntegrationClient)(nil).IntegrationModelDelete), name) } -// IntegrationModelGet mocks base method +// IntegrationModelGet mocks base method. func (m *MockIntegrationClient) IntegrationModelGet(name string) (sdk.IntegrationModel, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IntegrationModelGet", name) @@ -4597,27 +4611,28 @@ func (m *MockIntegrationClient) IntegrationModelGet(name string) (sdk.Integratio return ret0, ret1 } -// IntegrationModelGet indicates an expected call of IntegrationModelGet +// IntegrationModelGet indicates an expected call of IntegrationModelGet. func (mr *MockIntegrationClientMockRecorder) IntegrationModelGet(name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelGet", reflect.TypeOf((*MockIntegrationClient)(nil).IntegrationModelGet), name) } -// IntegrationModelAdd mocks base method -func (m_2 *MockIntegrationClient) IntegrationModelAdd(m *sdk.IntegrationModel) error { - m_2.ctrl.T.Helper() - ret := m_2.ctrl.Call(m_2, "IntegrationModelAdd", m) - ret0, _ := ret[0].(error) - return ret0 +// IntegrationModelList mocks base method. +func (m *MockIntegrationClient) IntegrationModelList() ([]sdk.IntegrationModel, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "IntegrationModelList") + ret0, _ := ret[0].([]sdk.IntegrationModel) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// IntegrationModelAdd indicates an expected call of IntegrationModelAdd -func (mr *MockIntegrationClientMockRecorder) IntegrationModelAdd(m interface{}) *gomock.Call { +// IntegrationModelList indicates an expected call of IntegrationModelList. +func (mr *MockIntegrationClientMockRecorder) IntegrationModelList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelAdd", reflect.TypeOf((*MockIntegrationClient)(nil).IntegrationModelAdd), m) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelList", reflect.TypeOf((*MockIntegrationClient)(nil).IntegrationModelList)) } -// IntegrationModelUpdate mocks base method +// IntegrationModelUpdate mocks base method. func (m_2 *MockIntegrationClient) IntegrationModelUpdate(m *sdk.IntegrationModel) error { m_2.ctrl.T.Helper() ret := m_2.ctrl.Call(m_2, "IntegrationModelUpdate", m) @@ -4625,1876 +4640,1893 @@ func (m_2 *MockIntegrationClient) IntegrationModelUpdate(m *sdk.IntegrationModel return ret0 } -// IntegrationModelUpdate indicates an expected call of IntegrationModelUpdate +// IntegrationModelUpdate indicates an expected call of IntegrationModelUpdate. func (mr *MockIntegrationClientMockRecorder) IntegrationModelUpdate(m interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelUpdate", reflect.TypeOf((*MockIntegrationClient)(nil).IntegrationModelUpdate), m) } -// IntegrationModelDelete mocks base method -func (m *MockIntegrationClient) IntegrationModelDelete(name string) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "IntegrationModelDelete", name) - ret0, _ := ret[0].(error) - return ret0 -} - -// IntegrationModelDelete indicates an expected call of IntegrationModelDelete -func (mr *MockIntegrationClientMockRecorder) IntegrationModelDelete(name interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelDelete", reflect.TypeOf((*MockIntegrationClient)(nil).IntegrationModelDelete), name) -} - -// MockInterface is a mock of Interface interface +// MockInterface is a mock of Interface interface. type MockInterface struct { ctrl *gomock.Controller recorder *MockInterfaceMockRecorder } -// MockInterfaceMockRecorder is the mock recorder for MockInterface +// MockInterfaceMockRecorder is the mock recorder for MockInterface. type MockInterfaceMockRecorder struct { mock *MockInterface } -// NewMockInterface creates a new mock instance +// NewMockInterface creates a new mock instance. func NewMockInterface(ctrl *gomock.Controller) *MockInterface { mock := &MockInterface{ctrl: ctrl} mock.recorder = &MockInterfaceMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder { return m.recorder } -// PostJSON mocks base method -func (m *MockInterface) PostJSON(ctx context.Context, path string, in, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { +// APIURL mocks base method. +func (m *MockInterface) APIURL() string { m.ctrl.T.Helper() - varargs := []interface{}{ctx, path, in, out} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "PostJSON", varargs...) - ret0, _ := ret[0].(int) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "APIURL") + ret0, _ := ret[0].(string) + return ret0 } -// PostJSON indicates an expected call of PostJSON -func (mr *MockInterfaceMockRecorder) PostJSON(ctx, path, in, out interface{}, mods ...interface{}) *gomock.Call { +// APIURL indicates an expected call of APIURL. +func (mr *MockInterfaceMockRecorder) APIURL() *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, path, in, out}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostJSON", reflect.TypeOf((*MockInterface)(nil).PostJSON), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIURL", reflect.TypeOf((*MockInterface)(nil).APIURL)) } -// PutJSON mocks base method -func (m *MockInterface) PutJSON(ctx context.Context, path string, in, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { +// ActionBuiltinGet mocks base method. +func (m *MockInterface) ActionBuiltinGet(name string, mods ...cdsclient.RequestModifier) (*sdk.Action, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, path, in, out} + varargs := []interface{}{name} for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PutJSON", varargs...) - ret0, _ := ret[0].(int) + ret := m.ctrl.Call(m, "ActionBuiltinGet", varargs...) + ret0, _ := ret[0].(*sdk.Action) ret1, _ := ret[1].(error) return ret0, ret1 } -// PutJSON indicates an expected call of PutJSON -func (mr *MockInterfaceMockRecorder) PutJSON(ctx, path, in, out interface{}, mods ...interface{}) *gomock.Call { +// ActionBuiltinGet indicates an expected call of ActionBuiltinGet. +func (mr *MockInterfaceMockRecorder) ActionBuiltinGet(name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, path, in, out}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutJSON", reflect.TypeOf((*MockInterface)(nil).PutJSON), varargs...) + varargs := append([]interface{}{name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionBuiltinGet", reflect.TypeOf((*MockInterface)(nil).ActionBuiltinGet), varargs...) } -// GetJSON mocks base method -func (m *MockInterface) GetJSON(ctx context.Context, path string, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { +// ActionBuiltinList mocks base method. +func (m *MockInterface) ActionBuiltinList() ([]sdk.Action, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, path, out} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GetJSON", varargs...) - ret0, _ := ret[0].(int) + ret := m.ctrl.Call(m, "ActionBuiltinList") + ret0, _ := ret[0].([]sdk.Action) ret1, _ := ret[1].(error) return ret0, ret1 } -// GetJSON indicates an expected call of GetJSON -func (mr *MockInterfaceMockRecorder) GetJSON(ctx, path, out interface{}, mods ...interface{}) *gomock.Call { +// ActionBuiltinList indicates an expected call of ActionBuiltinList. +func (mr *MockInterfaceMockRecorder) ActionBuiltinList() *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, path, out}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJSON", reflect.TypeOf((*MockInterface)(nil).GetJSON), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionBuiltinList", reflect.TypeOf((*MockInterface)(nil).ActionBuiltinList)) } -// DeleteJSON mocks base method -func (m *MockInterface) DeleteJSON(ctx context.Context, path string, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { +// ActionDelete mocks base method. +func (m *MockInterface) ActionDelete(groupName, name string) error { m.ctrl.T.Helper() - varargs := []interface{}{ctx, path, out} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "DeleteJSON", varargs...) - ret0, _ := ret[0].(int) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "ActionDelete", groupName, name) + ret0, _ := ret[0].(error) + return ret0 } -// DeleteJSON indicates an expected call of DeleteJSON -func (mr *MockInterfaceMockRecorder) DeleteJSON(ctx, path, out interface{}, mods ...interface{}) *gomock.Call { +// ActionDelete indicates an expected call of ActionDelete. +func (mr *MockInterfaceMockRecorder) ActionDelete(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, path, out}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteJSON", reflect.TypeOf((*MockInterface)(nil).DeleteJSON), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionDelete", reflect.TypeOf((*MockInterface)(nil).ActionDelete), groupName, name) } -// RequestJSON mocks base method -func (m *MockInterface) RequestJSON(ctx context.Context, method, path string, in, out interface{}, mods ...cdsclient.RequestModifier) ([]byte, http.Header, int, error) { +// ActionExport mocks base method. +func (m *MockInterface) ActionExport(groupName, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, method, path, in, out} + varargs := []interface{}{groupName, name} for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "RequestJSON", varargs...) + ret := m.ctrl.Call(m, "ActionExport", varargs...) ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(http.Header) - ret2, _ := ret[2].(int) - ret3, _ := ret[3].(error) - return ret0, ret1, ret2, ret3 + ret1, _ := ret[1].(error) + return ret0, ret1 } -// RequestJSON indicates an expected call of RequestJSON -func (mr *MockInterfaceMockRecorder) RequestJSON(ctx, method, path, in, out interface{}, mods ...interface{}) *gomock.Call { +// ActionExport indicates an expected call of ActionExport. +func (mr *MockInterfaceMockRecorder) ActionExport(groupName, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, method, path, in, out}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestJSON", reflect.TypeOf((*MockInterface)(nil).RequestJSON), varargs...) + varargs := append([]interface{}{groupName, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionExport", reflect.TypeOf((*MockInterface)(nil).ActionExport), varargs...) } -// Request mocks base method -func (m *MockInterface) Request(ctx context.Context, method, path string, body io.Reader, mods ...cdsclient.RequestModifier) ([]byte, http.Header, int, error) { +// ActionGet mocks base method. +func (m *MockInterface) ActionGet(groupName, name string, mods ...cdsclient.RequestModifier) (*sdk.Action, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, method, path, body} + varargs := []interface{}{groupName, name} for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "Request", varargs...) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(http.Header) - ret2, _ := ret[2].(int) - ret3, _ := ret[3].(error) - return ret0, ret1, ret2, ret3 + ret := m.ctrl.Call(m, "ActionGet", varargs...) + ret0, _ := ret[0].(*sdk.Action) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// Request indicates an expected call of Request -func (mr *MockInterfaceMockRecorder) Request(ctx, method, path, body interface{}, mods ...interface{}) *gomock.Call { +// ActionGet indicates an expected call of ActionGet. +func (mr *MockInterfaceMockRecorder) ActionGet(groupName, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, method, path, body}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Request", reflect.TypeOf((*MockInterface)(nil).Request), varargs...) + varargs := append([]interface{}{groupName, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionGet", reflect.TypeOf((*MockInterface)(nil).ActionGet), varargs...) } -// HTTPClient mocks base method -func (m *MockInterface) HTTPClient() *http.Client { +// ActionImport mocks base method. +func (m *MockInterface) ActionImport(content io.Reader, mods ...cdsclient.RequestModifier) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "HTTPClient") - ret0, _ := ret[0].(*http.Client) + varargs := []interface{}{content} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ActionImport", varargs...) + ret0, _ := ret[0].(error) return ret0 } -// HTTPClient indicates an expected call of HTTPClient -func (mr *MockInterfaceMockRecorder) HTTPClient() *gomock.Call { +// ActionImport indicates an expected call of ActionImport. +func (mr *MockInterfaceMockRecorder) ActionImport(content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPClient", reflect.TypeOf((*MockInterface)(nil).HTTPClient)) + varargs := append([]interface{}{content}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionImport", reflect.TypeOf((*MockInterface)(nil).ActionImport), varargs...) } -// HTTPNoTimeoutClient mocks base method -func (m *MockInterface) HTTPNoTimeoutClient() *http.Client { +// ActionList mocks base method. +func (m *MockInterface) ActionList() ([]sdk.Action, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "HTTPNoTimeoutClient") - ret0, _ := ret[0].(*http.Client) - return ret0 + ret := m.ctrl.Call(m, "ActionList") + ret0, _ := ret[0].([]sdk.Action) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// HTTPNoTimeoutClient indicates an expected call of HTTPNoTimeoutClient -func (mr *MockInterfaceMockRecorder) HTTPNoTimeoutClient() *gomock.Call { +// ActionList indicates an expected call of ActionList. +func (mr *MockInterfaceMockRecorder) ActionList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPNoTimeoutClient", reflect.TypeOf((*MockInterface)(nil).HTTPNoTimeoutClient)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionList", reflect.TypeOf((*MockInterface)(nil).ActionList)) } -// HTTPWebsocketClient mocks base method -func (m *MockInterface) HTTPWebsocketClient() *websocket.Dialer { +// ActionUsage mocks base method. +func (m *MockInterface) ActionUsage(groupName, name string, mods ...cdsclient.RequestModifier) (*sdk.ActionUsages, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "HTTPWebsocketClient") - ret0, _ := ret[0].(*websocket.Dialer) - return ret0 + varargs := []interface{}{groupName, name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ActionUsage", varargs...) + ret0, _ := ret[0].(*sdk.ActionUsages) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// HTTPWebsocketClient indicates an expected call of HTTPWebsocketClient -func (mr *MockInterfaceMockRecorder) HTTPWebsocketClient() *gomock.Call { +// ActionUsage indicates an expected call of ActionUsage. +func (mr *MockInterfaceMockRecorder) ActionUsage(groupName, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPWebsocketClient", reflect.TypeOf((*MockInterface)(nil).HTTPWebsocketClient)) + varargs := append([]interface{}{groupName, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionUsage", reflect.TypeOf((*MockInterface)(nil).ActionUsage), varargs...) } -// AuthDriverList mocks base method -func (m *MockInterface) AuthDriverList() (sdk.AuthDriverResponse, error) { +// AdminCDSMigrationCancel mocks base method. +func (m *MockInterface) AdminCDSMigrationCancel(id int64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthDriverList") - ret0, _ := ret[0].(sdk.AuthDriverResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "AdminCDSMigrationCancel", id) + ret0, _ := ret[0].(error) + return ret0 } -// AuthDriverList indicates an expected call of AuthDriverList -func (mr *MockInterfaceMockRecorder) AuthDriverList() *gomock.Call { +// AdminCDSMigrationCancel indicates an expected call of AdminCDSMigrationCancel. +func (mr *MockInterfaceMockRecorder) AdminCDSMigrationCancel(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthDriverList", reflect.TypeOf((*MockInterface)(nil).AuthDriverList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCDSMigrationCancel", reflect.TypeOf((*MockInterface)(nil).AdminCDSMigrationCancel), id) } -// AuthConsumerSignin mocks base method -func (m *MockInterface) AuthConsumerSignin(arg0 sdk.AuthConsumerType, arg1 sdk.AuthConsumerSigninRequest) (sdk.AuthConsumerSigninResponse, error) { +// AdminCDSMigrationList mocks base method. +func (m *MockInterface) AdminCDSMigrationList() ([]sdk.Migration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerSignin", arg0, arg1) - ret0, _ := ret[0].(sdk.AuthConsumerSigninResponse) + ret := m.ctrl.Call(m, "AdminCDSMigrationList") + ret0, _ := ret[0].([]sdk.Migration) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthConsumerSignin indicates an expected call of AuthConsumerSignin -func (mr *MockInterfaceMockRecorder) AuthConsumerSignin(arg0, arg1 interface{}) *gomock.Call { +// AdminCDSMigrationList indicates an expected call of AdminCDSMigrationList. +func (mr *MockInterfaceMockRecorder) AdminCDSMigrationList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerSignin", reflect.TypeOf((*MockInterface)(nil).AuthConsumerSignin), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCDSMigrationList", reflect.TypeOf((*MockInterface)(nil).AdminCDSMigrationList)) } -// AuthConsumerLocalAskResetPassword mocks base method -func (m *MockInterface) AuthConsumerLocalAskResetPassword(arg0 sdk.AuthConsumerSigninRequest) error { +// AdminCDSMigrationReset mocks base method. +func (m *MockInterface) AdminCDSMigrationReset(id int64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerLocalAskResetPassword", arg0) + ret := m.ctrl.Call(m, "AdminCDSMigrationReset", id) ret0, _ := ret[0].(error) return ret0 } -// AuthConsumerLocalAskResetPassword indicates an expected call of AuthConsumerLocalAskResetPassword -func (mr *MockInterfaceMockRecorder) AuthConsumerLocalAskResetPassword(arg0 interface{}) *gomock.Call { +// AdminCDSMigrationReset indicates an expected call of AdminCDSMigrationReset. +func (mr *MockInterfaceMockRecorder) AdminCDSMigrationReset(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerLocalAskResetPassword", reflect.TypeOf((*MockInterface)(nil).AuthConsumerLocalAskResetPassword), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCDSMigrationReset", reflect.TypeOf((*MockInterface)(nil).AdminCDSMigrationReset), id) } -// AuthConsumerLocalResetPassword mocks base method -func (m *MockInterface) AuthConsumerLocalResetPassword(token, newPassword string) (sdk.AuthConsumerSigninResponse, error) { +// AdminDatabaseListEncryptedEntities mocks base method. +func (m *MockInterface) AdminDatabaseListEncryptedEntities(service string) ([]string, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerLocalResetPassword", token, newPassword) - ret0, _ := ret[0].(sdk.AuthConsumerSigninResponse) + ret := m.ctrl.Call(m, "AdminDatabaseListEncryptedEntities", service) + ret0, _ := ret[0].([]string) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthConsumerLocalResetPassword indicates an expected call of AuthConsumerLocalResetPassword -func (mr *MockInterfaceMockRecorder) AuthConsumerLocalResetPassword(token, newPassword interface{}) *gomock.Call { +// AdminDatabaseListEncryptedEntities indicates an expected call of AdminDatabaseListEncryptedEntities. +func (mr *MockInterfaceMockRecorder) AdminDatabaseListEncryptedEntities(service interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerLocalResetPassword", reflect.TypeOf((*MockInterface)(nil).AuthConsumerLocalResetPassword), token, newPassword) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseListEncryptedEntities", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseListEncryptedEntities), service) } -// AuthConsumerLocalSignup mocks base method -func (m *MockInterface) AuthConsumerLocalSignup(arg0 sdk.AuthConsumerSigninRequest) error { +// AdminDatabaseMigrationDelete mocks base method. +func (m *MockInterface) AdminDatabaseMigrationDelete(id string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerLocalSignup", arg0) + ret := m.ctrl.Call(m, "AdminDatabaseMigrationDelete", id) ret0, _ := ret[0].(error) return ret0 } -// AuthConsumerLocalSignup indicates an expected call of AuthConsumerLocalSignup -func (mr *MockInterfaceMockRecorder) AuthConsumerLocalSignup(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerLocalSignup", reflect.TypeOf((*MockInterface)(nil).AuthConsumerLocalSignup), arg0) -} - -// AuthConsumerLocalSignupVerify mocks base method -func (m *MockInterface) AuthConsumerLocalSignupVerify(token, initToken string) (sdk.AuthConsumerSigninResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerLocalSignupVerify", token, initToken) - ret0, _ := ret[0].(sdk.AuthConsumerSigninResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// AuthConsumerLocalSignupVerify indicates an expected call of AuthConsumerLocalSignupVerify -func (mr *MockInterfaceMockRecorder) AuthConsumerLocalSignupVerify(token, initToken interface{}) *gomock.Call { +// AdminDatabaseMigrationDelete indicates an expected call of AdminDatabaseMigrationDelete. +func (mr *MockInterfaceMockRecorder) AdminDatabaseMigrationDelete(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerLocalSignupVerify", reflect.TypeOf((*MockInterface)(nil).AuthConsumerLocalSignupVerify), token, initToken) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseMigrationDelete", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseMigrationDelete), id) } -// AuthConsumerSignout mocks base method -func (m *MockInterface) AuthConsumerSignout() error { +// AdminDatabaseMigrationUnlock mocks base method. +func (m *MockInterface) AdminDatabaseMigrationUnlock(id string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerSignout") + ret := m.ctrl.Call(m, "AdminDatabaseMigrationUnlock", id) ret0, _ := ret[0].(error) return ret0 } -// AuthConsumerSignout indicates an expected call of AuthConsumerSignout -func (mr *MockInterfaceMockRecorder) AuthConsumerSignout() *gomock.Call { +// AdminDatabaseMigrationUnlock indicates an expected call of AdminDatabaseMigrationUnlock. +func (mr *MockInterfaceMockRecorder) AdminDatabaseMigrationUnlock(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerSignout", reflect.TypeOf((*MockInterface)(nil).AuthConsumerSignout)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseMigrationUnlock", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseMigrationUnlock), id) } -// AuthConsumerListByUser mocks base method -func (m *MockInterface) AuthConsumerListByUser(username string) (sdk.AuthConsumers, error) { +// AdminDatabaseMigrationsList mocks base method. +func (m *MockInterface) AdminDatabaseMigrationsList() ([]sdk.DatabaseMigrationStatus, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerListByUser", username) - ret0, _ := ret[0].(sdk.AuthConsumers) + ret := m.ctrl.Call(m, "AdminDatabaseMigrationsList") + ret0, _ := ret[0].([]sdk.DatabaseMigrationStatus) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthConsumerListByUser indicates an expected call of AuthConsumerListByUser -func (mr *MockInterfaceMockRecorder) AuthConsumerListByUser(username interface{}) *gomock.Call { +// AdminDatabaseMigrationsList indicates an expected call of AdminDatabaseMigrationsList. +func (mr *MockInterfaceMockRecorder) AdminDatabaseMigrationsList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerListByUser", reflect.TypeOf((*MockInterface)(nil).AuthConsumerListByUser), username) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseMigrationsList", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseMigrationsList)) } -// AuthConsumerDelete mocks base method -func (m *MockInterface) AuthConsumerDelete(username, id string) error { +// AdminDatabaseRollAllEncryptedEntities mocks base method. +func (m *MockInterface) AdminDatabaseRollAllEncryptedEntities(service string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerDelete", username, id) + ret := m.ctrl.Call(m, "AdminDatabaseRollAllEncryptedEntities", service) ret0, _ := ret[0].(error) return ret0 } -// AuthConsumerDelete indicates an expected call of AuthConsumerDelete -func (mr *MockInterfaceMockRecorder) AuthConsumerDelete(username, id interface{}) *gomock.Call { +// AdminDatabaseRollAllEncryptedEntities indicates an expected call of AdminDatabaseRollAllEncryptedEntities. +func (mr *MockInterfaceMockRecorder) AdminDatabaseRollAllEncryptedEntities(service interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerDelete", reflect.TypeOf((*MockInterface)(nil).AuthConsumerDelete), username, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseRollAllEncryptedEntities", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseRollAllEncryptedEntities), service) } -// AuthConsumerRegen mocks base method -func (m *MockInterface) AuthConsumerRegen(username, id string) (sdk.AuthConsumerCreateResponse, error) { +// AdminDatabaseRollEncryptedEntity mocks base method. +func (m *MockInterface) AdminDatabaseRollEncryptedEntity(service, e string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerRegen", username, id) - ret0, _ := ret[0].(sdk.AuthConsumerCreateResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "AdminDatabaseRollEncryptedEntity", service, e) + ret0, _ := ret[0].(error) + return ret0 } -// AuthConsumerRegen indicates an expected call of AuthConsumerRegen -func (mr *MockInterfaceMockRecorder) AuthConsumerRegen(username, id interface{}) *gomock.Call { +// AdminDatabaseRollEncryptedEntity indicates an expected call of AdminDatabaseRollEncryptedEntity. +func (mr *MockInterfaceMockRecorder) AdminDatabaseRollEncryptedEntity(service, e interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerRegen", reflect.TypeOf((*MockInterface)(nil).AuthConsumerRegen), username, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseRollEncryptedEntity", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseRollEncryptedEntity), service, e) } -// AuthConsumerCreateForUser mocks base method -func (m *MockInterface) AuthConsumerCreateForUser(username string, request sdk.AuthConsumer) (sdk.AuthConsumerCreateResponse, error) { +// AdminDatabaseSignaturesResume mocks base method. +func (m *MockInterface) AdminDatabaseSignaturesResume(service string) (sdk.CanonicalFormUsageResume, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerCreateForUser", username, request) - ret0, _ := ret[0].(sdk.AuthConsumerCreateResponse) + ret := m.ctrl.Call(m, "AdminDatabaseSignaturesResume", service) + ret0, _ := ret[0].(sdk.CanonicalFormUsageResume) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthConsumerCreateForUser indicates an expected call of AuthConsumerCreateForUser -func (mr *MockInterfaceMockRecorder) AuthConsumerCreateForUser(username, request interface{}) *gomock.Call { +// AdminDatabaseSignaturesResume indicates an expected call of AdminDatabaseSignaturesResume. +func (mr *MockInterfaceMockRecorder) AdminDatabaseSignaturesResume(service interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerCreateForUser", reflect.TypeOf((*MockInterface)(nil).AuthConsumerCreateForUser), username, request) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseSignaturesResume", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseSignaturesResume), service) } -// AuthSessionListByUser mocks base method -func (m *MockInterface) AuthSessionListByUser(username string) (sdk.AuthSessions, error) { +// AdminDatabaseSignaturesRollAllEntities mocks base method. +func (m *MockInterface) AdminDatabaseSignaturesRollAllEntities(service string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthSessionListByUser", username) - ret0, _ := ret[0].(sdk.AuthSessions) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "AdminDatabaseSignaturesRollAllEntities", service) + ret0, _ := ret[0].(error) + return ret0 } -// AuthSessionListByUser indicates an expected call of AuthSessionListByUser -func (mr *MockInterfaceMockRecorder) AuthSessionListByUser(username interface{}) *gomock.Call { +// AdminDatabaseSignaturesRollAllEntities indicates an expected call of AdminDatabaseSignaturesRollAllEntities. +func (mr *MockInterfaceMockRecorder) AdminDatabaseSignaturesRollAllEntities(service interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthSessionListByUser", reflect.TypeOf((*MockInterface)(nil).AuthSessionListByUser), username) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseSignaturesRollAllEntities", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseSignaturesRollAllEntities), service) } -// AuthSessionDelete mocks base method -func (m *MockInterface) AuthSessionDelete(username, id string) error { +// AdminDatabaseSignaturesRollEntity mocks base method. +func (m *MockInterface) AdminDatabaseSignaturesRollEntity(service, e string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthSessionDelete", username, id) + ret := m.ctrl.Call(m, "AdminDatabaseSignaturesRollEntity", service, e) ret0, _ := ret[0].(error) return ret0 } -// AuthSessionDelete indicates an expected call of AuthSessionDelete -func (mr *MockInterfaceMockRecorder) AuthSessionDelete(username, id interface{}) *gomock.Call { +// AdminDatabaseSignaturesRollEntity indicates an expected call of AdminDatabaseSignaturesRollEntity. +func (mr *MockInterfaceMockRecorder) AdminDatabaseSignaturesRollEntity(service, e interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthSessionDelete", reflect.TypeOf((*MockInterface)(nil).AuthSessionDelete), username, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseSignaturesRollEntity", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseSignaturesRollEntity), service, e) } -// AuthSessionGet mocks base method -func (m *MockInterface) AuthSessionGet(id string) (sdk.AuthCurrentConsumerResponse, error) { +// AdminWorkflowUpdateMaxRuns mocks base method. +func (m *MockInterface) AdminWorkflowUpdateMaxRuns(projectKey, workflowName string, maxRuns int64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthSessionGet", id) - ret0, _ := ret[0].(sdk.AuthCurrentConsumerResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "AdminWorkflowUpdateMaxRuns", projectKey, workflowName, maxRuns) + ret0, _ := ret[0].(error) + return ret0 } -// AuthSessionGet indicates an expected call of AuthSessionGet -func (mr *MockInterfaceMockRecorder) AuthSessionGet(id interface{}) *gomock.Call { +// AdminWorkflowUpdateMaxRuns indicates an expected call of AdminWorkflowUpdateMaxRuns. +func (mr *MockInterfaceMockRecorder) AdminWorkflowUpdateMaxRuns(projectKey, workflowName, maxRuns interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthSessionGet", reflect.TypeOf((*MockInterface)(nil).AuthSessionGet), id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminWorkflowUpdateMaxRuns", reflect.TypeOf((*MockInterface)(nil).AdminWorkflowUpdateMaxRuns), projectKey, workflowName, maxRuns) } -// AuthMe mocks base method -func (m *MockInterface) AuthMe() (sdk.AuthCurrentConsumerResponse, error) { +// ApplicationAttachToReposistoriesManager mocks base method. +func (m *MockInterface) ApplicationAttachToReposistoriesManager(projectKey, appName, reposManager, repoFullname string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthMe") - ret0, _ := ret[0].(sdk.AuthCurrentConsumerResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "ApplicationAttachToReposistoriesManager", projectKey, appName, reposManager, repoFullname) + ret0, _ := ret[0].(error) + return ret0 } -// AuthMe indicates an expected call of AuthMe -func (mr *MockInterfaceMockRecorder) AuthMe() *gomock.Call { +// ApplicationAttachToReposistoriesManager indicates an expected call of ApplicationAttachToReposistoriesManager. +func (mr *MockInterfaceMockRecorder) ApplicationAttachToReposistoriesManager(projectKey, appName, reposManager, repoFullname interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthMe", reflect.TypeOf((*MockInterface)(nil).AuthMe)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationAttachToReposistoriesManager", reflect.TypeOf((*MockInterface)(nil).ApplicationAttachToReposistoriesManager), projectKey, appName, reposManager, repoFullname) } -// ActionDelete mocks base method -func (m *MockInterface) ActionDelete(groupName, name string) error { +// ApplicationCreate mocks base method. +func (m *MockInterface) ApplicationCreate(projectKey string, app *sdk.Application) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ActionDelete", groupName, name) + ret := m.ctrl.Call(m, "ApplicationCreate", projectKey, app) ret0, _ := ret[0].(error) return ret0 } -// ActionDelete indicates an expected call of ActionDelete -func (mr *MockInterfaceMockRecorder) ActionDelete(groupName, name interface{}) *gomock.Call { +// ApplicationCreate indicates an expected call of ApplicationCreate. +func (mr *MockInterfaceMockRecorder) ApplicationCreate(projectKey, app interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionDelete", reflect.TypeOf((*MockInterface)(nil).ActionDelete), groupName, name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationCreate", reflect.TypeOf((*MockInterface)(nil).ApplicationCreate), projectKey, app) } -// ActionGet mocks base method -func (m *MockInterface) ActionGet(groupName, name string, mods ...cdsclient.RequestModifier) (*sdk.Action, error) { +// ApplicationDelete mocks base method. +func (m *MockInterface) ApplicationDelete(projectKey, appName string) error { m.ctrl.T.Helper() - varargs := []interface{}{groupName, name} + ret := m.ctrl.Call(m, "ApplicationDelete", projectKey, appName) + ret0, _ := ret[0].(error) + return ret0 +} + +// ApplicationDelete indicates an expected call of ApplicationDelete. +func (mr *MockInterfaceMockRecorder) ApplicationDelete(projectKey, appName interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationDelete", reflect.TypeOf((*MockInterface)(nil).ApplicationDelete), projectKey, appName) +} + +// ApplicationExport mocks base method. +func (m *MockInterface) ApplicationExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { + m.ctrl.T.Helper() + varargs := []interface{}{projectKey, name} for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ActionGet", varargs...) - ret0, _ := ret[0].(*sdk.Action) + ret := m.ctrl.Call(m, "ApplicationExport", varargs...) + ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } -// ActionGet indicates an expected call of ActionGet -func (mr *MockInterfaceMockRecorder) ActionGet(groupName, name interface{}, mods ...interface{}) *gomock.Call { +// ApplicationExport indicates an expected call of ApplicationExport. +func (mr *MockInterfaceMockRecorder) ApplicationExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{groupName, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionGet", reflect.TypeOf((*MockInterface)(nil).ActionGet), varargs...) + varargs := append([]interface{}{projectKey, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationExport", reflect.TypeOf((*MockInterface)(nil).ApplicationExport), varargs...) } -// ActionUsage mocks base method -func (m *MockInterface) ActionUsage(groupName, name string, mods ...cdsclient.RequestModifier) (*sdk.ActionUsages, error) { +// ApplicationGet mocks base method. +func (m *MockInterface) ApplicationGet(projectKey, appName string, opts ...cdsclient.RequestModifier) (*sdk.Application, error) { m.ctrl.T.Helper() - varargs := []interface{}{groupName, name} - for _, a := range mods { + varargs := []interface{}{projectKey, appName} + for _, a := range opts { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "ActionUsage", varargs...) - ret0, _ := ret[0].(*sdk.ActionUsages) + ret := m.ctrl.Call(m, "ApplicationGet", varargs...) + ret0, _ := ret[0].(*sdk.Application) ret1, _ := ret[1].(error) return ret0, ret1 } -// ActionUsage indicates an expected call of ActionUsage -func (mr *MockInterfaceMockRecorder) ActionUsage(groupName, name interface{}, mods ...interface{}) *gomock.Call { +// ApplicationGet indicates an expected call of ApplicationGet. +func (mr *MockInterfaceMockRecorder) ApplicationGet(projectKey, appName interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{groupName, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionUsage", reflect.TypeOf((*MockInterface)(nil).ActionUsage), varargs...) + varargs := append([]interface{}{projectKey, appName}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationGet", reflect.TypeOf((*MockInterface)(nil).ApplicationGet), varargs...) } -// ActionList mocks base method -func (m *MockInterface) ActionList() ([]sdk.Action, error) { +// ApplicationImport mocks base method. +func (m *MockInterface) ApplicationImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ActionList") - ret0, _ := ret[0].([]sdk.Action) + varargs := []interface{}{projectKey, content} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ApplicationImport", varargs...) + ret0, _ := ret[0].([]string) ret1, _ := ret[1].(error) return ret0, ret1 } -// ActionList indicates an expected call of ActionList -func (mr *MockInterfaceMockRecorder) ActionList() *gomock.Call { +// ApplicationImport indicates an expected call of ApplicationImport. +func (mr *MockInterfaceMockRecorder) ApplicationImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionList", reflect.TypeOf((*MockInterface)(nil).ActionList)) + varargs := append([]interface{}{projectKey, content}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationImport", reflect.TypeOf((*MockInterface)(nil).ApplicationImport), varargs...) } -// ActionImport mocks base method -func (m *MockInterface) ActionImport(content io.Reader, mods ...cdsclient.RequestModifier) error { +// ApplicationKeyCreate mocks base method. +func (m *MockInterface) ApplicationKeyCreate(projectKey, appName string, keyApp *sdk.ApplicationKey) error { m.ctrl.T.Helper() - varargs := []interface{}{content} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ActionImport", varargs...) + ret := m.ctrl.Call(m, "ApplicationKeyCreate", projectKey, appName, keyApp) ret0, _ := ret[0].(error) return ret0 } -// ActionImport indicates an expected call of ActionImport -func (mr *MockInterfaceMockRecorder) ActionImport(content interface{}, mods ...interface{}) *gomock.Call { +// ApplicationKeyCreate indicates an expected call of ApplicationKeyCreate. +func (mr *MockInterfaceMockRecorder) ApplicationKeyCreate(projectKey, appName, keyApp interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{content}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionImport", reflect.TypeOf((*MockInterface)(nil).ActionImport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeyCreate", reflect.TypeOf((*MockInterface)(nil).ApplicationKeyCreate), projectKey, appName, keyApp) } -// ActionExport mocks base method -func (m *MockInterface) ActionExport(groupName, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { +// ApplicationKeysDelete mocks base method. +func (m *MockInterface) ApplicationKeysDelete(projectKey, appName, KeyAppName string) error { m.ctrl.T.Helper() - varargs := []interface{}{groupName, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ActionExport", varargs...) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "ApplicationKeysDelete", projectKey, appName, KeyAppName) + ret0, _ := ret[0].(error) + return ret0 } -// ActionExport indicates an expected call of ActionExport -func (mr *MockInterfaceMockRecorder) ActionExport(groupName, name interface{}, mods ...interface{}) *gomock.Call { +// ApplicationKeysDelete indicates an expected call of ApplicationKeysDelete. +func (mr *MockInterfaceMockRecorder) ApplicationKeysDelete(projectKey, appName, KeyAppName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{groupName, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionExport", reflect.TypeOf((*MockInterface)(nil).ActionExport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeysDelete", reflect.TypeOf((*MockInterface)(nil).ApplicationKeysDelete), projectKey, appName, KeyAppName) } -// ActionBuiltinList mocks base method -func (m *MockInterface) ActionBuiltinList() ([]sdk.Action, error) { +// ApplicationKeysList mocks base method. +func (m *MockInterface) ApplicationKeysList(projectKey, appName string) ([]sdk.ApplicationKey, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ActionBuiltinList") - ret0, _ := ret[0].([]sdk.Action) + ret := m.ctrl.Call(m, "ApplicationKeysList", projectKey, appName) + ret0, _ := ret[0].([]sdk.ApplicationKey) ret1, _ := ret[1].(error) return ret0, ret1 } -// ActionBuiltinList indicates an expected call of ActionBuiltinList -func (mr *MockInterfaceMockRecorder) ActionBuiltinList() *gomock.Call { +// ApplicationKeysList indicates an expected call of ApplicationKeysList. +func (mr *MockInterfaceMockRecorder) ApplicationKeysList(projectKey, appName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionBuiltinList", reflect.TypeOf((*MockInterface)(nil).ActionBuiltinList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeysList", reflect.TypeOf((*MockInterface)(nil).ApplicationKeysList), projectKey, appName) } -// ActionBuiltinGet mocks base method -func (m *MockInterface) ActionBuiltinGet(name string, mods ...cdsclient.RequestModifier) (*sdk.Action, error) { +// ApplicationList mocks base method. +func (m *MockInterface) ApplicationList(projectKey string) ([]sdk.Application, error) { m.ctrl.T.Helper() - varargs := []interface{}{name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ActionBuiltinGet", varargs...) - ret0, _ := ret[0].(*sdk.Action) + ret := m.ctrl.Call(m, "ApplicationList", projectKey) + ret0, _ := ret[0].([]sdk.Application) ret1, _ := ret[1].(error) return ret0, ret1 } -// ActionBuiltinGet indicates an expected call of ActionBuiltinGet -func (mr *MockInterfaceMockRecorder) ActionBuiltinGet(name interface{}, mods ...interface{}) *gomock.Call { +// ApplicationList indicates an expected call of ApplicationList. +func (mr *MockInterfaceMockRecorder) ApplicationList(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionBuiltinGet", reflect.TypeOf((*MockInterface)(nil).ActionBuiltinGet), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationList", reflect.TypeOf((*MockInterface)(nil).ApplicationList), projectKey) } -// AdminDatabaseMigrationDelete mocks base method -func (m *MockInterface) AdminDatabaseMigrationDelete(id string) error { +// ApplicationUpdate mocks base method. +func (m *MockInterface) ApplicationUpdate(projectKey, appName string, app *sdk.Application) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseMigrationDelete", id) + ret := m.ctrl.Call(m, "ApplicationUpdate", projectKey, appName, app) ret0, _ := ret[0].(error) return ret0 } -// AdminDatabaseMigrationDelete indicates an expected call of AdminDatabaseMigrationDelete -func (mr *MockInterfaceMockRecorder) AdminDatabaseMigrationDelete(id interface{}) *gomock.Call { +// ApplicationUpdate indicates an expected call of ApplicationUpdate. +func (mr *MockInterfaceMockRecorder) ApplicationUpdate(projectKey, appName, app interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseMigrationDelete", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseMigrationDelete), id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationUpdate", reflect.TypeOf((*MockInterface)(nil).ApplicationUpdate), projectKey, appName, app) } -// AdminDatabaseMigrationUnlock mocks base method -func (m *MockInterface) AdminDatabaseMigrationUnlock(id string) error { +// ApplicationVariableCreate mocks base method. +func (m *MockInterface) ApplicationVariableCreate(projectKey, appName string, variable *sdk.Variable) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseMigrationUnlock", id) + ret := m.ctrl.Call(m, "ApplicationVariableCreate", projectKey, appName, variable) ret0, _ := ret[0].(error) return ret0 } -// AdminDatabaseMigrationUnlock indicates an expected call of AdminDatabaseMigrationUnlock -func (mr *MockInterfaceMockRecorder) AdminDatabaseMigrationUnlock(id interface{}) *gomock.Call { +// ApplicationVariableCreate indicates an expected call of ApplicationVariableCreate. +func (mr *MockInterfaceMockRecorder) ApplicationVariableCreate(projectKey, appName, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseMigrationUnlock", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseMigrationUnlock), id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableCreate", reflect.TypeOf((*MockInterface)(nil).ApplicationVariableCreate), projectKey, appName, variable) } -// AdminDatabaseMigrationsList mocks base method -func (m *MockInterface) AdminDatabaseMigrationsList() ([]sdk.DatabaseMigrationStatus, error) { +// ApplicationVariableDelete mocks base method. +func (m *MockInterface) ApplicationVariableDelete(projectKey, appName, varName string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseMigrationsList") - ret0, _ := ret[0].([]sdk.DatabaseMigrationStatus) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "ApplicationVariableDelete", projectKey, appName, varName) + ret0, _ := ret[0].(error) + return ret0 } -// AdminDatabaseMigrationsList indicates an expected call of AdminDatabaseMigrationsList -func (mr *MockInterfaceMockRecorder) AdminDatabaseMigrationsList() *gomock.Call { +// ApplicationVariableDelete indicates an expected call of ApplicationVariableDelete. +func (mr *MockInterfaceMockRecorder) ApplicationVariableDelete(projectKey, appName, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseMigrationsList", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseMigrationsList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableDelete", reflect.TypeOf((*MockInterface)(nil).ApplicationVariableDelete), projectKey, appName, varName) } -// AdminDatabaseSignaturesResume mocks base method -func (m *MockInterface) AdminDatabaseSignaturesResume(service string) (sdk.CanonicalFormUsageResume, error) { +// ApplicationVariableGet mocks base method. +func (m *MockInterface) ApplicationVariableGet(projectKey, appName, varName string) (*sdk.Variable, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseSignaturesResume", service) - ret0, _ := ret[0].(sdk.CanonicalFormUsageResume) + ret := m.ctrl.Call(m, "ApplicationVariableGet", projectKey, appName, varName) + ret0, _ := ret[0].(*sdk.Variable) ret1, _ := ret[1].(error) return ret0, ret1 } -// AdminDatabaseSignaturesResume indicates an expected call of AdminDatabaseSignaturesResume -func (mr *MockInterfaceMockRecorder) AdminDatabaseSignaturesResume(service interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseSignaturesResume", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseSignaturesResume), service) -} - -// AdminDatabaseSignaturesRollEntity mocks base method -func (m *MockInterface) AdminDatabaseSignaturesRollEntity(service, e string) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseSignaturesRollEntity", service, e) - ret0, _ := ret[0].(error) - return ret0 -} - -// AdminDatabaseSignaturesRollEntity indicates an expected call of AdminDatabaseSignaturesRollEntity -func (mr *MockInterfaceMockRecorder) AdminDatabaseSignaturesRollEntity(service, e interface{}) *gomock.Call { +// ApplicationVariableGet indicates an expected call of ApplicationVariableGet. +func (mr *MockInterfaceMockRecorder) ApplicationVariableGet(projectKey, appName, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseSignaturesRollEntity", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseSignaturesRollEntity), service, e) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableGet", reflect.TypeOf((*MockInterface)(nil).ApplicationVariableGet), projectKey, appName, varName) } -// AdminDatabaseSignaturesRollAllEntities mocks base method -func (m *MockInterface) AdminDatabaseSignaturesRollAllEntities(service string) error { +// ApplicationVariableUpdate mocks base method. +func (m *MockInterface) ApplicationVariableUpdate(projectKey, appName string, variable *sdk.Variable) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseSignaturesRollAllEntities", service) + ret := m.ctrl.Call(m, "ApplicationVariableUpdate", projectKey, appName, variable) ret0, _ := ret[0].(error) return ret0 } -// AdminDatabaseSignaturesRollAllEntities indicates an expected call of AdminDatabaseSignaturesRollAllEntities -func (mr *MockInterfaceMockRecorder) AdminDatabaseSignaturesRollAllEntities(service interface{}) *gomock.Call { +// ApplicationVariableUpdate indicates an expected call of ApplicationVariableUpdate. +func (mr *MockInterfaceMockRecorder) ApplicationVariableUpdate(projectKey, appName, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseSignaturesRollAllEntities", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseSignaturesRollAllEntities), service) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableUpdate", reflect.TypeOf((*MockInterface)(nil).ApplicationVariableUpdate), projectKey, appName, variable) } -// AdminDatabaseListEncryptedEntities mocks base method -func (m *MockInterface) AdminDatabaseListEncryptedEntities(service string) ([]string, error) { +// ApplicationVariablesList mocks base method. +func (m *MockInterface) ApplicationVariablesList(projectKey, appName string) ([]sdk.Variable, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseListEncryptedEntities", service) - ret0, _ := ret[0].([]string) + ret := m.ctrl.Call(m, "ApplicationVariablesList", projectKey, appName) + ret0, _ := ret[0].([]sdk.Variable) ret1, _ := ret[1].(error) return ret0, ret1 } -// AdminDatabaseListEncryptedEntities indicates an expected call of AdminDatabaseListEncryptedEntities -func (mr *MockInterfaceMockRecorder) AdminDatabaseListEncryptedEntities(service interface{}) *gomock.Call { +// ApplicationVariablesList indicates an expected call of ApplicationVariablesList. +func (mr *MockInterfaceMockRecorder) ApplicationVariablesList(projectKey, appName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseListEncryptedEntities", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseListEncryptedEntities), service) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariablesList", reflect.TypeOf((*MockInterface)(nil).ApplicationVariablesList), projectKey, appName) } -// AdminDatabaseRollEncryptedEntity mocks base method -func (m *MockInterface) AdminDatabaseRollEncryptedEntity(service, e string) error { +// AuthConsumerCreateForUser mocks base method. +func (m *MockInterface) AuthConsumerCreateForUser(username string, request sdk.AuthConsumer) (sdk.AuthConsumerCreateResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseRollEncryptedEntity", service, e) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "AuthConsumerCreateForUser", username, request) + ret0, _ := ret[0].(sdk.AuthConsumerCreateResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// AdminDatabaseRollEncryptedEntity indicates an expected call of AdminDatabaseRollEncryptedEntity -func (mr *MockInterfaceMockRecorder) AdminDatabaseRollEncryptedEntity(service, e interface{}) *gomock.Call { +// AuthConsumerCreateForUser indicates an expected call of AuthConsumerCreateForUser. +func (mr *MockInterfaceMockRecorder) AuthConsumerCreateForUser(username, request interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseRollEncryptedEntity", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseRollEncryptedEntity), service, e) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerCreateForUser", reflect.TypeOf((*MockInterface)(nil).AuthConsumerCreateForUser), username, request) } -// AdminDatabaseRollAllEncryptedEntities mocks base method -func (m *MockInterface) AdminDatabaseRollAllEncryptedEntities(service string) error { +// AuthConsumerDelete mocks base method. +func (m *MockInterface) AuthConsumerDelete(username, id string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminDatabaseRollAllEncryptedEntities", service) + ret := m.ctrl.Call(m, "AuthConsumerDelete", username, id) ret0, _ := ret[0].(error) return ret0 } -// AdminDatabaseRollAllEncryptedEntities indicates an expected call of AdminDatabaseRollAllEncryptedEntities -func (mr *MockInterfaceMockRecorder) AdminDatabaseRollAllEncryptedEntities(service interface{}) *gomock.Call { +// AuthConsumerDelete indicates an expected call of AuthConsumerDelete. +func (mr *MockInterfaceMockRecorder) AuthConsumerDelete(username, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDatabaseRollAllEncryptedEntities", reflect.TypeOf((*MockInterface)(nil).AdminDatabaseRollAllEncryptedEntities), service) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerDelete", reflect.TypeOf((*MockInterface)(nil).AuthConsumerDelete), username, id) } -// AdminCDSMigrationList mocks base method -func (m *MockInterface) AdminCDSMigrationList() ([]sdk.Migration, error) { +// AuthConsumerListByUser mocks base method. +func (m *MockInterface) AuthConsumerListByUser(username string) (sdk.AuthConsumers, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminCDSMigrationList") - ret0, _ := ret[0].([]sdk.Migration) + ret := m.ctrl.Call(m, "AuthConsumerListByUser", username) + ret0, _ := ret[0].(sdk.AuthConsumers) ret1, _ := ret[1].(error) return ret0, ret1 } -// AdminCDSMigrationList indicates an expected call of AdminCDSMigrationList -func (mr *MockInterfaceMockRecorder) AdminCDSMigrationList() *gomock.Call { +// AuthConsumerListByUser indicates an expected call of AuthConsumerListByUser. +func (mr *MockInterfaceMockRecorder) AuthConsumerListByUser(username interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCDSMigrationList", reflect.TypeOf((*MockInterface)(nil).AdminCDSMigrationList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerListByUser", reflect.TypeOf((*MockInterface)(nil).AuthConsumerListByUser), username) } -// AdminCDSMigrationCancel mocks base method -func (m *MockInterface) AdminCDSMigrationCancel(id int64) error { +// AuthConsumerLocalAskResetPassword mocks base method. +func (m *MockInterface) AuthConsumerLocalAskResetPassword(arg0 sdk.AuthConsumerSigninRequest) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminCDSMigrationCancel", id) + ret := m.ctrl.Call(m, "AuthConsumerLocalAskResetPassword", arg0) ret0, _ := ret[0].(error) return ret0 } -// AdminCDSMigrationCancel indicates an expected call of AdminCDSMigrationCancel -func (mr *MockInterfaceMockRecorder) AdminCDSMigrationCancel(id interface{}) *gomock.Call { +// AuthConsumerLocalAskResetPassword indicates an expected call of AuthConsumerLocalAskResetPassword. +func (mr *MockInterfaceMockRecorder) AuthConsumerLocalAskResetPassword(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCDSMigrationCancel", reflect.TypeOf((*MockInterface)(nil).AdminCDSMigrationCancel), id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerLocalAskResetPassword", reflect.TypeOf((*MockInterface)(nil).AuthConsumerLocalAskResetPassword), arg0) } -// AdminCDSMigrationReset mocks base method -func (m *MockInterface) AdminCDSMigrationReset(id int64) error { +// AuthConsumerLocalResetPassword mocks base method. +func (m *MockInterface) AuthConsumerLocalResetPassword(token, newPassword string) (sdk.AuthConsumerSigninResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminCDSMigrationReset", id) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "AuthConsumerLocalResetPassword", token, newPassword) + ret0, _ := ret[0].(sdk.AuthConsumerSigninResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// AdminCDSMigrationReset indicates an expected call of AdminCDSMigrationReset -func (mr *MockInterfaceMockRecorder) AdminCDSMigrationReset(id interface{}) *gomock.Call { +// AuthConsumerLocalResetPassword indicates an expected call of AuthConsumerLocalResetPassword. +func (mr *MockInterfaceMockRecorder) AuthConsumerLocalResetPassword(token, newPassword interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCDSMigrationReset", reflect.TypeOf((*MockInterface)(nil).AdminCDSMigrationReset), id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerLocalResetPassword", reflect.TypeOf((*MockInterface)(nil).AuthConsumerLocalResetPassword), token, newPassword) } -// AdminWorkflowUpdateMaxRuns mocks base method -func (m *MockInterface) AdminWorkflowUpdateMaxRuns(projectKey, workflowName string, maxRuns int64) error { +// AuthConsumerLocalSignup mocks base method. +func (m *MockInterface) AuthConsumerLocalSignup(arg0 sdk.AuthConsumerSigninRequest) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdminWorkflowUpdateMaxRuns", projectKey, workflowName, maxRuns) + ret := m.ctrl.Call(m, "AuthConsumerLocalSignup", arg0) ret0, _ := ret[0].(error) return ret0 } -// AdminWorkflowUpdateMaxRuns indicates an expected call of AdminWorkflowUpdateMaxRuns -func (mr *MockInterfaceMockRecorder) AdminWorkflowUpdateMaxRuns(projectKey, workflowName, maxRuns interface{}) *gomock.Call { +// AuthConsumerLocalSignup indicates an expected call of AuthConsumerLocalSignup. +func (mr *MockInterfaceMockRecorder) AuthConsumerLocalSignup(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminWorkflowUpdateMaxRuns", reflect.TypeOf((*MockInterface)(nil).AdminWorkflowUpdateMaxRuns), projectKey, workflowName, maxRuns) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerLocalSignup", reflect.TypeOf((*MockInterface)(nil).AuthConsumerLocalSignup), arg0) } -// Features mocks base method -func (m *MockInterface) Features() ([]sdk.Feature, error) { +// AuthConsumerLocalSignupVerify mocks base method. +func (m *MockInterface) AuthConsumerLocalSignupVerify(token, initToken string) (sdk.AuthConsumerSigninResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Features") - ret0, _ := ret[0].([]sdk.Feature) + ret := m.ctrl.Call(m, "AuthConsumerLocalSignupVerify", token, initToken) + ret0, _ := ret[0].(sdk.AuthConsumerSigninResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// Features indicates an expected call of Features -func (mr *MockInterfaceMockRecorder) Features() *gomock.Call { +// AuthConsumerLocalSignupVerify indicates an expected call of AuthConsumerLocalSignupVerify. +func (mr *MockInterfaceMockRecorder) AuthConsumerLocalSignupVerify(token, initToken interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Features", reflect.TypeOf((*MockInterface)(nil).Features)) -} - -// FeatureCreate mocks base method -func (m *MockInterface) FeatureCreate(f sdk.Feature) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FeatureCreate", f) - ret0, _ := ret[0].(error) - return ret0 -} - -// FeatureCreate indicates an expected call of FeatureCreate -func (mr *MockInterfaceMockRecorder) FeatureCreate(f interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureCreate", reflect.TypeOf((*MockInterface)(nil).FeatureCreate), f) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerLocalSignupVerify", reflect.TypeOf((*MockInterface)(nil).AuthConsumerLocalSignupVerify), token, initToken) } -// FeatureDelete mocks base method -func (m *MockInterface) FeatureDelete(name sdk.FeatureName) error { +// AuthConsumerRegen mocks base method. +func (m *MockInterface) AuthConsumerRegen(username, id string) (sdk.AuthConsumerCreateResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FeatureDelete", name) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "AuthConsumerRegen", username, id) + ret0, _ := ret[0].(sdk.AuthConsumerCreateResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// FeatureDelete indicates an expected call of FeatureDelete -func (mr *MockInterfaceMockRecorder) FeatureDelete(name interface{}) *gomock.Call { +// AuthConsumerRegen indicates an expected call of AuthConsumerRegen. +func (mr *MockInterfaceMockRecorder) AuthConsumerRegen(username, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureDelete", reflect.TypeOf((*MockInterface)(nil).FeatureDelete), name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerRegen", reflect.TypeOf((*MockInterface)(nil).AuthConsumerRegen), username, id) } -// FeatureGet mocks base method -func (m *MockInterface) FeatureGet(name sdk.FeatureName) (sdk.Feature, error) { +// AuthConsumerSignin mocks base method. +func (m *MockInterface) AuthConsumerSignin(arg0 sdk.AuthConsumerType, arg1 sdk.AuthConsumerSigninRequest) (sdk.AuthConsumerSigninResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FeatureGet", name) - ret0, _ := ret[0].(sdk.Feature) + ret := m.ctrl.Call(m, "AuthConsumerSignin", arg0, arg1) + ret0, _ := ret[0].(sdk.AuthConsumerSigninResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// FeatureGet indicates an expected call of FeatureGet -func (mr *MockInterfaceMockRecorder) FeatureGet(name interface{}) *gomock.Call { +// AuthConsumerSignin indicates an expected call of AuthConsumerSignin. +func (mr *MockInterfaceMockRecorder) AuthConsumerSignin(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureGet", reflect.TypeOf((*MockInterface)(nil).FeatureGet), name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerSignin", reflect.TypeOf((*MockInterface)(nil).AuthConsumerSignin), arg0, arg1) } -// FeatureUpdate mocks base method -func (m *MockInterface) FeatureUpdate(f sdk.Feature) error { +// AuthConsumerSignout mocks base method. +func (m *MockInterface) AuthConsumerSignout() error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FeatureUpdate", f) + ret := m.ctrl.Call(m, "AuthConsumerSignout") ret0, _ := ret[0].(error) return ret0 } -// FeatureUpdate indicates an expected call of FeatureUpdate -func (mr *MockInterfaceMockRecorder) FeatureUpdate(f interface{}) *gomock.Call { +// AuthConsumerSignout indicates an expected call of AuthConsumerSignout. +func (mr *MockInterfaceMockRecorder) AuthConsumerSignout() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureUpdate", reflect.TypeOf((*MockInterface)(nil).FeatureUpdate), f) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerSignout", reflect.TypeOf((*MockInterface)(nil).AuthConsumerSignout)) } -// Services mocks base method -func (m *MockInterface) Services() ([]sdk.Service, error) { +// AuthDriverList mocks base method. +func (m *MockInterface) AuthDriverList() (sdk.AuthDriverResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Services") - ret0, _ := ret[0].([]sdk.Service) + ret := m.ctrl.Call(m, "AuthDriverList") + ret0, _ := ret[0].(sdk.AuthDriverResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// Services indicates an expected call of Services -func (mr *MockInterfaceMockRecorder) Services() *gomock.Call { +// AuthDriverList indicates an expected call of AuthDriverList. +func (mr *MockInterfaceMockRecorder) AuthDriverList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Services", reflect.TypeOf((*MockInterface)(nil).Services)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthDriverList", reflect.TypeOf((*MockInterface)(nil).AuthDriverList)) } -// ServicesByName mocks base method -func (m *MockInterface) ServicesByName(name string) (*sdk.Service, error) { +// AuthMe mocks base method. +func (m *MockInterface) AuthMe() (sdk.AuthCurrentConsumerResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServicesByName", name) - ret0, _ := ret[0].(*sdk.Service) + ret := m.ctrl.Call(m, "AuthMe") + ret0, _ := ret[0].(sdk.AuthCurrentConsumerResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ServicesByName indicates an expected call of ServicesByName -func (mr *MockInterfaceMockRecorder) ServicesByName(name interface{}) *gomock.Call { +// AuthMe indicates an expected call of AuthMe. +func (mr *MockInterfaceMockRecorder) AuthMe() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServicesByName", reflect.TypeOf((*MockInterface)(nil).ServicesByName), name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthMe", reflect.TypeOf((*MockInterface)(nil).AuthMe)) } -// ServiceDelete mocks base method -func (m *MockInterface) ServiceDelete(name string) error { +// AuthSessionDelete mocks base method. +func (m *MockInterface) AuthSessionDelete(username, id string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceDelete", name) + ret := m.ctrl.Call(m, "AuthSessionDelete", username, id) ret0, _ := ret[0].(error) return ret0 } -// ServiceDelete indicates an expected call of ServiceDelete -func (mr *MockInterfaceMockRecorder) ServiceDelete(name interface{}) *gomock.Call { +// AuthSessionDelete indicates an expected call of AuthSessionDelete. +func (mr *MockInterfaceMockRecorder) AuthSessionDelete(username, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceDelete", reflect.TypeOf((*MockInterface)(nil).ServiceDelete), name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthSessionDelete", reflect.TypeOf((*MockInterface)(nil).AuthSessionDelete), username, id) } -// ServicesByType mocks base method -func (m *MockInterface) ServicesByType(stype string) ([]sdk.Service, error) { +// AuthSessionGet mocks base method. +func (m *MockInterface) AuthSessionGet(id string) (sdk.AuthCurrentConsumerResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServicesByType", stype) - ret0, _ := ret[0].([]sdk.Service) + ret := m.ctrl.Call(m, "AuthSessionGet", id) + ret0, _ := ret[0].(sdk.AuthCurrentConsumerResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// ServicesByType indicates an expected call of ServicesByType -func (mr *MockInterfaceMockRecorder) ServicesByType(stype interface{}) *gomock.Call { +// AuthSessionGet indicates an expected call of AuthSessionGet. +func (mr *MockInterfaceMockRecorder) AuthSessionGet(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServicesByType", reflect.TypeOf((*MockInterface)(nil).ServicesByType), stype) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthSessionGet", reflect.TypeOf((*MockInterface)(nil).AuthSessionGet), id) } -// ServiceNameCallGET mocks base method -func (m *MockInterface) ServiceNameCallGET(name, url string) ([]byte, error) { +// AuthSessionListByUser mocks base method. +func (m *MockInterface) AuthSessionListByUser(username string) (sdk.AuthSessions, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceNameCallGET", name, url) - ret0, _ := ret[0].([]byte) + ret := m.ctrl.Call(m, "AuthSessionListByUser", username) + ret0, _ := ret[0].(sdk.AuthSessions) ret1, _ := ret[1].(error) return ret0, ret1 } -// ServiceNameCallGET indicates an expected call of ServiceNameCallGET -func (mr *MockInterfaceMockRecorder) ServiceNameCallGET(name, url interface{}) *gomock.Call { +// AuthSessionListByUser indicates an expected call of AuthSessionListByUser. +func (mr *MockInterfaceMockRecorder) AuthSessionListByUser(username interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceNameCallGET", reflect.TypeOf((*MockInterface)(nil).ServiceNameCallGET), name, url) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthSessionListByUser", reflect.TypeOf((*MockInterface)(nil).AuthSessionListByUser), username) } -// ServiceCallGET mocks base method -func (m *MockInterface) ServiceCallGET(stype, url string) ([]byte, error) { +// BroadcastCreate mocks base method. +func (m *MockInterface) BroadcastCreate(broadcast *sdk.Broadcast) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceCallGET", stype, url) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "BroadcastCreate", broadcast) + ret0, _ := ret[0].(error) + return ret0 } -// ServiceCallGET indicates an expected call of ServiceCallGET -func (mr *MockInterfaceMockRecorder) ServiceCallGET(stype, url interface{}) *gomock.Call { +// BroadcastCreate indicates an expected call of BroadcastCreate. +func (mr *MockInterfaceMockRecorder) BroadcastCreate(broadcast interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCallGET", reflect.TypeOf((*MockInterface)(nil).ServiceCallGET), stype, url) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BroadcastCreate", reflect.TypeOf((*MockInterface)(nil).BroadcastCreate), broadcast) } -// ServiceCallPOST mocks base method -func (m *MockInterface) ServiceCallPOST(stype, url string, body []byte) ([]byte, error) { +// BroadcastDelete mocks base method. +func (m *MockInterface) BroadcastDelete(id string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceCallPOST", stype, url, body) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "BroadcastDelete", id) + ret0, _ := ret[0].(error) + return ret0 } -// ServiceCallPOST indicates an expected call of ServiceCallPOST -func (mr *MockInterfaceMockRecorder) ServiceCallPOST(stype, url, body interface{}) *gomock.Call { +// BroadcastDelete indicates an expected call of BroadcastDelete. +func (mr *MockInterfaceMockRecorder) BroadcastDelete(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCallPOST", reflect.TypeOf((*MockInterface)(nil).ServiceCallPOST), stype, url, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BroadcastDelete", reflect.TypeOf((*MockInterface)(nil).BroadcastDelete), id) } -// ServiceCallPUT mocks base method -func (m *MockInterface) ServiceCallPUT(stype, url string, body []byte) ([]byte, error) { +// BroadcastGet mocks base method. +func (m *MockInterface) BroadcastGet(id string) (*sdk.Broadcast, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceCallPUT", stype, url, body) - ret0, _ := ret[0].([]byte) + ret := m.ctrl.Call(m, "BroadcastGet", id) + ret0, _ := ret[0].(*sdk.Broadcast) ret1, _ := ret[1].(error) return ret0, ret1 } -// ServiceCallPUT indicates an expected call of ServiceCallPUT -func (mr *MockInterfaceMockRecorder) ServiceCallPUT(stype, url, body interface{}) *gomock.Call { +// BroadcastGet indicates an expected call of BroadcastGet. +func (mr *MockInterfaceMockRecorder) BroadcastGet(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCallPUT", reflect.TypeOf((*MockInterface)(nil).ServiceCallPUT), stype, url, body) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BroadcastGet", reflect.TypeOf((*MockInterface)(nil).BroadcastGet), id) } -// ServiceCallDELETE mocks base method -func (m *MockInterface) ServiceCallDELETE(stype, url string) error { +// Broadcasts mocks base method. +func (m *MockInterface) Broadcasts() ([]sdk.Broadcast, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceCallDELETE", stype, url) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "Broadcasts") + ret0, _ := ret[0].([]sdk.Broadcast) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// ServiceCallDELETE indicates an expected call of ServiceCallDELETE -func (mr *MockInterfaceMockRecorder) ServiceCallDELETE(stype, url interface{}) *gomock.Call { +// Broadcasts indicates an expected call of Broadcasts. +func (mr *MockInterfaceMockRecorder) Broadcasts() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCallDELETE", reflect.TypeOf((*MockInterface)(nil).ServiceCallDELETE), stype, url) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Broadcasts", reflect.TypeOf((*MockInterface)(nil).Broadcasts)) } -// APIURL mocks base method -func (m *MockInterface) APIURL() string { +// CDNItemDownload mocks base method. +func (m *MockInterface) CDNItemDownload(ctx context.Context, cdnAddr, hash string, itemType sdk.CDNItemType) (io.Reader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "APIURL") - ret0, _ := ret[0].(string) - return ret0 + ret := m.ctrl.Call(m, "CDNItemDownload", ctx, cdnAddr, hash, itemType) + ret0, _ := ret[0].(io.Reader) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// APIURL indicates an expected call of APIURL -func (mr *MockInterfaceMockRecorder) APIURL() *gomock.Call { +// CDNItemDownload indicates an expected call of CDNItemDownload. +func (mr *MockInterfaceMockRecorder) CDNItemDownload(ctx, cdnAddr, hash, itemType interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIURL", reflect.TypeOf((*MockInterface)(nil).APIURL)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemDownload", reflect.TypeOf((*MockInterface)(nil).CDNItemDownload), ctx, cdnAddr, hash, itemType) } -// ApplicationAttachToReposistoriesManager mocks base method -func (m *MockInterface) ApplicationAttachToReposistoriesManager(projectKey, appName, reposManager, repoFullname string) error { +// CDNItemUpload mocks base method. +func (m *MockInterface) CDNItemUpload(ctx context.Context, cdnAddr, signature string, fs afero.Fs, path string) (time.Duration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationAttachToReposistoriesManager", projectKey, appName, reposManager, repoFullname) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "CDNItemUpload", ctx, cdnAddr, signature, fs, path) + ret0, _ := ret[0].(time.Duration) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// ApplicationAttachToReposistoriesManager indicates an expected call of ApplicationAttachToReposistoriesManager -func (mr *MockInterfaceMockRecorder) ApplicationAttachToReposistoriesManager(projectKey, appName, reposManager, repoFullname interface{}) *gomock.Call { +// CDNItemUpload indicates an expected call of CDNItemUpload. +func (mr *MockInterfaceMockRecorder) CDNItemUpload(ctx, cdnAddr, signature, fs, path interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationAttachToReposistoriesManager", reflect.TypeOf((*MockInterface)(nil).ApplicationAttachToReposistoriesManager), projectKey, appName, reposManager, repoFullname) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemUpload", reflect.TypeOf((*MockInterface)(nil).CDNItemUpload), ctx, cdnAddr, signature, fs, path) } -// ApplicationCreate mocks base method -func (m *MockInterface) ApplicationCreate(projectKey string, app *sdk.Application) error { +// ConfigCDN mocks base method. +func (m *MockInterface) ConfigCDN() (sdk.CDNConfig, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationCreate", projectKey, app) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "ConfigCDN") + ret0, _ := ret[0].(sdk.CDNConfig) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// ApplicationCreate indicates an expected call of ApplicationCreate -func (mr *MockInterfaceMockRecorder) ApplicationCreate(projectKey, app interface{}) *gomock.Call { +// ConfigCDN indicates an expected call of ConfigCDN. +func (mr *MockInterfaceMockRecorder) ConfigCDN() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationCreate", reflect.TypeOf((*MockInterface)(nil).ApplicationCreate), projectKey, app) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigCDN", reflect.TypeOf((*MockInterface)(nil).ConfigCDN)) } -// ApplicationUpdate mocks base method -func (m *MockInterface) ApplicationUpdate(projectKey, appName string, app *sdk.Application) error { +// ConfigUser mocks base method. +func (m *MockInterface) ConfigUser() (sdk.ConfigUser, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationUpdate", projectKey, appName, app) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "ConfigUser") + ret0, _ := ret[0].(sdk.ConfigUser) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// ApplicationUpdate indicates an expected call of ApplicationUpdate -func (mr *MockInterfaceMockRecorder) ApplicationUpdate(projectKey, appName, app interface{}) *gomock.Call { +// ConfigUser indicates an expected call of ConfigUser. +func (mr *MockInterfaceMockRecorder) ConfigUser() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationUpdate", reflect.TypeOf((*MockInterface)(nil).ApplicationUpdate), projectKey, appName, app) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigUser", reflect.TypeOf((*MockInterface)(nil).ConfigUser)) } -// ApplicationDelete mocks base method -func (m *MockInterface) ApplicationDelete(projectKey, appName string) error { +// DeleteJSON mocks base method. +func (m *MockInterface) DeleteJSON(ctx context.Context, path string, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationDelete", projectKey, appName) - ret0, _ := ret[0].(error) - return ret0 + varargs := []interface{}{ctx, path, out} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteJSON", varargs...) + ret0, _ := ret[0].(int) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// ApplicationDelete indicates an expected call of ApplicationDelete -func (mr *MockInterfaceMockRecorder) ApplicationDelete(projectKey, appName interface{}) *gomock.Call { +// DeleteJSON indicates an expected call of DeleteJSON. +func (mr *MockInterfaceMockRecorder) DeleteJSON(ctx, path, out interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationDelete", reflect.TypeOf((*MockInterface)(nil).ApplicationDelete), projectKey, appName) + varargs := append([]interface{}{ctx, path, out}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteJSON", reflect.TypeOf((*MockInterface)(nil).DeleteJSON), varargs...) } -// ApplicationGet mocks base method -func (m *MockInterface) ApplicationGet(projectKey, appName string, opts ...cdsclient.RequestModifier) (*sdk.Application, error) { +// Download mocks base method. +func (m *MockInterface) Download() ([]sdk.DownloadableResource, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, appName} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ApplicationGet", varargs...) - ret0, _ := ret[0].(*sdk.Application) + ret := m.ctrl.Call(m, "Download") + ret0, _ := ret[0].([]sdk.DownloadableResource) ret1, _ := ret[1].(error) return ret0, ret1 } -// ApplicationGet indicates an expected call of ApplicationGet -func (mr *MockInterfaceMockRecorder) ApplicationGet(projectKey, appName interface{}, opts ...interface{}) *gomock.Call { +// Download indicates an expected call of Download. +func (mr *MockInterfaceMockRecorder) Download() *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, appName}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationGet", reflect.TypeOf((*MockInterface)(nil).ApplicationGet), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Download", reflect.TypeOf((*MockInterface)(nil).Download)) } -// ApplicationList mocks base method -func (m *MockInterface) ApplicationList(projectKey string) ([]sdk.Application, error) { +// DownloadURLFromAPI mocks base method. +func (m *MockInterface) DownloadURLFromAPI(name, os, arch, variant string) string { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationList", projectKey) - ret0, _ := ret[0].([]sdk.Application) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "DownloadURLFromAPI", name, os, arch, variant) + ret0, _ := ret[0].(string) + return ret0 } -// ApplicationList indicates an expected call of ApplicationList -func (mr *MockInterfaceMockRecorder) ApplicationList(projectKey interface{}) *gomock.Call { +// DownloadURLFromAPI indicates an expected call of DownloadURLFromAPI. +func (mr *MockInterfaceMockRecorder) DownloadURLFromAPI(name, os, arch, variant interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationList", reflect.TypeOf((*MockInterface)(nil).ApplicationList), projectKey) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadURLFromAPI", reflect.TypeOf((*MockInterface)(nil).DownloadURLFromAPI), name, os, arch, variant) } -// ApplicationVariablesList mocks base method -func (m *MockInterface) ApplicationVariablesList(projectKey, appName string) ([]sdk.Variable, error) { +// DownloadURLFromGithub mocks base method. +func (m *MockInterface) DownloadURLFromGithub(filename string) (string, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationVariablesList", projectKey, appName) - ret0, _ := ret[0].([]sdk.Variable) + ret := m.ctrl.Call(m, "DownloadURLFromGithub", filename) + ret0, _ := ret[0].(string) ret1, _ := ret[1].(error) return ret0, ret1 } -// ApplicationVariablesList indicates an expected call of ApplicationVariablesList -func (mr *MockInterfaceMockRecorder) ApplicationVariablesList(projectKey, appName interface{}) *gomock.Call { +// DownloadURLFromGithub indicates an expected call of DownloadURLFromGithub. +func (mr *MockInterfaceMockRecorder) DownloadURLFromGithub(filename interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariablesList", reflect.TypeOf((*MockInterface)(nil).ApplicationVariablesList), projectKey, appName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadURLFromGithub", reflect.TypeOf((*MockInterface)(nil).DownloadURLFromGithub), filename) } -// ApplicationVariableCreate mocks base method -func (m *MockInterface) ApplicationVariableCreate(projectKey, appName string, variable *sdk.Variable) error { +// EnvironmentCreate mocks base method. +func (m *MockInterface) EnvironmentCreate(projectKey string, env *sdk.Environment) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationVariableCreate", projectKey, appName, variable) + ret := m.ctrl.Call(m, "EnvironmentCreate", projectKey, env) ret0, _ := ret[0].(error) return ret0 } -// ApplicationVariableCreate indicates an expected call of ApplicationVariableCreate -func (mr *MockInterfaceMockRecorder) ApplicationVariableCreate(projectKey, appName, variable interface{}) *gomock.Call { +// EnvironmentCreate indicates an expected call of EnvironmentCreate. +func (mr *MockInterfaceMockRecorder) EnvironmentCreate(projectKey, env interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableCreate", reflect.TypeOf((*MockInterface)(nil).ApplicationVariableCreate), projectKey, appName, variable) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentCreate", reflect.TypeOf((*MockInterface)(nil).EnvironmentCreate), projectKey, env) } -// ApplicationVariableDelete mocks base method -func (m *MockInterface) ApplicationVariableDelete(projectKey, appName, varName string) error { +// EnvironmentDelete mocks base method. +func (m *MockInterface) EnvironmentDelete(projectKey, envName string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationVariableDelete", projectKey, appName, varName) + ret := m.ctrl.Call(m, "EnvironmentDelete", projectKey, envName) ret0, _ := ret[0].(error) return ret0 } -// ApplicationVariableDelete indicates an expected call of ApplicationVariableDelete -func (mr *MockInterfaceMockRecorder) ApplicationVariableDelete(projectKey, appName, varName interface{}) *gomock.Call { +// EnvironmentDelete indicates an expected call of EnvironmentDelete. +func (mr *MockInterfaceMockRecorder) EnvironmentDelete(projectKey, envName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableDelete", reflect.TypeOf((*MockInterface)(nil).ApplicationVariableDelete), projectKey, appName, varName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentDelete", reflect.TypeOf((*MockInterface)(nil).EnvironmentDelete), projectKey, envName) } -// ApplicationVariableGet mocks base method -func (m *MockInterface) ApplicationVariableGet(projectKey, appName, varName string) (*sdk.Variable, error) { +// EnvironmentExport mocks base method. +func (m *MockInterface) EnvironmentExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationVariableGet", projectKey, appName, varName) - ret0, _ := ret[0].(*sdk.Variable) + varargs := []interface{}{projectKey, name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "EnvironmentExport", varargs...) + ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } -// ApplicationVariableGet indicates an expected call of ApplicationVariableGet -func (mr *MockInterfaceMockRecorder) ApplicationVariableGet(projectKey, appName, varName interface{}) *gomock.Call { +// EnvironmentExport indicates an expected call of EnvironmentExport. +func (mr *MockInterfaceMockRecorder) EnvironmentExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableGet", reflect.TypeOf((*MockInterface)(nil).ApplicationVariableGet), projectKey, appName, varName) + varargs := append([]interface{}{projectKey, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentExport", reflect.TypeOf((*MockInterface)(nil).EnvironmentExport), varargs...) } -// ApplicationVariableUpdate mocks base method -func (m *MockInterface) ApplicationVariableUpdate(projectKey, appName string, variable *sdk.Variable) error { +// EnvironmentGet mocks base method. +func (m *MockInterface) EnvironmentGet(projectKey, envName string, opts ...cdsclient.RequestModifier) (*sdk.Environment, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationVariableUpdate", projectKey, appName, variable) - ret0, _ := ret[0].(error) - return ret0 + varargs := []interface{}{projectKey, envName} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "EnvironmentGet", varargs...) + ret0, _ := ret[0].(*sdk.Environment) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// ApplicationVariableUpdate indicates an expected call of ApplicationVariableUpdate -func (mr *MockInterfaceMockRecorder) ApplicationVariableUpdate(projectKey, appName, variable interface{}) *gomock.Call { +// EnvironmentGet indicates an expected call of EnvironmentGet. +func (mr *MockInterfaceMockRecorder) EnvironmentGet(projectKey, envName interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationVariableUpdate", reflect.TypeOf((*MockInterface)(nil).ApplicationVariableUpdate), projectKey, appName, variable) + varargs := append([]interface{}{projectKey, envName}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentGet", reflect.TypeOf((*MockInterface)(nil).EnvironmentGet), varargs...) } -// ApplicationKeysList mocks base method -func (m *MockInterface) ApplicationKeysList(projectKey, appName string) ([]sdk.ApplicationKey, error) { +// EnvironmentImport mocks base method. +func (m *MockInterface) EnvironmentImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationKeysList", projectKey, appName) - ret0, _ := ret[0].([]sdk.ApplicationKey) + varargs := []interface{}{projectKey, content} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "EnvironmentImport", varargs...) + ret0, _ := ret[0].([]string) ret1, _ := ret[1].(error) return ret0, ret1 } -// ApplicationKeysList indicates an expected call of ApplicationKeysList -func (mr *MockInterfaceMockRecorder) ApplicationKeysList(projectKey, appName interface{}) *gomock.Call { +// EnvironmentImport indicates an expected call of EnvironmentImport. +func (mr *MockInterfaceMockRecorder) EnvironmentImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeysList", reflect.TypeOf((*MockInterface)(nil).ApplicationKeysList), projectKey, appName) + varargs := append([]interface{}{projectKey, content}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentImport", reflect.TypeOf((*MockInterface)(nil).EnvironmentImport), varargs...) } -// ApplicationKeyCreate mocks base method -func (m *MockInterface) ApplicationKeyCreate(projectKey, appName string, keyApp *sdk.ApplicationKey) error { +// EnvironmentKeyCreate mocks base method. +func (m *MockInterface) EnvironmentKeyCreate(projectKey, envName string, keyEnv *sdk.EnvironmentKey) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationKeyCreate", projectKey, appName, keyApp) + ret := m.ctrl.Call(m, "EnvironmentKeyCreate", projectKey, envName, keyEnv) ret0, _ := ret[0].(error) return ret0 } -// ApplicationKeyCreate indicates an expected call of ApplicationKeyCreate -func (mr *MockInterfaceMockRecorder) ApplicationKeyCreate(projectKey, appName, keyApp interface{}) *gomock.Call { +// EnvironmentKeyCreate indicates an expected call of EnvironmentKeyCreate. +func (mr *MockInterfaceMockRecorder) EnvironmentKeyCreate(projectKey, envName, keyEnv interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeyCreate", reflect.TypeOf((*MockInterface)(nil).ApplicationKeyCreate), projectKey, appName, keyApp) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeyCreate", reflect.TypeOf((*MockInterface)(nil).EnvironmentKeyCreate), projectKey, envName, keyEnv) } -// ApplicationKeysDelete mocks base method -func (m *MockInterface) ApplicationKeysDelete(projectKey, appName, KeyAppName string) error { +// EnvironmentKeysDelete mocks base method. +func (m *MockInterface) EnvironmentKeysDelete(projectKey, envName, keyEnvName string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplicationKeysDelete", projectKey, appName, KeyAppName) + ret := m.ctrl.Call(m, "EnvironmentKeysDelete", projectKey, envName, keyEnvName) ret0, _ := ret[0].(error) return ret0 } -// ApplicationKeysDelete indicates an expected call of ApplicationKeysDelete -func (mr *MockInterfaceMockRecorder) ApplicationKeysDelete(projectKey, appName, KeyAppName interface{}) *gomock.Call { +// EnvironmentKeysDelete indicates an expected call of EnvironmentKeysDelete. +func (mr *MockInterfaceMockRecorder) EnvironmentKeysDelete(projectKey, envName, keyEnvName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationKeysDelete", reflect.TypeOf((*MockInterface)(nil).ApplicationKeysDelete), projectKey, appName, KeyAppName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeysDelete", reflect.TypeOf((*MockInterface)(nil).EnvironmentKeysDelete), projectKey, envName, keyEnvName) } -// ConfigUser mocks base method -func (m *MockInterface) ConfigUser() (sdk.ConfigUser, error) { +// EnvironmentKeysList mocks base method. +func (m *MockInterface) EnvironmentKeysList(projectKey, envName string) ([]sdk.EnvironmentKey, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ConfigUser") - ret0, _ := ret[0].(sdk.ConfigUser) + ret := m.ctrl.Call(m, "EnvironmentKeysList", projectKey, envName) + ret0, _ := ret[0].([]sdk.EnvironmentKey) ret1, _ := ret[1].(error) return ret0, ret1 } -// ConfigUser indicates an expected call of ConfigUser -func (mr *MockInterfaceMockRecorder) ConfigUser() *gomock.Call { +// EnvironmentKeysList indicates an expected call of EnvironmentKeysList. +func (mr *MockInterfaceMockRecorder) EnvironmentKeysList(projectKey, envName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigUser", reflect.TypeOf((*MockInterface)(nil).ConfigUser)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeysList", reflect.TypeOf((*MockInterface)(nil).EnvironmentKeysList), projectKey, envName) } -// ConfigCDN mocks base method -func (m *MockInterface) ConfigCDN() (sdk.CDNConfig, error) { +// EnvironmentList mocks base method. +func (m *MockInterface) EnvironmentList(projectKey string) ([]sdk.Environment, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ConfigCDN") - ret0, _ := ret[0].(sdk.CDNConfig) + ret := m.ctrl.Call(m, "EnvironmentList", projectKey) + ret0, _ := ret[0].([]sdk.Environment) ret1, _ := ret[1].(error) return ret0, ret1 } -// ConfigCDN indicates an expected call of ConfigCDN -func (mr *MockInterfaceMockRecorder) ConfigCDN() *gomock.Call { +// EnvironmentList indicates an expected call of EnvironmentList. +func (mr *MockInterfaceMockRecorder) EnvironmentList(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigCDN", reflect.TypeOf((*MockInterface)(nil).ConfigCDN)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentList", reflect.TypeOf((*MockInterface)(nil).EnvironmentList), projectKey) } -// Download mocks base method -func (m *MockInterface) Download() ([]sdk.DownloadableResource, error) { +// EnvironmentVariableCreate mocks base method. +func (m *MockInterface) EnvironmentVariableCreate(projectKey, envName string, variable *sdk.Variable) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Download") - ret0, _ := ret[0].([]sdk.DownloadableResource) + ret := m.ctrl.Call(m, "EnvironmentVariableCreate", projectKey, envName, variable) + ret0, _ := ret[0].(error) + return ret0 +} + +// EnvironmentVariableCreate indicates an expected call of EnvironmentVariableCreate. +func (mr *MockInterfaceMockRecorder) EnvironmentVariableCreate(projectKey, envName, variable interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableCreate", reflect.TypeOf((*MockInterface)(nil).EnvironmentVariableCreate), projectKey, envName, variable) +} + +// EnvironmentVariableDelete mocks base method. +func (m *MockInterface) EnvironmentVariableDelete(projectKey, envName, varName string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnvironmentVariableDelete", projectKey, envName, varName) + ret0, _ := ret[0].(error) + return ret0 +} + +// EnvironmentVariableDelete indicates an expected call of EnvironmentVariableDelete. +func (mr *MockInterfaceMockRecorder) EnvironmentVariableDelete(projectKey, envName, varName interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableDelete", reflect.TypeOf((*MockInterface)(nil).EnvironmentVariableDelete), projectKey, envName, varName) +} + +// EnvironmentVariableGet mocks base method. +func (m *MockInterface) EnvironmentVariableGet(projectKey, envName, varName string) (*sdk.Variable, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnvironmentVariableGet", projectKey, envName, varName) + ret0, _ := ret[0].(*sdk.Variable) ret1, _ := ret[1].(error) return ret0, ret1 } -// Download indicates an expected call of Download -func (mr *MockInterfaceMockRecorder) Download() *gomock.Call { +// EnvironmentVariableGet indicates an expected call of EnvironmentVariableGet. +func (mr *MockInterfaceMockRecorder) EnvironmentVariableGet(projectKey, envName, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Download", reflect.TypeOf((*MockInterface)(nil).Download)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableGet", reflect.TypeOf((*MockInterface)(nil).EnvironmentVariableGet), projectKey, envName, varName) } -// DownloadURLFromAPI mocks base method -func (m *MockInterface) DownloadURLFromAPI(name, os, arch, variant string) string { +// EnvironmentVariableUpdate mocks base method. +func (m *MockInterface) EnvironmentVariableUpdate(projectKey, envName string, variable *sdk.Variable) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DownloadURLFromAPI", name, os, arch, variant) - ret0, _ := ret[0].(string) + ret := m.ctrl.Call(m, "EnvironmentVariableUpdate", projectKey, envName, variable) + ret0, _ := ret[0].(error) return ret0 } -// DownloadURLFromAPI indicates an expected call of DownloadURLFromAPI -func (mr *MockInterfaceMockRecorder) DownloadURLFromAPI(name, os, arch, variant interface{}) *gomock.Call { +// EnvironmentVariableUpdate indicates an expected call of EnvironmentVariableUpdate. +func (mr *MockInterfaceMockRecorder) EnvironmentVariableUpdate(projectKey, envName, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadURLFromAPI", reflect.TypeOf((*MockInterface)(nil).DownloadURLFromAPI), name, os, arch, variant) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableUpdate", reflect.TypeOf((*MockInterface)(nil).EnvironmentVariableUpdate), projectKey, envName, variable) } -// DownloadURLFromGithub mocks base method -func (m *MockInterface) DownloadURLFromGithub(filename string) (string, error) { +// EnvironmentVariablesList mocks base method. +func (m *MockInterface) EnvironmentVariablesList(key, envName string) ([]sdk.Variable, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DownloadURLFromGithub", filename) - ret0, _ := ret[0].(string) + ret := m.ctrl.Call(m, "EnvironmentVariablesList", key, envName) + ret0, _ := ret[0].([]sdk.Variable) ret1, _ := ret[1].(error) return ret0, ret1 } -// DownloadURLFromGithub indicates an expected call of DownloadURLFromGithub -func (mr *MockInterfaceMockRecorder) DownloadURLFromGithub(filename interface{}) *gomock.Call { +// EnvironmentVariablesList indicates an expected call of EnvironmentVariablesList. +func (mr *MockInterfaceMockRecorder) EnvironmentVariablesList(key, envName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadURLFromGithub", reflect.TypeOf((*MockInterface)(nil).DownloadURLFromGithub), filename) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariablesList", reflect.TypeOf((*MockInterface)(nil).EnvironmentVariablesList), key, envName) } -// EnvironmentCreate mocks base method -func (m *MockInterface) EnvironmentCreate(projectKey string, env *sdk.Environment) error { +// FeatureCreate mocks base method. +func (m *MockInterface) FeatureCreate(f sdk.Feature) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentCreate", projectKey, env) + ret := m.ctrl.Call(m, "FeatureCreate", f) ret0, _ := ret[0].(error) return ret0 } -// EnvironmentCreate indicates an expected call of EnvironmentCreate -func (mr *MockInterfaceMockRecorder) EnvironmentCreate(projectKey, env interface{}) *gomock.Call { +// FeatureCreate indicates an expected call of FeatureCreate. +func (mr *MockInterfaceMockRecorder) FeatureCreate(f interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentCreate", reflect.TypeOf((*MockInterface)(nil).EnvironmentCreate), projectKey, env) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureCreate", reflect.TypeOf((*MockInterface)(nil).FeatureCreate), f) } -// EnvironmentDelete mocks base method -func (m *MockInterface) EnvironmentDelete(projectKey, envName string) error { +// FeatureDelete mocks base method. +func (m *MockInterface) FeatureDelete(name sdk.FeatureName) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentDelete", projectKey, envName) + ret := m.ctrl.Call(m, "FeatureDelete", name) ret0, _ := ret[0].(error) return ret0 } -// EnvironmentDelete indicates an expected call of EnvironmentDelete -func (mr *MockInterfaceMockRecorder) EnvironmentDelete(projectKey, envName interface{}) *gomock.Call { +// FeatureDelete indicates an expected call of FeatureDelete. +func (mr *MockInterfaceMockRecorder) FeatureDelete(name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentDelete", reflect.TypeOf((*MockInterface)(nil).EnvironmentDelete), projectKey, envName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureDelete", reflect.TypeOf((*MockInterface)(nil).FeatureDelete), name) } -// EnvironmentGet mocks base method -func (m *MockInterface) EnvironmentGet(projectKey, envName string, opts ...cdsclient.RequestModifier) (*sdk.Environment, error) { +// FeatureEnabled mocks base method. +func (m *MockInterface) FeatureEnabled(name sdk.FeatureName, params map[string]string) (sdk.FeatureEnabledResponse, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, envName} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "EnvironmentGet", varargs...) - ret0, _ := ret[0].(*sdk.Environment) + ret := m.ctrl.Call(m, "FeatureEnabled", name, params) + ret0, _ := ret[0].(sdk.FeatureEnabledResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// EnvironmentGet indicates an expected call of EnvironmentGet -func (mr *MockInterfaceMockRecorder) EnvironmentGet(projectKey, envName interface{}, opts ...interface{}) *gomock.Call { +// FeatureEnabled indicates an expected call of FeatureEnabled. +func (mr *MockInterfaceMockRecorder) FeatureEnabled(name, params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, envName}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentGet", reflect.TypeOf((*MockInterface)(nil).EnvironmentGet), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureEnabled", reflect.TypeOf((*MockInterface)(nil).FeatureEnabled), name, params) } -// EnvironmentList mocks base method -func (m *MockInterface) EnvironmentList(projectKey string) ([]sdk.Environment, error) { +// FeatureGet mocks base method. +func (m *MockInterface) FeatureGet(name sdk.FeatureName) (sdk.Feature, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentList", projectKey) - ret0, _ := ret[0].([]sdk.Environment) + ret := m.ctrl.Call(m, "FeatureGet", name) + ret0, _ := ret[0].(sdk.Feature) ret1, _ := ret[1].(error) return ret0, ret1 } -// EnvironmentList indicates an expected call of EnvironmentList -func (mr *MockInterfaceMockRecorder) EnvironmentList(projectKey interface{}) *gomock.Call { +// FeatureGet indicates an expected call of FeatureGet. +func (mr *MockInterfaceMockRecorder) FeatureGet(name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentList", reflect.TypeOf((*MockInterface)(nil).EnvironmentList), projectKey) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureGet", reflect.TypeOf((*MockInterface)(nil).FeatureGet), name) } -// EnvironmentExport mocks base method -func (m *MockInterface) EnvironmentExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { +// FeatureUpdate mocks base method. +func (m *MockInterface) FeatureUpdate(f sdk.Feature) error { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "EnvironmentExport", varargs...) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "FeatureUpdate", f) + ret0, _ := ret[0].(error) + return ret0 } -// EnvironmentExport indicates an expected call of EnvironmentExport -func (mr *MockInterfaceMockRecorder) EnvironmentExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { +// FeatureUpdate indicates an expected call of FeatureUpdate. +func (mr *MockInterfaceMockRecorder) FeatureUpdate(f interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentExport", reflect.TypeOf((*MockInterface)(nil).EnvironmentExport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureUpdate", reflect.TypeOf((*MockInterface)(nil).FeatureUpdate), f) } -// EnvironmentImport mocks base method -func (m *MockInterface) EnvironmentImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { +// Features mocks base method. +func (m *MockInterface) Features() ([]sdk.Feature, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, content} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "EnvironmentImport", varargs...) - ret0, _ := ret[0].([]string) + ret := m.ctrl.Call(m, "Features") + ret0, _ := ret[0].([]sdk.Feature) ret1, _ := ret[1].(error) return ret0, ret1 } -// EnvironmentImport indicates an expected call of EnvironmentImport -func (mr *MockInterfaceMockRecorder) EnvironmentImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { +// Features indicates an expected call of Features. +func (mr *MockInterfaceMockRecorder) Features() *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, content}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentImport", reflect.TypeOf((*MockInterface)(nil).EnvironmentImport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Features", reflect.TypeOf((*MockInterface)(nil).Features)) } -// EnvironmentVariablesList mocks base method -func (m *MockInterface) EnvironmentVariablesList(key, envName string) ([]sdk.Variable, error) { +// GetJSON mocks base method. +func (m *MockInterface) GetJSON(ctx context.Context, path string, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentVariablesList", key, envName) - ret0, _ := ret[0].([]sdk.Variable) + varargs := []interface{}{ctx, path, out} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetJSON", varargs...) + ret0, _ := ret[0].(int) ret1, _ := ret[1].(error) return ret0, ret1 } -// EnvironmentVariablesList indicates an expected call of EnvironmentVariablesList -func (mr *MockInterfaceMockRecorder) EnvironmentVariablesList(key, envName interface{}) *gomock.Call { +// GetJSON indicates an expected call of GetJSON. +func (mr *MockInterfaceMockRecorder) GetJSON(ctx, path, out interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariablesList", reflect.TypeOf((*MockInterface)(nil).EnvironmentVariablesList), key, envName) + varargs := append([]interface{}{ctx, path, out}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJSON", reflect.TypeOf((*MockInterface)(nil).GetJSON), varargs...) } -// EnvironmentVariableCreate mocks base method -func (m *MockInterface) EnvironmentVariableCreate(projectKey, envName string, variable *sdk.Variable) error { +// GroupCreate mocks base method. +func (m *MockInterface) GroupCreate(group *sdk.Group) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentVariableCreate", projectKey, envName, variable) + ret := m.ctrl.Call(m, "GroupCreate", group) ret0, _ := ret[0].(error) return ret0 } -// EnvironmentVariableCreate indicates an expected call of EnvironmentVariableCreate -func (mr *MockInterfaceMockRecorder) EnvironmentVariableCreate(projectKey, envName, variable interface{}) *gomock.Call { +// GroupCreate indicates an expected call of GroupCreate. +func (mr *MockInterfaceMockRecorder) GroupCreate(group interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableCreate", reflect.TypeOf((*MockInterface)(nil).EnvironmentVariableCreate), projectKey, envName, variable) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupCreate", reflect.TypeOf((*MockInterface)(nil).GroupCreate), group) } -// EnvironmentVariableDelete mocks base method -func (m *MockInterface) EnvironmentVariableDelete(projectKey, envName, varName string) error { +// GroupDelete mocks base method. +func (m *MockInterface) GroupDelete(name string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentVariableDelete", projectKey, envName, varName) + ret := m.ctrl.Call(m, "GroupDelete", name) ret0, _ := ret[0].(error) return ret0 } -// EnvironmentVariableDelete indicates an expected call of EnvironmentVariableDelete -func (mr *MockInterfaceMockRecorder) EnvironmentVariableDelete(projectKey, envName, varName interface{}) *gomock.Call { +// GroupDelete indicates an expected call of GroupDelete. +func (mr *MockInterfaceMockRecorder) GroupDelete(name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableDelete", reflect.TypeOf((*MockInterface)(nil).EnvironmentVariableDelete), projectKey, envName, varName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupDelete", reflect.TypeOf((*MockInterface)(nil).GroupDelete), name) } -// EnvironmentVariableGet mocks base method -func (m *MockInterface) EnvironmentVariableGet(projectKey, envName, varName string) (*sdk.Variable, error) { +// GroupGet mocks base method. +func (m *MockInterface) GroupGet(name string, mods ...cdsclient.RequestModifier) (*sdk.Group, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentVariableGet", projectKey, envName, varName) - ret0, _ := ret[0].(*sdk.Variable) + varargs := []interface{}{name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GroupGet", varargs...) + ret0, _ := ret[0].(*sdk.Group) ret1, _ := ret[1].(error) return ret0, ret1 } -// EnvironmentVariableGet indicates an expected call of EnvironmentVariableGet -func (mr *MockInterfaceMockRecorder) EnvironmentVariableGet(projectKey, envName, varName interface{}) *gomock.Call { +// GroupGet indicates an expected call of GroupGet. +func (mr *MockInterfaceMockRecorder) GroupGet(name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableGet", reflect.TypeOf((*MockInterface)(nil).EnvironmentVariableGet), projectKey, envName, varName) + varargs := append([]interface{}{name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupGet", reflect.TypeOf((*MockInterface)(nil).GroupGet), varargs...) } -// EnvironmentVariableUpdate mocks base method -func (m *MockInterface) EnvironmentVariableUpdate(projectKey, envName string, variable *sdk.Variable) error { +// GroupList mocks base method. +func (m *MockInterface) GroupList() ([]sdk.Group, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentVariableUpdate", projectKey, envName, variable) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "GroupList") + ret0, _ := ret[0].([]sdk.Group) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// EnvironmentVariableUpdate indicates an expected call of EnvironmentVariableUpdate -func (mr *MockInterfaceMockRecorder) EnvironmentVariableUpdate(projectKey, envName, variable interface{}) *gomock.Call { +// GroupList indicates an expected call of GroupList. +func (mr *MockInterfaceMockRecorder) GroupList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentVariableUpdate", reflect.TypeOf((*MockInterface)(nil).EnvironmentVariableUpdate), projectKey, envName, variable) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupList", reflect.TypeOf((*MockInterface)(nil).GroupList)) } -// EnvironmentKeysList mocks base method -func (m *MockInterface) EnvironmentKeysList(projectKey, envName string) ([]sdk.EnvironmentKey, error) { +// GroupMemberAdd mocks base method. +func (m *MockInterface) GroupMemberAdd(groupName string, member *sdk.GroupMember) (sdk.Group, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentKeysList", projectKey, envName) - ret0, _ := ret[0].([]sdk.EnvironmentKey) + ret := m.ctrl.Call(m, "GroupMemberAdd", groupName, member) + ret0, _ := ret[0].(sdk.Group) ret1, _ := ret[1].(error) return ret0, ret1 } -// EnvironmentKeysList indicates an expected call of EnvironmentKeysList -func (mr *MockInterfaceMockRecorder) EnvironmentKeysList(projectKey, envName interface{}) *gomock.Call { +// GroupMemberAdd indicates an expected call of GroupMemberAdd. +func (mr *MockInterfaceMockRecorder) GroupMemberAdd(groupName, member interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeysList", reflect.TypeOf((*MockInterface)(nil).EnvironmentKeysList), projectKey, envName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupMemberAdd", reflect.TypeOf((*MockInterface)(nil).GroupMemberAdd), groupName, member) } -// EnvironmentKeyCreate mocks base method -func (m *MockInterface) EnvironmentKeyCreate(projectKey, envName string, keyEnv *sdk.EnvironmentKey) error { +// GroupMemberEdit mocks base method. +func (m *MockInterface) GroupMemberEdit(groupName string, member *sdk.GroupMember) (sdk.Group, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentKeyCreate", projectKey, envName, keyEnv) + ret := m.ctrl.Call(m, "GroupMemberEdit", groupName, member) + ret0, _ := ret[0].(sdk.Group) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GroupMemberEdit indicates an expected call of GroupMemberEdit. +func (mr *MockInterfaceMockRecorder) GroupMemberEdit(groupName, member interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupMemberEdit", reflect.TypeOf((*MockInterface)(nil).GroupMemberEdit), groupName, member) +} + +// GroupMemberRemove mocks base method. +func (m *MockInterface) GroupMemberRemove(groupName, username string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GroupMemberRemove", groupName, username) ret0, _ := ret[0].(error) return ret0 } -// EnvironmentKeyCreate indicates an expected call of EnvironmentKeyCreate -func (mr *MockInterfaceMockRecorder) EnvironmentKeyCreate(projectKey, envName, keyEnv interface{}) *gomock.Call { +// GroupMemberRemove indicates an expected call of GroupMemberRemove. +func (mr *MockInterfaceMockRecorder) GroupMemberRemove(groupName, username interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeyCreate", reflect.TypeOf((*MockInterface)(nil).EnvironmentKeyCreate), projectKey, envName, keyEnv) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupMemberRemove", reflect.TypeOf((*MockInterface)(nil).GroupMemberRemove), groupName, username) } -// EnvironmentKeysDelete mocks base method -func (m *MockInterface) EnvironmentKeysDelete(projectKey, envName, keyEnvName string) error { +// GroupRename mocks base method. +func (m *MockInterface) GroupRename(oldName, newName string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EnvironmentKeysDelete", projectKey, envName, keyEnvName) + ret := m.ctrl.Call(m, "GroupRename", oldName, newName) ret0, _ := ret[0].(error) return ret0 } -// EnvironmentKeysDelete indicates an expected call of EnvironmentKeysDelete -func (mr *MockInterfaceMockRecorder) EnvironmentKeysDelete(projectKey, envName, keyEnvName interface{}) *gomock.Call { +// GroupRename indicates an expected call of GroupRename. +func (mr *MockInterfaceMockRecorder) GroupRename(oldName, newName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnvironmentKeysDelete", reflect.TypeOf((*MockInterface)(nil).EnvironmentKeysDelete), projectKey, envName, keyEnvName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupRename", reflect.TypeOf((*MockInterface)(nil).GroupRename), oldName, newName) } -// WebsocketEventsListen mocks base method -func (m *MockInterface) WebsocketEventsListen(ctx context.Context, goRoutines *sdk.GoRoutines, chanMsgToSend <-chan []sdk.WebsocketFilter, chanMsgReceived chan<- sdk.WebsocketEvent, chanErrorReceived chan<- error) { +// HTTPClient mocks base method. +func (m *MockInterface) HTTPClient() *http.Client { m.ctrl.T.Helper() - m.ctrl.Call(m, "WebsocketEventsListen", ctx, goRoutines, chanMsgToSend, chanMsgReceived, chanErrorReceived) + ret := m.ctrl.Call(m, "HTTPClient") + ret0, _ := ret[0].(*http.Client) + return ret0 } -// WebsocketEventsListen indicates an expected call of WebsocketEventsListen -func (mr *MockInterfaceMockRecorder) WebsocketEventsListen(ctx, goRoutines, chanMsgToSend, chanMsgReceived, chanErrorReceived interface{}) *gomock.Call { +// HTTPClient indicates an expected call of HTTPClient. +func (mr *MockInterfaceMockRecorder) HTTPClient() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WebsocketEventsListen", reflect.TypeOf((*MockInterface)(nil).WebsocketEventsListen), ctx, goRoutines, chanMsgToSend, chanMsgReceived, chanErrorReceived) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPClient", reflect.TypeOf((*MockInterface)(nil).HTTPClient)) } -// PipelineExport mocks base method -func (m *MockInterface) PipelineExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { +// HTTPNoTimeoutClient mocks base method. +func (m *MockInterface) HTTPNoTimeoutClient() *http.Client { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "PipelineExport", varargs...) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "HTTPNoTimeoutClient") + ret0, _ := ret[0].(*http.Client) + return ret0 } -// PipelineExport indicates an expected call of PipelineExport -func (mr *MockInterfaceMockRecorder) PipelineExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { +// HTTPNoTimeoutClient indicates an expected call of HTTPNoTimeoutClient. +func (mr *MockInterfaceMockRecorder) HTTPNoTimeoutClient() *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineExport", reflect.TypeOf((*MockInterface)(nil).PipelineExport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPNoTimeoutClient", reflect.TypeOf((*MockInterface)(nil).HTTPNoTimeoutClient)) } -// PipelineImport mocks base method -func (m *MockInterface) PipelineImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { +// HTTPWebsocketClient mocks base method. +func (m *MockInterface) HTTPWebsocketClient() *websocket.Dialer { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, content} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "PipelineImport", varargs...) - ret0, _ := ret[0].([]string) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "HTTPWebsocketClient") + ret0, _ := ret[0].(*websocket.Dialer) + return ret0 } -// PipelineImport indicates an expected call of PipelineImport -func (mr *MockInterfaceMockRecorder) PipelineImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { +// HTTPWebsocketClient indicates an expected call of HTTPWebsocketClient. +func (mr *MockInterfaceMockRecorder) HTTPWebsocketClient() *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, content}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineImport", reflect.TypeOf((*MockInterface)(nil).PipelineImport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPWebsocketClient", reflect.TypeOf((*MockInterface)(nil).HTTPWebsocketClient)) } -// ApplicationExport mocks base method -func (m *MockInterface) ApplicationExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { +// IntegrationModelAdd mocks base method. +func (m_2 *MockInterface) IntegrationModelAdd(m *sdk.IntegrationModel) error { + m_2.ctrl.T.Helper() + ret := m_2.ctrl.Call(m_2, "IntegrationModelAdd", m) + ret0, _ := ret[0].(error) + return ret0 +} + +// IntegrationModelAdd indicates an expected call of IntegrationModelAdd. +func (mr *MockInterfaceMockRecorder) IntegrationModelAdd(m interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelAdd", reflect.TypeOf((*MockInterface)(nil).IntegrationModelAdd), m) +} + +// IntegrationModelDelete mocks base method. +func (m *MockInterface) IntegrationModelDelete(name string) error { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ApplicationExport", varargs...) - ret0, _ := ret[0].([]byte) + ret := m.ctrl.Call(m, "IntegrationModelDelete", name) + ret0, _ := ret[0].(error) + return ret0 +} + +// IntegrationModelDelete indicates an expected call of IntegrationModelDelete. +func (mr *MockInterfaceMockRecorder) IntegrationModelDelete(name interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelDelete", reflect.TypeOf((*MockInterface)(nil).IntegrationModelDelete), name) +} + +// IntegrationModelGet mocks base method. +func (m *MockInterface) IntegrationModelGet(name string) (sdk.IntegrationModel, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "IntegrationModelGet", name) + ret0, _ := ret[0].(sdk.IntegrationModel) ret1, _ := ret[1].(error) return ret0, ret1 } -// ApplicationExport indicates an expected call of ApplicationExport -func (mr *MockInterfaceMockRecorder) ApplicationExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { +// IntegrationModelGet indicates an expected call of IntegrationModelGet. +func (mr *MockInterfaceMockRecorder) IntegrationModelGet(name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationExport", reflect.TypeOf((*MockInterface)(nil).ApplicationExport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelGet", reflect.TypeOf((*MockInterface)(nil).IntegrationModelGet), name) } -// ApplicationImport mocks base method -func (m *MockInterface) ApplicationImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { +// IntegrationModelList mocks base method. +func (m *MockInterface) IntegrationModelList() ([]sdk.IntegrationModel, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, content} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ApplicationImport", varargs...) - ret0, _ := ret[0].([]string) + ret := m.ctrl.Call(m, "IntegrationModelList") + ret0, _ := ret[0].([]sdk.IntegrationModel) ret1, _ := ret[1].(error) return ret0, ret1 } -// ApplicationImport indicates an expected call of ApplicationImport -func (mr *MockInterfaceMockRecorder) ApplicationImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { +// IntegrationModelList indicates an expected call of IntegrationModelList. +func (mr *MockInterfaceMockRecorder) IntegrationModelList() *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, content}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationImport", reflect.TypeOf((*MockInterface)(nil).ApplicationImport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelList", reflect.TypeOf((*MockInterface)(nil).IntegrationModelList)) } -// WorkflowExport mocks base method -func (m *MockInterface) WorkflowExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { +// IntegrationModelUpdate mocks base method. +func (m_2 *MockInterface) IntegrationModelUpdate(m *sdk.IntegrationModel) error { + m_2.ctrl.T.Helper() + ret := m_2.ctrl.Call(m_2, "IntegrationModelUpdate", m) + ret0, _ := ret[0].(error) + return ret0 +} + +// IntegrationModelUpdate indicates an expected call of IntegrationModelUpdate. +func (mr *MockInterfaceMockRecorder) IntegrationModelUpdate(m interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelUpdate", reflect.TypeOf((*MockInterface)(nil).IntegrationModelUpdate), m) +} + +// Maintenance mocks base method. +func (m *MockInterface) Maintenance(enable, hooks bool) error { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkflowExport", varargs...) - ret0, _ := ret[0].([]byte) + ret := m.ctrl.Call(m, "Maintenance", enable, hooks) + ret0, _ := ret[0].(error) + return ret0 +} + +// Maintenance indicates an expected call of Maintenance. +func (mr *MockInterfaceMockRecorder) Maintenance(enable, hooks interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Maintenance", reflect.TypeOf((*MockInterface)(nil).Maintenance), enable, hooks) +} + +// MonDBMigrate mocks base method. +func (m *MockInterface) MonDBMigrate() ([]sdk.MonDBMigrate, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "MonDBMigrate") + ret0, _ := ret[0].([]sdk.MonDBMigrate) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowExport indicates an expected call of WorkflowExport -func (mr *MockInterfaceMockRecorder) WorkflowExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { +// MonDBMigrate indicates an expected call of MonDBMigrate. +func (mr *MockInterfaceMockRecorder) MonDBMigrate() *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowExport", reflect.TypeOf((*MockInterface)(nil).WorkflowExport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonDBMigrate", reflect.TypeOf((*MockInterface)(nil).MonDBMigrate)) } -// WorkflowPull mocks base method -func (m *MockInterface) WorkflowPull(projectKey, name string, mods ...cdsclient.RequestModifier) (*tar.Reader, error) { +// MonErrorsGet mocks base method. +func (m *MockInterface) MonErrorsGet(requestID string) ([]sdk.Error, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkflowPull", varargs...) - ret0, _ := ret[0].(*tar.Reader) + ret := m.ctrl.Call(m, "MonErrorsGet", requestID) + ret0, _ := ret[0].([]sdk.Error) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowPull indicates an expected call of WorkflowPull -func (mr *MockInterfaceMockRecorder) WorkflowPull(projectKey, name interface{}, mods ...interface{}) *gomock.Call { +// MonErrorsGet indicates an expected call of MonErrorsGet. +func (mr *MockInterfaceMockRecorder) MonErrorsGet(requestID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowPull", reflect.TypeOf((*MockInterface)(nil).WorkflowPull), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonErrorsGet", reflect.TypeOf((*MockInterface)(nil).MonErrorsGet), requestID) } -// WorkflowImport mocks base method -func (m *MockInterface) WorkflowImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { +// MonStatus mocks base method. +func (m *MockInterface) MonStatus() (*sdk.MonitoringStatus, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, content} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkflowImport", varargs...) - ret0, _ := ret[0].([]string) + ret := m.ctrl.Call(m, "MonStatus") + ret0, _ := ret[0].(*sdk.MonitoringStatus) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowImport indicates an expected call of WorkflowImport -func (mr *MockInterfaceMockRecorder) WorkflowImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { +// MonStatus indicates an expected call of MonStatus. +func (mr *MockInterfaceMockRecorder) MonStatus() *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, content}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowImport", reflect.TypeOf((*MockInterface)(nil).WorkflowImport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonStatus", reflect.TypeOf((*MockInterface)(nil).MonStatus)) } -// WorkerModelExport mocks base method -func (m *MockInterface) WorkerModelExport(groupName, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { +// MonVersion mocks base method. +func (m *MockInterface) MonVersion() (*sdk.Version, error) { m.ctrl.T.Helper() - varargs := []interface{}{groupName, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkerModelExport", varargs...) - ret0, _ := ret[0].([]byte) + ret := m.ctrl.Call(m, "MonVersion") + ret0, _ := ret[0].(*sdk.Version) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerModelExport indicates an expected call of WorkerModelExport -func (mr *MockInterfaceMockRecorder) WorkerModelExport(groupName, name interface{}, mods ...interface{}) *gomock.Call { +// MonVersion indicates an expected call of MonVersion. +func (mr *MockInterfaceMockRecorder) MonVersion() *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{groupName, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelExport", reflect.TypeOf((*MockInterface)(nil).WorkerModelExport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonVersion", reflect.TypeOf((*MockInterface)(nil).MonVersion)) } -// WorkerModelImport mocks base method -func (m *MockInterface) WorkerModelImport(content io.Reader, mods ...cdsclient.RequestModifier) (*sdk.Model, error) { +// Navbar mocks base method. +func (m *MockInterface) Navbar() ([]sdk.NavbarProjectData, error) { m.ctrl.T.Helper() - varargs := []interface{}{content} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkerModelImport", varargs...) - ret0, _ := ret[0].(*sdk.Model) + ret := m.ctrl.Call(m, "Navbar") + ret0, _ := ret[0].([]sdk.NavbarProjectData) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerModelImport indicates an expected call of WorkerModelImport -func (mr *MockInterfaceMockRecorder) WorkerModelImport(content interface{}, mods ...interface{}) *gomock.Call { +// Navbar indicates an expected call of Navbar. +func (mr *MockInterfaceMockRecorder) Navbar() *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{content}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelImport", reflect.TypeOf((*MockInterface)(nil).WorkerModelImport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Navbar", reflect.TypeOf((*MockInterface)(nil).Navbar)) } -// WorkflowPush mocks base method -func (m *MockInterface) WorkflowPush(projectKey string, tarContent io.Reader, mods ...cdsclient.RequestModifier) ([]string, *tar.Reader, error) { +// PipelineCreate mocks base method. +func (m *MockInterface) PipelineCreate(projectKey string, pip *sdk.Pipeline) error { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, tarContent} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkflowPush", varargs...) - ret0, _ := ret[0].([]string) - ret1, _ := ret[1].(*tar.Reader) - ret2, _ := ret[2].(error) - return ret0, ret1, ret2 + ret := m.ctrl.Call(m, "PipelineCreate", projectKey, pip) + ret0, _ := ret[0].(error) + return ret0 +} + +// PipelineCreate indicates an expected call of PipelineCreate. +func (mr *MockInterfaceMockRecorder) PipelineCreate(projectKey, pip interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineCreate", reflect.TypeOf((*MockInterface)(nil).PipelineCreate), projectKey, pip) +} + +// PipelineDelete mocks base method. +func (m *MockInterface) PipelineDelete(projectKey, name string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PipelineDelete", projectKey, name) + ret0, _ := ret[0].(error) + return ret0 } -// WorkflowPush indicates an expected call of WorkflowPush -func (mr *MockInterfaceMockRecorder) WorkflowPush(projectKey, tarContent interface{}, mods ...interface{}) *gomock.Call { +// PipelineDelete indicates an expected call of PipelineDelete. +func (mr *MockInterfaceMockRecorder) PipelineDelete(projectKey, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, tarContent}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowPush", reflect.TypeOf((*MockInterface)(nil).WorkflowPush), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineDelete", reflect.TypeOf((*MockInterface)(nil).PipelineDelete), projectKey, name) } -// WorkflowAsCodeStart mocks base method -func (m *MockInterface) WorkflowAsCodeStart(projectKey, repoURL string, repoStrategy sdk.RepositoryStrategy) (*sdk.Operation, error) { +// PipelineExport mocks base method. +func (m *MockInterface) PipelineExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowAsCodeStart", projectKey, repoURL, repoStrategy) - ret0, _ := ret[0].(*sdk.Operation) + varargs := []interface{}{projectKey, name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PipelineExport", varargs...) + ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowAsCodeStart indicates an expected call of WorkflowAsCodeStart -func (mr *MockInterfaceMockRecorder) WorkflowAsCodeStart(projectKey, repoURL, repoStrategy interface{}) *gomock.Call { +// PipelineExport indicates an expected call of PipelineExport. +func (mr *MockInterfaceMockRecorder) PipelineExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodeStart", reflect.TypeOf((*MockInterface)(nil).WorkflowAsCodeStart), projectKey, repoURL, repoStrategy) + varargs := append([]interface{}{projectKey, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineExport", reflect.TypeOf((*MockInterface)(nil).PipelineExport), varargs...) } -// WorkflowAsCodeInfo mocks base method -func (m *MockInterface) WorkflowAsCodeInfo(projectKey, operationID string) (*sdk.Operation, error) { +// PipelineGet mocks base method. +func (m *MockInterface) PipelineGet(projectKey, name string, mods ...cdsclient.RequestModifier) (*sdk.Pipeline, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowAsCodeInfo", projectKey, operationID) - ret0, _ := ret[0].(*sdk.Operation) + varargs := []interface{}{projectKey, name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PipelineGet", varargs...) + ret0, _ := ret[0].(*sdk.Pipeline) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowAsCodeInfo indicates an expected call of WorkflowAsCodeInfo -func (mr *MockInterfaceMockRecorder) WorkflowAsCodeInfo(projectKey, operationID interface{}) *gomock.Call { +// PipelineGet indicates an expected call of PipelineGet. +func (mr *MockInterfaceMockRecorder) PipelineGet(projectKey, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodeInfo", reflect.TypeOf((*MockInterface)(nil).WorkflowAsCodeInfo), projectKey, operationID) + varargs := append([]interface{}{projectKey, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineGet", reflect.TypeOf((*MockInterface)(nil).PipelineGet), varargs...) } -// WorkflowAsCodePerform mocks base method -func (m *MockInterface) WorkflowAsCodePerform(projectKey, operationID string) ([]string, error) { +// PipelineImport mocks base method. +func (m *MockInterface) PipelineImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowAsCodePerform", projectKey, operationID) + varargs := []interface{}{projectKey, content} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PipelineImport", varargs...) ret0, _ := ret[0].([]string) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowAsCodePerform indicates an expected call of WorkflowAsCodePerform -func (mr *MockInterfaceMockRecorder) WorkflowAsCodePerform(projectKey, operationID interface{}) *gomock.Call { +// PipelineImport indicates an expected call of PipelineImport. +func (mr *MockInterfaceMockRecorder) PipelineImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodePerform", reflect.TypeOf((*MockInterface)(nil).WorkflowAsCodePerform), projectKey, operationID) + varargs := append([]interface{}{projectKey, content}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineImport", reflect.TypeOf((*MockInterface)(nil).PipelineImport), varargs...) } -// FeatureEnabled mocks base method -func (m *MockInterface) FeatureEnabled(name sdk.FeatureName, params map[string]string) (sdk.FeatureEnabledResponse, error) { +// PipelineList mocks base method. +func (m *MockInterface) PipelineList(projectKey string) ([]sdk.Pipeline, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FeatureEnabled", name, params) - ret0, _ := ret[0].(sdk.FeatureEnabledResponse) + ret := m.ctrl.Call(m, "PipelineList", projectKey) + ret0, _ := ret[0].([]sdk.Pipeline) ret1, _ := ret[1].(error) return ret0, ret1 } -// FeatureEnabled indicates an expected call of FeatureEnabled -func (mr *MockInterfaceMockRecorder) FeatureEnabled(name, params interface{}) *gomock.Call { +// PipelineList indicates an expected call of PipelineList. +func (mr *MockInterfaceMockRecorder) PipelineList(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FeatureEnabled", reflect.TypeOf((*MockInterface)(nil).FeatureEnabled), name, params) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineList", reflect.TypeOf((*MockInterface)(nil).PipelineList), projectKey) } -// GroupList mocks base method -func (m *MockInterface) GroupList() ([]sdk.Group, error) { +// PluginAdd mocks base method. +func (m *MockInterface) PluginAdd(arg0 *sdk.GRPCPlugin) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GroupList") - ret0, _ := ret[0].([]sdk.Group) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "PluginAdd", arg0) + ret0, _ := ret[0].(error) + return ret0 } -// GroupList indicates an expected call of GroupList -func (mr *MockInterfaceMockRecorder) GroupList() *gomock.Call { +// PluginAdd indicates an expected call of PluginAdd. +func (mr *MockInterfaceMockRecorder) PluginAdd(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupList", reflect.TypeOf((*MockInterface)(nil).GroupList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginAdd", reflect.TypeOf((*MockInterface)(nil).PluginAdd), arg0) } -// GroupGet mocks base method -func (m *MockInterface) GroupGet(name string, mods ...cdsclient.RequestModifier) (*sdk.Group, error) { +// PluginAddBinary mocks base method. +func (m *MockInterface) PluginAddBinary(arg0 *sdk.GRPCPlugin, arg1 *sdk.GRPCPluginBinary) error { m.ctrl.T.Helper() - varargs := []interface{}{name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "GroupGet", varargs...) - ret0, _ := ret[0].(*sdk.Group) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "PluginAddBinary", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 } -// GroupGet indicates an expected call of GroupGet -func (mr *MockInterfaceMockRecorder) GroupGet(name interface{}, mods ...interface{}) *gomock.Call { +// PluginAddBinary indicates an expected call of PluginAddBinary. +func (mr *MockInterfaceMockRecorder) PluginAddBinary(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupGet", reflect.TypeOf((*MockInterface)(nil).GroupGet), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginAddBinary", reflect.TypeOf((*MockInterface)(nil).PluginAddBinary), arg0, arg1) } -// GroupCreate mocks base method -func (m *MockInterface) GroupCreate(group *sdk.Group) error { +// PluginDelete mocks base method. +func (m *MockInterface) PluginDelete(arg0 string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GroupCreate", group) + ret := m.ctrl.Call(m, "PluginDelete", arg0) ret0, _ := ret[0].(error) return ret0 } -// GroupCreate indicates an expected call of GroupCreate -func (mr *MockInterfaceMockRecorder) GroupCreate(group interface{}) *gomock.Call { +// PluginDelete indicates an expected call of PluginDelete. +func (mr *MockInterfaceMockRecorder) PluginDelete(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupCreate", reflect.TypeOf((*MockInterface)(nil).GroupCreate), group) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginDelete", reflect.TypeOf((*MockInterface)(nil).PluginDelete), arg0) } -// GroupRename mocks base method -func (m *MockInterface) GroupRename(oldName, newName string) error { +// PluginDeleteBinary mocks base method. +func (m *MockInterface) PluginDeleteBinary(name, os, arch string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GroupRename", oldName, newName) + ret := m.ctrl.Call(m, "PluginDeleteBinary", name, os, arch) ret0, _ := ret[0].(error) return ret0 } -// GroupRename indicates an expected call of GroupRename -func (mr *MockInterfaceMockRecorder) GroupRename(oldName, newName interface{}) *gomock.Call { +// PluginDeleteBinary indicates an expected call of PluginDeleteBinary. +func (mr *MockInterfaceMockRecorder) PluginDeleteBinary(name, os, arch interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupRename", reflect.TypeOf((*MockInterface)(nil).GroupRename), oldName, newName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginDeleteBinary", reflect.TypeOf((*MockInterface)(nil).PluginDeleteBinary), name, os, arch) } -// GroupDelete mocks base method -func (m *MockInterface) GroupDelete(name string) error { +// PluginGetBinary mocks base method. +func (m *MockInterface) PluginGetBinary(name, os, arch string, w io.Writer) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GroupDelete", name) + ret := m.ctrl.Call(m, "PluginGetBinary", name, os, arch, w) ret0, _ := ret[0].(error) return ret0 } -// GroupDelete indicates an expected call of GroupDelete -func (mr *MockInterfaceMockRecorder) GroupDelete(name interface{}) *gomock.Call { +// PluginGetBinary indicates an expected call of PluginGetBinary. +func (mr *MockInterfaceMockRecorder) PluginGetBinary(name, os, arch, w interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupDelete", reflect.TypeOf((*MockInterface)(nil).GroupDelete), name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginGetBinary", reflect.TypeOf((*MockInterface)(nil).PluginGetBinary), name, os, arch, w) } -// GroupMemberAdd mocks base method -func (m *MockInterface) GroupMemberAdd(groupName string, member *sdk.GroupMember) (sdk.Group, error) { +// PluginGetBinaryInfos mocks base method. +func (m *MockInterface) PluginGetBinaryInfos(name, os, arch string) (*sdk.GRPCPluginBinary, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GroupMemberAdd", groupName, member) - ret0, _ := ret[0].(sdk.Group) + ret := m.ctrl.Call(m, "PluginGetBinaryInfos", name, os, arch) + ret0, _ := ret[0].(*sdk.GRPCPluginBinary) ret1, _ := ret[1].(error) return ret0, ret1 } -// GroupMemberAdd indicates an expected call of GroupMemberAdd -func (mr *MockInterfaceMockRecorder) GroupMemberAdd(groupName, member interface{}) *gomock.Call { +// PluginGetBinaryInfos indicates an expected call of PluginGetBinaryInfos. +func (mr *MockInterfaceMockRecorder) PluginGetBinaryInfos(name, os, arch interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupMemberAdd", reflect.TypeOf((*MockInterface)(nil).GroupMemberAdd), groupName, member) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginGetBinaryInfos", reflect.TypeOf((*MockInterface)(nil).PluginGetBinaryInfos), name, os, arch) } -// GroupMemberEdit mocks base method -func (m *MockInterface) GroupMemberEdit(groupName string, member *sdk.GroupMember) (sdk.Group, error) { +// PluginUpdate mocks base method. +func (m *MockInterface) PluginUpdate(arg0 *sdk.GRPCPlugin) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GroupMemberEdit", groupName, member) - ret0, _ := ret[0].(sdk.Group) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "PluginUpdate", arg0) + ret0, _ := ret[0].(error) + return ret0 } -// GroupMemberEdit indicates an expected call of GroupMemberEdit -func (mr *MockInterfaceMockRecorder) GroupMemberEdit(groupName, member interface{}) *gomock.Call { +// PluginUpdate indicates an expected call of PluginUpdate. +func (mr *MockInterfaceMockRecorder) PluginUpdate(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupMemberEdit", reflect.TypeOf((*MockInterface)(nil).GroupMemberEdit), groupName, member) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginUpdate", reflect.TypeOf((*MockInterface)(nil).PluginUpdate), arg0) } -// GroupMemberRemove mocks base method -func (m *MockInterface) GroupMemberRemove(groupName, username string) error { +// PluginsGet mocks base method. +func (m *MockInterface) PluginsGet(arg0 string) (*sdk.GRPCPlugin, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GroupMemberRemove", groupName, username) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "PluginsGet", arg0) + ret0, _ := ret[0].(*sdk.GRPCPlugin) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// GroupMemberRemove indicates an expected call of GroupMemberRemove -func (mr *MockInterfaceMockRecorder) GroupMemberRemove(groupName, username interface{}) *gomock.Call { +// PluginsGet indicates an expected call of PluginsGet. +func (mr *MockInterfaceMockRecorder) PluginsGet(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GroupMemberRemove", reflect.TypeOf((*MockInterface)(nil).GroupMemberRemove), groupName, username) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginsGet", reflect.TypeOf((*MockInterface)(nil).PluginsGet), arg0) } -// PluginsList mocks base method +// PluginsList mocks base method. func (m *MockInterface) PluginsList() ([]sdk.GRPCPlugin, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PluginsList") @@ -6503,1143 +6535,1173 @@ func (m *MockInterface) PluginsList() ([]sdk.GRPCPlugin, error) { return ret0, ret1 } -// PluginsList indicates an expected call of PluginsList +// PluginsList indicates an expected call of PluginsList. func (mr *MockInterfaceMockRecorder) PluginsList() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginsList", reflect.TypeOf((*MockInterface)(nil).PluginsList)) } -// PluginsGet mocks base method -func (m *MockInterface) PluginsGet(arg0 string) (*sdk.GRPCPlugin, error) { +// PollVCSEvents mocks base method. +func (m *MockInterface) PollVCSEvents(uuid string, workflowID int64, vcsServer string, timestamp int64) (sdk.RepositoryEvents, time.Duration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginsGet", arg0) - ret0, _ := ret[0].(*sdk.GRPCPlugin) + ret := m.ctrl.Call(m, "PollVCSEvents", uuid, workflowID, vcsServer, timestamp) + ret0, _ := ret[0].(sdk.RepositoryEvents) + ret1, _ := ret[1].(time.Duration) + ret2, _ := ret[2].(error) + return ret0, ret1, ret2 +} + +// PollVCSEvents indicates an expected call of PollVCSEvents. +func (mr *MockInterfaceMockRecorder) PollVCSEvents(uuid, workflowID, vcsServer, timestamp interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PollVCSEvents", reflect.TypeOf((*MockInterface)(nil).PollVCSEvents), uuid, workflowID, vcsServer, timestamp) +} + +// PostJSON mocks base method. +func (m *MockInterface) PostJSON(ctx context.Context, path string, in, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, path, in, out} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PostJSON", varargs...) + ret0, _ := ret[0].(int) ret1, _ := ret[1].(error) return ret0, ret1 } -// PluginsGet indicates an expected call of PluginsGet -func (mr *MockInterfaceMockRecorder) PluginsGet(arg0 interface{}) *gomock.Call { +// PostJSON indicates an expected call of PostJSON. +func (mr *MockInterfaceMockRecorder) PostJSON(ctx, path, in, out interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginsGet", reflect.TypeOf((*MockInterface)(nil).PluginsGet), arg0) + varargs := append([]interface{}{ctx, path, in, out}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostJSON", reflect.TypeOf((*MockInterface)(nil).PostJSON), varargs...) } -// PluginAdd mocks base method -func (m *MockInterface) PluginAdd(arg0 *sdk.GRPCPlugin) error { +// ProjectAccess mocks base method. +func (m *MockInterface) ProjectAccess(ctx context.Context, projectKey, sessionID string, itemType sdk.CDNItemType) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginAdd", arg0) + ret := m.ctrl.Call(m, "ProjectAccess", ctx, projectKey, sessionID, itemType) ret0, _ := ret[0].(error) return ret0 } -// PluginAdd indicates an expected call of PluginAdd -func (mr *MockInterfaceMockRecorder) PluginAdd(arg0 interface{}) *gomock.Call { +// ProjectAccess indicates an expected call of ProjectAccess. +func (mr *MockInterfaceMockRecorder) ProjectAccess(ctx, projectKey, sessionID, itemType interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginAdd", reflect.TypeOf((*MockInterface)(nil).PluginAdd), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectAccess", reflect.TypeOf((*MockInterface)(nil).ProjectAccess), ctx, projectKey, sessionID, itemType) } -// PluginUpdate mocks base method -func (m *MockInterface) PluginUpdate(arg0 *sdk.GRPCPlugin) error { +// ProjectCreate mocks base method. +func (m *MockInterface) ProjectCreate(proj *sdk.Project) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginUpdate", arg0) + ret := m.ctrl.Call(m, "ProjectCreate", proj) ret0, _ := ret[0].(error) return ret0 } -// PluginUpdate indicates an expected call of PluginUpdate -func (mr *MockInterfaceMockRecorder) PluginUpdate(arg0 interface{}) *gomock.Call { +// ProjectCreate indicates an expected call of ProjectCreate. +func (mr *MockInterfaceMockRecorder) ProjectCreate(proj interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginUpdate", reflect.TypeOf((*MockInterface)(nil).PluginUpdate), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectCreate", reflect.TypeOf((*MockInterface)(nil).ProjectCreate), proj) } -// PluginDelete mocks base method -func (m *MockInterface) PluginDelete(arg0 string) error { +// ProjectDelete mocks base method. +func (m *MockInterface) ProjectDelete(projectKey string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginDelete", arg0) + ret := m.ctrl.Call(m, "ProjectDelete", projectKey) ret0, _ := ret[0].(error) return ret0 } -// PluginDelete indicates an expected call of PluginDelete -func (mr *MockInterfaceMockRecorder) PluginDelete(arg0 interface{}) *gomock.Call { +// ProjectDelete indicates an expected call of ProjectDelete. +func (mr *MockInterfaceMockRecorder) ProjectDelete(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginDelete", reflect.TypeOf((*MockInterface)(nil).PluginDelete), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectDelete", reflect.TypeOf((*MockInterface)(nil).ProjectDelete), projectKey) } -// PluginAddBinary mocks base method -func (m *MockInterface) PluginAddBinary(arg0 *sdk.GRPCPlugin, arg1 *sdk.GRPCPluginBinary) error { +// ProjectGet mocks base method. +func (m *MockInterface) ProjectGet(projectKey string, opts ...cdsclient.RequestModifier) (*sdk.Project, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginAddBinary", arg0, arg1) + varargs := []interface{}{projectKey} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ProjectGet", varargs...) + ret0, _ := ret[0].(*sdk.Project) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ProjectGet indicates an expected call of ProjectGet. +func (mr *MockInterfaceMockRecorder) ProjectGet(projectKey interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{projectKey}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGet", reflect.TypeOf((*MockInterface)(nil).ProjectGet), varargs...) +} + +// ProjectGroupAdd mocks base method. +func (m *MockInterface) ProjectGroupAdd(projectKey, groupName string, permission int, projectOnly bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ProjectGroupAdd", projectKey, groupName, permission, projectOnly) ret0, _ := ret[0].(error) return ret0 } -// PluginAddBinary indicates an expected call of PluginAddBinary -func (mr *MockInterfaceMockRecorder) PluginAddBinary(arg0, arg1 interface{}) *gomock.Call { +// ProjectGroupAdd indicates an expected call of ProjectGroupAdd. +func (mr *MockInterfaceMockRecorder) ProjectGroupAdd(projectKey, groupName, permission, projectOnly interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginAddBinary", reflect.TypeOf((*MockInterface)(nil).PluginAddBinary), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGroupAdd", reflect.TypeOf((*MockInterface)(nil).ProjectGroupAdd), projectKey, groupName, permission, projectOnly) } -// PluginDeleteBinary mocks base method -func (m *MockInterface) PluginDeleteBinary(name, os, arch string) error { +// ProjectGroupDelete mocks base method. +func (m *MockInterface) ProjectGroupDelete(projectKey, groupName string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginDeleteBinary", name, os, arch) + ret := m.ctrl.Call(m, "ProjectGroupDelete", projectKey, groupName) ret0, _ := ret[0].(error) return ret0 } -// PluginDeleteBinary indicates an expected call of PluginDeleteBinary -func (mr *MockInterfaceMockRecorder) PluginDeleteBinary(name, os, arch interface{}) *gomock.Call { +// ProjectGroupDelete indicates an expected call of ProjectGroupDelete. +func (mr *MockInterfaceMockRecorder) ProjectGroupDelete(projectKey, groupName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginDeleteBinary", reflect.TypeOf((*MockInterface)(nil).PluginDeleteBinary), name, os, arch) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGroupDelete", reflect.TypeOf((*MockInterface)(nil).ProjectGroupDelete), projectKey, groupName) +} + +// ProjectGroupsImport mocks base method. +func (m *MockInterface) ProjectGroupsImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) (sdk.Project, error) { + m.ctrl.T.Helper() + varargs := []interface{}{projectKey, content} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ProjectGroupsImport", varargs...) + ret0, _ := ret[0].(sdk.Project) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ProjectGroupsImport indicates an expected call of ProjectGroupsImport. +func (mr *MockInterfaceMockRecorder) ProjectGroupsImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{projectKey, content}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGroupsImport", reflect.TypeOf((*MockInterface)(nil).ProjectGroupsImport), varargs...) } -// PluginGetBinary mocks base method -func (m *MockInterface) PluginGetBinary(name, os, arch string, w io.Writer) error { +// ProjectIntegrationDelete mocks base method. +func (m *MockInterface) ProjectIntegrationDelete(projectKey, integrationName string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginGetBinary", name, os, arch, w) + ret := m.ctrl.Call(m, "ProjectIntegrationDelete", projectKey, integrationName) ret0, _ := ret[0].(error) return ret0 } -// PluginGetBinary indicates an expected call of PluginGetBinary -func (mr *MockInterfaceMockRecorder) PluginGetBinary(name, os, arch, w interface{}) *gomock.Call { +// ProjectIntegrationDelete indicates an expected call of ProjectIntegrationDelete. +func (mr *MockInterfaceMockRecorder) ProjectIntegrationDelete(projectKey, integrationName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginGetBinary", reflect.TypeOf((*MockInterface)(nil).PluginGetBinary), name, os, arch, w) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationDelete", reflect.TypeOf((*MockInterface)(nil).ProjectIntegrationDelete), projectKey, integrationName) } -// PluginGetBinaryInfos mocks base method -func (m *MockInterface) PluginGetBinaryInfos(name, os, arch string) (*sdk.GRPCPluginBinary, error) { +// ProjectIntegrationGet mocks base method. +func (m *MockInterface) ProjectIntegrationGet(projectKey, integrationName string, clearPassword bool) (sdk.ProjectIntegration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginGetBinaryInfos", name, os, arch) - ret0, _ := ret[0].(*sdk.GRPCPluginBinary) + ret := m.ctrl.Call(m, "ProjectIntegrationGet", projectKey, integrationName, clearPassword) + ret0, _ := ret[0].(sdk.ProjectIntegration) ret1, _ := ret[1].(error) return ret0, ret1 } -// PluginGetBinaryInfos indicates an expected call of PluginGetBinaryInfos -func (mr *MockInterfaceMockRecorder) PluginGetBinaryInfos(name, os, arch interface{}) *gomock.Call { +// ProjectIntegrationGet indicates an expected call of ProjectIntegrationGet. +func (mr *MockInterfaceMockRecorder) ProjectIntegrationGet(projectKey, integrationName, clearPassword interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginGetBinaryInfos", reflect.TypeOf((*MockInterface)(nil).PluginGetBinaryInfos), name, os, arch) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationGet", reflect.TypeOf((*MockInterface)(nil).ProjectIntegrationGet), projectKey, integrationName, clearPassword) } -// Broadcasts mocks base method -func (m *MockInterface) Broadcasts() ([]sdk.Broadcast, error) { +// ProjectIntegrationImport mocks base method. +func (m *MockInterface) ProjectIntegrationImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) (sdk.ProjectIntegration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Broadcasts") - ret0, _ := ret[0].([]sdk.Broadcast) + varargs := []interface{}{projectKey, content} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ProjectIntegrationImport", varargs...) + ret0, _ := ret[0].(sdk.ProjectIntegration) ret1, _ := ret[1].(error) return ret0, ret1 } -// Broadcasts indicates an expected call of Broadcasts -func (mr *MockInterfaceMockRecorder) Broadcasts() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Broadcasts", reflect.TypeOf((*MockInterface)(nil).Broadcasts)) -} - -// BroadcastCreate mocks base method -func (m *MockInterface) BroadcastCreate(broadcast *sdk.Broadcast) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "BroadcastCreate", broadcast) - ret0, _ := ret[0].(error) - return ret0 -} - -// BroadcastCreate indicates an expected call of BroadcastCreate -func (mr *MockInterfaceMockRecorder) BroadcastCreate(broadcast interface{}) *gomock.Call { +// ProjectIntegrationImport indicates an expected call of ProjectIntegrationImport. +func (mr *MockInterfaceMockRecorder) ProjectIntegrationImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BroadcastCreate", reflect.TypeOf((*MockInterface)(nil).BroadcastCreate), broadcast) + varargs := append([]interface{}{projectKey, content}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationImport", reflect.TypeOf((*MockInterface)(nil).ProjectIntegrationImport), varargs...) } -// BroadcastGet mocks base method -func (m *MockInterface) BroadcastGet(id string) (*sdk.Broadcast, error) { +// ProjectIntegrationList mocks base method. +func (m *MockInterface) ProjectIntegrationList(projectKey string) ([]sdk.ProjectIntegration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "BroadcastGet", id) - ret0, _ := ret[0].(*sdk.Broadcast) + ret := m.ctrl.Call(m, "ProjectIntegrationList", projectKey) + ret0, _ := ret[0].([]sdk.ProjectIntegration) ret1, _ := ret[1].(error) return ret0, ret1 } -// BroadcastGet indicates an expected call of BroadcastGet -func (mr *MockInterfaceMockRecorder) BroadcastGet(id interface{}) *gomock.Call { +// ProjectIntegrationList indicates an expected call of ProjectIntegrationList. +func (mr *MockInterfaceMockRecorder) ProjectIntegrationList(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BroadcastGet", reflect.TypeOf((*MockInterface)(nil).BroadcastGet), id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationList", reflect.TypeOf((*MockInterface)(nil).ProjectIntegrationList), projectKey) } -// BroadcastDelete mocks base method -func (m *MockInterface) BroadcastDelete(id string) error { +// ProjectKeyCreate mocks base method. +func (m *MockInterface) ProjectKeyCreate(projectKey string, key *sdk.ProjectKey) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "BroadcastDelete", id) + ret := m.ctrl.Call(m, "ProjectKeyCreate", projectKey, key) ret0, _ := ret[0].(error) return ret0 } -// BroadcastDelete indicates an expected call of BroadcastDelete -func (mr *MockInterfaceMockRecorder) BroadcastDelete(id interface{}) *gomock.Call { +// ProjectKeyCreate indicates an expected call of ProjectKeyCreate. +func (mr *MockInterfaceMockRecorder) ProjectKeyCreate(projectKey, key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BroadcastDelete", reflect.TypeOf((*MockInterface)(nil).BroadcastDelete), id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeyCreate", reflect.TypeOf((*MockInterface)(nil).ProjectKeyCreate), projectKey, key) } -// Maintenance mocks base method -func (m *MockInterface) Maintenance(enable, hooks bool) error { +// ProjectKeysDelete mocks base method. +func (m *MockInterface) ProjectKeysDelete(projectKey, keyProjectName string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Maintenance", enable, hooks) + ret := m.ctrl.Call(m, "ProjectKeysDelete", projectKey, keyProjectName) ret0, _ := ret[0].(error) return ret0 } -// Maintenance indicates an expected call of Maintenance -func (mr *MockInterfaceMockRecorder) Maintenance(enable, hooks interface{}) *gomock.Call { +// ProjectKeysDelete indicates an expected call of ProjectKeysDelete. +func (mr *MockInterfaceMockRecorder) ProjectKeysDelete(projectKey, keyProjectName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Maintenance", reflect.TypeOf((*MockInterface)(nil).Maintenance), enable, hooks) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeysDelete", reflect.TypeOf((*MockInterface)(nil).ProjectKeysDelete), projectKey, keyProjectName) } -// PipelineGet mocks base method -func (m *MockInterface) PipelineGet(projectKey, name string, mods ...cdsclient.RequestModifier) (*sdk.Pipeline, error) { +// ProjectKeysList mocks base method. +func (m *MockInterface) ProjectKeysList(projectKey string) ([]sdk.ProjectKey, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "PipelineGet", varargs...) - ret0, _ := ret[0].(*sdk.Pipeline) + ret := m.ctrl.Call(m, "ProjectKeysList", projectKey) + ret0, _ := ret[0].([]sdk.ProjectKey) ret1, _ := ret[1].(error) return ret0, ret1 } -// PipelineGet indicates an expected call of PipelineGet -func (mr *MockInterfaceMockRecorder) PipelineGet(projectKey, name interface{}, mods ...interface{}) *gomock.Call { +// ProjectKeysList indicates an expected call of ProjectKeysList. +func (mr *MockInterfaceMockRecorder) ProjectKeysList(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineGet", reflect.TypeOf((*MockInterface)(nil).PipelineGet), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeysList", reflect.TypeOf((*MockInterface)(nil).ProjectKeysList), projectKey) } -// PipelineDelete mocks base method -func (m *MockInterface) PipelineDelete(projectKey, name string) error { +// ProjectList mocks base method. +func (m *MockInterface) ProjectList(withApplications, withWorkflow bool, filters ...cdsclient.Filter) ([]sdk.Project, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PipelineDelete", projectKey, name) - ret0, _ := ret[0].(error) - return ret0 + varargs := []interface{}{withApplications, withWorkflow} + for _, a := range filters { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ProjectList", varargs...) + ret0, _ := ret[0].([]sdk.Project) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// PipelineDelete indicates an expected call of PipelineDelete -func (mr *MockInterfaceMockRecorder) PipelineDelete(projectKey, name interface{}) *gomock.Call { +// ProjectList indicates an expected call of ProjectList. +func (mr *MockInterfaceMockRecorder) ProjectList(withApplications, withWorkflow interface{}, filters ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineDelete", reflect.TypeOf((*MockInterface)(nil).PipelineDelete), projectKey, name) + varargs := append([]interface{}{withApplications, withWorkflow}, filters...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectList", reflect.TypeOf((*MockInterface)(nil).ProjectList), varargs...) } -// PipelineCreate mocks base method -func (m *MockInterface) PipelineCreate(projectKey string, pip *sdk.Pipeline) error { +// ProjectRepositoryManagerDelete mocks base method. +func (m *MockInterface) ProjectRepositoryManagerDelete(projectKey, repoManagerName string, force bool) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PipelineCreate", projectKey, pip) + ret := m.ctrl.Call(m, "ProjectRepositoryManagerDelete", projectKey, repoManagerName, force) ret0, _ := ret[0].(error) return ret0 } -// PipelineCreate indicates an expected call of PipelineCreate -func (mr *MockInterfaceMockRecorder) PipelineCreate(projectKey, pip interface{}) *gomock.Call { +// ProjectRepositoryManagerDelete indicates an expected call of ProjectRepositoryManagerDelete. +func (mr *MockInterfaceMockRecorder) ProjectRepositoryManagerDelete(projectKey, repoManagerName, force interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineCreate", reflect.TypeOf((*MockInterface)(nil).PipelineCreate), projectKey, pip) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectRepositoryManagerDelete", reflect.TypeOf((*MockInterface)(nil).ProjectRepositoryManagerDelete), projectKey, repoManagerName, force) } -// PipelineList mocks base method -func (m *MockInterface) PipelineList(projectKey string) ([]sdk.Pipeline, error) { +// ProjectRepositoryManagerList mocks base method. +func (m *MockInterface) ProjectRepositoryManagerList(projectKey string) ([]sdk.ProjectVCSServer, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PipelineList", projectKey) - ret0, _ := ret[0].([]sdk.Pipeline) + ret := m.ctrl.Call(m, "ProjectRepositoryManagerList", projectKey) + ret0, _ := ret[0].([]sdk.ProjectVCSServer) ret1, _ := ret[1].(error) return ret0, ret1 } -// PipelineList indicates an expected call of PipelineList -func (mr *MockInterfaceMockRecorder) PipelineList(projectKey interface{}) *gomock.Call { +// ProjectRepositoryManagerList indicates an expected call of ProjectRepositoryManagerList. +func (mr *MockInterfaceMockRecorder) ProjectRepositoryManagerList(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PipelineList", reflect.TypeOf((*MockInterface)(nil).PipelineList), projectKey) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectRepositoryManagerList", reflect.TypeOf((*MockInterface)(nil).ProjectRepositoryManagerList), projectKey) } -// IntegrationModelList mocks base method -func (m *MockInterface) IntegrationModelList() ([]sdk.IntegrationModel, error) { +// ProjectUpdate mocks base method. +func (m *MockInterface) ProjectUpdate(key string, project *sdk.Project) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "IntegrationModelList") - ret0, _ := ret[0].([]sdk.IntegrationModel) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "ProjectUpdate", key, project) + ret0, _ := ret[0].(error) + return ret0 } -// IntegrationModelList indicates an expected call of IntegrationModelList -func (mr *MockInterfaceMockRecorder) IntegrationModelList() *gomock.Call { +// ProjectUpdate indicates an expected call of ProjectUpdate. +func (mr *MockInterfaceMockRecorder) ProjectUpdate(key, project interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelList", reflect.TypeOf((*MockInterface)(nil).IntegrationModelList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectUpdate", reflect.TypeOf((*MockInterface)(nil).ProjectUpdate), key, project) } -// IntegrationModelGet mocks base method -func (m *MockInterface) IntegrationModelGet(name string) (sdk.IntegrationModel, error) { +// ProjectVariableCreate mocks base method. +func (m *MockInterface) ProjectVariableCreate(projectKey string, variable *sdk.Variable) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "IntegrationModelGet", name) - ret0, _ := ret[0].(sdk.IntegrationModel) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "ProjectVariableCreate", projectKey, variable) + ret0, _ := ret[0].(error) + return ret0 } -// IntegrationModelGet indicates an expected call of IntegrationModelGet -func (mr *MockInterfaceMockRecorder) IntegrationModelGet(name interface{}) *gomock.Call { +// ProjectVariableCreate indicates an expected call of ProjectVariableCreate. +func (mr *MockInterfaceMockRecorder) ProjectVariableCreate(projectKey, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelGet", reflect.TypeOf((*MockInterface)(nil).IntegrationModelGet), name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableCreate", reflect.TypeOf((*MockInterface)(nil).ProjectVariableCreate), projectKey, variable) } -// IntegrationModelAdd mocks base method -func (m_2 *MockInterface) IntegrationModelAdd(m *sdk.IntegrationModel) error { - m_2.ctrl.T.Helper() - ret := m_2.ctrl.Call(m_2, "IntegrationModelAdd", m) +// ProjectVariableDelete mocks base method. +func (m *MockInterface) ProjectVariableDelete(projectKey, varName string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ProjectVariableDelete", projectKey, varName) ret0, _ := ret[0].(error) return ret0 } -// IntegrationModelAdd indicates an expected call of IntegrationModelAdd -func (mr *MockInterfaceMockRecorder) IntegrationModelAdd(m interface{}) *gomock.Call { +// ProjectVariableDelete indicates an expected call of ProjectVariableDelete. +func (mr *MockInterfaceMockRecorder) ProjectVariableDelete(projectKey, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelAdd", reflect.TypeOf((*MockInterface)(nil).IntegrationModelAdd), m) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableDelete", reflect.TypeOf((*MockInterface)(nil).ProjectVariableDelete), projectKey, varName) } -// IntegrationModelUpdate mocks base method -func (m_2 *MockInterface) IntegrationModelUpdate(m *sdk.IntegrationModel) error { - m_2.ctrl.T.Helper() - ret := m_2.ctrl.Call(m_2, "IntegrationModelUpdate", m) - ret0, _ := ret[0].(error) - return ret0 +// ProjectVariableGet mocks base method. +func (m *MockInterface) ProjectVariableGet(projectKey, varName string) (*sdk.Variable, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ProjectVariableGet", projectKey, varName) + ret0, _ := ret[0].(*sdk.Variable) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// IntegrationModelUpdate indicates an expected call of IntegrationModelUpdate -func (mr *MockInterfaceMockRecorder) IntegrationModelUpdate(m interface{}) *gomock.Call { +// ProjectVariableGet indicates an expected call of ProjectVariableGet. +func (mr *MockInterfaceMockRecorder) ProjectVariableGet(projectKey, varName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelUpdate", reflect.TypeOf((*MockInterface)(nil).IntegrationModelUpdate), m) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableGet", reflect.TypeOf((*MockInterface)(nil).ProjectVariableGet), projectKey, varName) } -// IntegrationModelDelete mocks base method -func (m *MockInterface) IntegrationModelDelete(name string) error { +// ProjectVariableUpdate mocks base method. +func (m *MockInterface) ProjectVariableUpdate(projectKey string, variable *sdk.Variable) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "IntegrationModelDelete", name) + ret := m.ctrl.Call(m, "ProjectVariableUpdate", projectKey, variable) ret0, _ := ret[0].(error) return ret0 } -// IntegrationModelDelete indicates an expected call of IntegrationModelDelete -func (mr *MockInterfaceMockRecorder) IntegrationModelDelete(name interface{}) *gomock.Call { +// ProjectVariableUpdate indicates an expected call of ProjectVariableUpdate. +func (mr *MockInterfaceMockRecorder) ProjectVariableUpdate(projectKey, variable interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegrationModelDelete", reflect.TypeOf((*MockInterface)(nil).IntegrationModelDelete), name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableUpdate", reflect.TypeOf((*MockInterface)(nil).ProjectVariableUpdate), projectKey, variable) } -// ProjectCreate mocks base method -func (m *MockInterface) ProjectCreate(proj *sdk.Project) error { +// ProjectVariablesList mocks base method. +func (m *MockInterface) ProjectVariablesList(key string) ([]sdk.Variable, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectCreate", proj) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "ProjectVariablesList", key) + ret0, _ := ret[0].([]sdk.Variable) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// ProjectCreate indicates an expected call of ProjectCreate -func (mr *MockInterfaceMockRecorder) ProjectCreate(proj interface{}) *gomock.Call { +// ProjectVariablesList indicates an expected call of ProjectVariablesList. +func (mr *MockInterfaceMockRecorder) ProjectVariablesList(key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectCreate", reflect.TypeOf((*MockInterface)(nil).ProjectCreate), proj) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariablesList", reflect.TypeOf((*MockInterface)(nil).ProjectVariablesList), key) } -// ProjectDelete mocks base method -func (m *MockInterface) ProjectDelete(projectKey string) error { +// PutJSON mocks base method. +func (m *MockInterface) PutJSON(ctx context.Context, path string, in, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectDelete", projectKey) - ret0, _ := ret[0].(error) - return ret0 + varargs := []interface{}{ctx, path, in, out} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutJSON", varargs...) + ret0, _ := ret[0].(int) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// ProjectDelete indicates an expected call of ProjectDelete -func (mr *MockInterfaceMockRecorder) ProjectDelete(projectKey interface{}) *gomock.Call { +// PutJSON indicates an expected call of PutJSON. +func (mr *MockInterfaceMockRecorder) PutJSON(ctx, path, in, out interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectDelete", reflect.TypeOf((*MockInterface)(nil).ProjectDelete), projectKey) + varargs := append([]interface{}{ctx, path, in, out}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutJSON", reflect.TypeOf((*MockInterface)(nil).PutJSON), varargs...) } -// ProjectGroupAdd mocks base method -func (m *MockInterface) ProjectGroupAdd(projectKey, groupName string, permission int, projectOnly bool) error { +// QueueArtifactUpload mocks base method. +func (m *MockInterface) QueueArtifactUpload(ctx context.Context, projectKey, integrationName string, nodeJobRunID int64, tag, filePath string) (bool, time.Duration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectGroupAdd", projectKey, groupName, permission, projectOnly) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "QueueArtifactUpload", ctx, projectKey, integrationName, nodeJobRunID, tag, filePath) + ret0, _ := ret[0].(bool) + ret1, _ := ret[1].(time.Duration) + ret2, _ := ret[2].(error) + return ret0, ret1, ret2 } -// ProjectGroupAdd indicates an expected call of ProjectGroupAdd -func (mr *MockInterfaceMockRecorder) ProjectGroupAdd(projectKey, groupName, permission, projectOnly interface{}) *gomock.Call { +// QueueArtifactUpload indicates an expected call of QueueArtifactUpload. +func (mr *MockInterfaceMockRecorder) QueueArtifactUpload(ctx, projectKey, integrationName, nodeJobRunID, tag, filePath interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGroupAdd", reflect.TypeOf((*MockInterface)(nil).ProjectGroupAdd), projectKey, groupName, permission, projectOnly) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueArtifactUpload", reflect.TypeOf((*MockInterface)(nil).QueueArtifactUpload), ctx, projectKey, integrationName, nodeJobRunID, tag, filePath) } -// ProjectGroupDelete mocks base method -func (m *MockInterface) ProjectGroupDelete(projectKey, groupName string) error { +// QueueCountWorkflowNodeJobRun mocks base method. +func (m *MockInterface) QueueCountWorkflowNodeJobRun(since, until *time.Time, modelType string, ratioService *int) (sdk.WorkflowNodeJobRunCount, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectGroupDelete", projectKey, groupName) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "QueueCountWorkflowNodeJobRun", since, until, modelType, ratioService) + ret0, _ := ret[0].(sdk.WorkflowNodeJobRunCount) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// ProjectGroupDelete indicates an expected call of ProjectGroupDelete -func (mr *MockInterfaceMockRecorder) ProjectGroupDelete(projectKey, groupName interface{}) *gomock.Call { +// QueueCountWorkflowNodeJobRun indicates an expected call of QueueCountWorkflowNodeJobRun. +func (mr *MockInterfaceMockRecorder) QueueCountWorkflowNodeJobRun(since, until, modelType, ratioService interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGroupDelete", reflect.TypeOf((*MockInterface)(nil).ProjectGroupDelete), projectKey, groupName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueCountWorkflowNodeJobRun", reflect.TypeOf((*MockInterface)(nil).QueueCountWorkflowNodeJobRun), since, until, modelType, ratioService) } -// ProjectGet mocks base method -func (m *MockInterface) ProjectGet(projectKey string, opts ...cdsclient.RequestModifier) (*sdk.Project, error) { +// QueueJobBook mocks base method. +func (m *MockInterface) QueueJobBook(ctx context.Context, id int64) (sdk.WorkflowNodeJobRunBooked, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ProjectGet", varargs...) - ret0, _ := ret[0].(*sdk.Project) + ret := m.ctrl.Call(m, "QueueJobBook", ctx, id) + ret0, _ := ret[0].(sdk.WorkflowNodeJobRunBooked) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// QueueJobBook indicates an expected call of QueueJobBook. +func (mr *MockInterfaceMockRecorder) QueueJobBook(ctx, id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobBook", reflect.TypeOf((*MockInterface)(nil).QueueJobBook), ctx, id) +} + +// QueueJobInfo mocks base method. +func (m *MockInterface) QueueJobInfo(ctx context.Context, id int64) (*sdk.WorkflowNodeJobRun, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QueueJobInfo", ctx, id) + ret0, _ := ret[0].(*sdk.WorkflowNodeJobRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectGet indicates an expected call of ProjectGet -func (mr *MockInterfaceMockRecorder) ProjectGet(projectKey interface{}, opts ...interface{}) *gomock.Call { +// QueueJobInfo indicates an expected call of QueueJobInfo. +func (mr *MockInterfaceMockRecorder) QueueJobInfo(ctx, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGet", reflect.TypeOf((*MockInterface)(nil).ProjectGet), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobInfo", reflect.TypeOf((*MockInterface)(nil).QueueJobInfo), ctx, id) } -// ProjectUpdate mocks base method -func (m *MockInterface) ProjectUpdate(key string, project *sdk.Project) error { +// QueueJobRelease mocks base method. +func (m *MockInterface) QueueJobRelease(ctx context.Context, id int64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectUpdate", key, project) + ret := m.ctrl.Call(m, "QueueJobRelease", ctx, id) ret0, _ := ret[0].(error) return ret0 } -// ProjectUpdate indicates an expected call of ProjectUpdate -func (mr *MockInterfaceMockRecorder) ProjectUpdate(key, project interface{}) *gomock.Call { +// QueueJobRelease indicates an expected call of QueueJobRelease. +func (mr *MockInterfaceMockRecorder) QueueJobRelease(ctx, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectUpdate", reflect.TypeOf((*MockInterface)(nil).ProjectUpdate), key, project) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobRelease", reflect.TypeOf((*MockInterface)(nil).QueueJobRelease), ctx, id) } -// ProjectList mocks base method -func (m *MockInterface) ProjectList(withApplications, withWorkflow bool, filters ...cdsclient.Filter) ([]sdk.Project, error) { +// QueueJobSendSpawnInfo mocks base method. +func (m *MockInterface) QueueJobSendSpawnInfo(ctx context.Context, id int64, in []sdk.SpawnInfo) error { m.ctrl.T.Helper() - varargs := []interface{}{withApplications, withWorkflow} - for _, a := range filters { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ProjectList", varargs...) - ret0, _ := ret[0].([]sdk.Project) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "QueueJobSendSpawnInfo", ctx, id, in) + ret0, _ := ret[0].(error) + return ret0 } -// ProjectList indicates an expected call of ProjectList -func (mr *MockInterfaceMockRecorder) ProjectList(withApplications, withWorkflow interface{}, filters ...interface{}) *gomock.Call { +// QueueJobSendSpawnInfo indicates an expected call of QueueJobSendSpawnInfo. +func (mr *MockInterfaceMockRecorder) QueueJobSendSpawnInfo(ctx, id, in interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{withApplications, withWorkflow}, filters...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectList", reflect.TypeOf((*MockInterface)(nil).ProjectList), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobSendSpawnInfo", reflect.TypeOf((*MockInterface)(nil).QueueJobSendSpawnInfo), ctx, id, in) } -// ProjectKeysList mocks base method -func (m *MockInterface) ProjectKeysList(projectKey string) ([]sdk.ProjectKey, error) { +// QueueJobSetVersion mocks base method. +func (m *MockInterface) QueueJobSetVersion(ctx context.Context, jobID int64, version sdk.WorkflowRunVersion) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectKeysList", projectKey) - ret0, _ := ret[0].([]sdk.ProjectKey) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "QueueJobSetVersion", ctx, jobID, version) + ret0, _ := ret[0].(error) + return ret0 } -// ProjectKeysList indicates an expected call of ProjectKeysList -func (mr *MockInterfaceMockRecorder) ProjectKeysList(projectKey interface{}) *gomock.Call { +// QueueJobSetVersion indicates an expected call of QueueJobSetVersion. +func (mr *MockInterfaceMockRecorder) QueueJobSetVersion(ctx, jobID, version interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeysList", reflect.TypeOf((*MockInterface)(nil).ProjectKeysList), projectKey) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobSetVersion", reflect.TypeOf((*MockInterface)(nil).QueueJobSetVersion), ctx, jobID, version) } -// ProjectKeyCreate mocks base method -func (m *MockInterface) ProjectKeyCreate(projectKey string, key *sdk.ProjectKey) error { +// QueueJobTag mocks base method. +func (m *MockInterface) QueueJobTag(ctx context.Context, jobID int64, tags []sdk.WorkflowRunTag) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectKeyCreate", projectKey, key) + ret := m.ctrl.Call(m, "QueueJobTag", ctx, jobID, tags) ret0, _ := ret[0].(error) return ret0 } -// ProjectKeyCreate indicates an expected call of ProjectKeyCreate -func (mr *MockInterfaceMockRecorder) ProjectKeyCreate(projectKey, key interface{}) *gomock.Call { +// QueueJobTag indicates an expected call of QueueJobTag. +func (mr *MockInterfaceMockRecorder) QueueJobTag(ctx, jobID, tags interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeyCreate", reflect.TypeOf((*MockInterface)(nil).ProjectKeyCreate), projectKey, key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobTag", reflect.TypeOf((*MockInterface)(nil).QueueJobTag), ctx, jobID, tags) } -// ProjectKeysDelete mocks base method -func (m *MockInterface) ProjectKeysDelete(projectKey, keyProjectName string) error { +// QueuePolling mocks base method. +func (m *MockInterface) QueuePolling(ctx context.Context, goRoutines *sdk.GoRoutines, jobs chan<- sdk.WorkflowNodeJobRun, errs chan<- error, delay time.Duration, modelType string, ratioService *int) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectKeysDelete", projectKey, keyProjectName) + ret := m.ctrl.Call(m, "QueuePolling", ctx, goRoutines, jobs, errs, delay, modelType, ratioService) ret0, _ := ret[0].(error) return ret0 } -// ProjectKeysDelete indicates an expected call of ProjectKeysDelete -func (mr *MockInterfaceMockRecorder) ProjectKeysDelete(projectKey, keyProjectName interface{}) *gomock.Call { +// QueuePolling indicates an expected call of QueuePolling. +func (mr *MockInterfaceMockRecorder) QueuePolling(ctx, goRoutines, jobs, errs, delay, modelType, ratioService interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectKeysDelete", reflect.TypeOf((*MockInterface)(nil).ProjectKeysDelete), projectKey, keyProjectName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueuePolling", reflect.TypeOf((*MockInterface)(nil).QueuePolling), ctx, goRoutines, jobs, errs, delay, modelType, ratioService) } -// ProjectVariablesList mocks base method -func (m *MockInterface) ProjectVariablesList(key string) ([]sdk.Variable, error) { +// QueueSendCoverage mocks base method. +func (m *MockInterface) QueueSendCoverage(ctx context.Context, id int64, report coverage.Report) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectVariablesList", key) - ret0, _ := ret[0].([]sdk.Variable) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "QueueSendCoverage", ctx, id, report) + ret0, _ := ret[0].(error) + return ret0 } -// ProjectVariablesList indicates an expected call of ProjectVariablesList -func (mr *MockInterfaceMockRecorder) ProjectVariablesList(key interface{}) *gomock.Call { +// QueueSendCoverage indicates an expected call of QueueSendCoverage. +func (mr *MockInterfaceMockRecorder) QueueSendCoverage(ctx, id, report interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariablesList", reflect.TypeOf((*MockInterface)(nil).ProjectVariablesList), key) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendCoverage", reflect.TypeOf((*MockInterface)(nil).QueueSendCoverage), ctx, id, report) } -// ProjectVariableCreate mocks base method -func (m *MockInterface) ProjectVariableCreate(projectKey string, variable *sdk.Variable) error { +// QueueSendLogs mocks base method. +func (m *MockInterface) QueueSendLogs(ctx context.Context, id int64, log sdk.Log) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectVariableCreate", projectKey, variable) + ret := m.ctrl.Call(m, "QueueSendLogs", ctx, id, log) ret0, _ := ret[0].(error) return ret0 } -// ProjectVariableCreate indicates an expected call of ProjectVariableCreate -func (mr *MockInterfaceMockRecorder) ProjectVariableCreate(projectKey, variable interface{}) *gomock.Call { +// QueueSendLogs indicates an expected call of QueueSendLogs. +func (mr *MockInterfaceMockRecorder) QueueSendLogs(ctx, id, log interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableCreate", reflect.TypeOf((*MockInterface)(nil).ProjectVariableCreate), projectKey, variable) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendLogs", reflect.TypeOf((*MockInterface)(nil).QueueSendLogs), ctx, id, log) } -// ProjectVariableDelete mocks base method -func (m *MockInterface) ProjectVariableDelete(projectKey, varName string) error { +// QueueSendResult mocks base method. +func (m *MockInterface) QueueSendResult(ctx context.Context, id int64, res sdk.Result) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectVariableDelete", projectKey, varName) + ret := m.ctrl.Call(m, "QueueSendResult", ctx, id, res) ret0, _ := ret[0].(error) return ret0 } -// ProjectVariableDelete indicates an expected call of ProjectVariableDelete -func (mr *MockInterfaceMockRecorder) ProjectVariableDelete(projectKey, varName interface{}) *gomock.Call { +// QueueSendResult indicates an expected call of QueueSendResult. +func (mr *MockInterfaceMockRecorder) QueueSendResult(ctx, id, res interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableDelete", reflect.TypeOf((*MockInterface)(nil).ProjectVariableDelete), projectKey, varName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendResult", reflect.TypeOf((*MockInterface)(nil).QueueSendResult), ctx, id, res) } -// ProjectVariableGet mocks base method -func (m *MockInterface) ProjectVariableGet(projectKey, varName string) (*sdk.Variable, error) { +// QueueSendStepResult mocks base method. +func (m *MockInterface) QueueSendStepResult(ctx context.Context, id int64, res sdk.StepStatus) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectVariableGet", projectKey, varName) - ret0, _ := ret[0].(*sdk.Variable) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "QueueSendStepResult", ctx, id, res) + ret0, _ := ret[0].(error) + return ret0 } -// ProjectVariableGet indicates an expected call of ProjectVariableGet -func (mr *MockInterfaceMockRecorder) ProjectVariableGet(projectKey, varName interface{}) *gomock.Call { +// QueueSendStepResult indicates an expected call of QueueSendStepResult. +func (mr *MockInterfaceMockRecorder) QueueSendStepResult(ctx, id, res interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableGet", reflect.TypeOf((*MockInterface)(nil).ProjectVariableGet), projectKey, varName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendStepResult", reflect.TypeOf((*MockInterface)(nil).QueueSendStepResult), ctx, id, res) } -// ProjectVariableUpdate mocks base method -func (m *MockInterface) ProjectVariableUpdate(projectKey string, variable *sdk.Variable) error { +// QueueSendUnitTests mocks base method. +func (m *MockInterface) QueueSendUnitTests(ctx context.Context, id int64, report venom.Tests) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectVariableUpdate", projectKey, variable) + ret := m.ctrl.Call(m, "QueueSendUnitTests", ctx, id, report) ret0, _ := ret[0].(error) return ret0 } -// ProjectVariableUpdate indicates an expected call of ProjectVariableUpdate -func (mr *MockInterfaceMockRecorder) ProjectVariableUpdate(projectKey, variable interface{}) *gomock.Call { +// QueueSendUnitTests indicates an expected call of QueueSendUnitTests. +func (mr *MockInterfaceMockRecorder) QueueSendUnitTests(ctx, id, report interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectVariableUpdate", reflect.TypeOf((*MockInterface)(nil).ProjectVariableUpdate), projectKey, variable) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendUnitTests", reflect.TypeOf((*MockInterface)(nil).QueueSendUnitTests), ctx, id, report) } -// VariableEncrypt mocks base method -func (m *MockInterface) VariableEncrypt(projectKey, varName, content string) (*sdk.Variable, error) { +// QueueSendVulnerability mocks base method. +func (m *MockInterface) QueueSendVulnerability(ctx context.Context, id int64, report sdk.VulnerabilityWorkerReport) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "VariableEncrypt", projectKey, varName, content) - ret0, _ := ret[0].(*sdk.Variable) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "QueueSendVulnerability", ctx, id, report) + ret0, _ := ret[0].(error) + return ret0 } -// VariableEncrypt indicates an expected call of VariableEncrypt -func (mr *MockInterfaceMockRecorder) VariableEncrypt(projectKey, varName, content interface{}) *gomock.Call { +// QueueSendVulnerability indicates an expected call of QueueSendVulnerability. +func (mr *MockInterfaceMockRecorder) QueueSendVulnerability(ctx, id, report interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VariableEncrypt", reflect.TypeOf((*MockInterface)(nil).VariableEncrypt), projectKey, varName, content) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendVulnerability", reflect.TypeOf((*MockInterface)(nil).QueueSendVulnerability), ctx, id, report) } -// VariableListEncrypt mocks base method -func (m *MockInterface) VariableListEncrypt(projectKey string) ([]sdk.Secret, error) { +// QueueServiceLogs mocks base method. +func (m *MockInterface) QueueServiceLogs(ctx context.Context, logs []sdk.ServiceLog) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "VariableListEncrypt", projectKey) - ret0, _ := ret[0].([]sdk.Secret) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "QueueServiceLogs", ctx, logs) + ret0, _ := ret[0].(error) + return ret0 } -// VariableListEncrypt indicates an expected call of VariableListEncrypt -func (mr *MockInterfaceMockRecorder) VariableListEncrypt(projectKey interface{}) *gomock.Call { +// QueueServiceLogs indicates an expected call of QueueServiceLogs. +func (mr *MockInterfaceMockRecorder) QueueServiceLogs(ctx, logs interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VariableListEncrypt", reflect.TypeOf((*MockInterface)(nil).VariableListEncrypt), projectKey) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueServiceLogs", reflect.TypeOf((*MockInterface)(nil).QueueServiceLogs), ctx, logs) } -// ProjectGroupsImport mocks base method -func (m *MockInterface) ProjectGroupsImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) (sdk.Project, error) { +// QueueStaticFilesUpload mocks base method. +func (m *MockInterface) QueueStaticFilesUpload(ctx context.Context, projectKey, integrationName string, nodeJobRunID int64, name, entrypoint, staticKey string, tarContent io.Reader) (string, bool, time.Duration, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, content} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ProjectGroupsImport", varargs...) - ret0, _ := ret[0].(sdk.Project) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "QueueStaticFilesUpload", ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent) + ret0, _ := ret[0].(string) + ret1, _ := ret[1].(bool) + ret2, _ := ret[2].(time.Duration) + ret3, _ := ret[3].(error) + return ret0, ret1, ret2, ret3 } -// ProjectGroupsImport indicates an expected call of ProjectGroupsImport -func (mr *MockInterfaceMockRecorder) ProjectGroupsImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { +// QueueStaticFilesUpload indicates an expected call of QueueStaticFilesUpload. +func (mr *MockInterfaceMockRecorder) QueueStaticFilesUpload(ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, content}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectGroupsImport", reflect.TypeOf((*MockInterface)(nil).ProjectGroupsImport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueStaticFilesUpload", reflect.TypeOf((*MockInterface)(nil).QueueStaticFilesUpload), ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent) } -// ProjectIntegrationImport mocks base method -func (m *MockInterface) ProjectIntegrationImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) (sdk.ProjectIntegration, error) { +// QueueTakeJob mocks base method. +func (m *MockInterface) QueueTakeJob(ctx context.Context, job sdk.WorkflowNodeJobRun) (*sdk.WorkflowNodeJobRunData, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, content} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ProjectIntegrationImport", varargs...) - ret0, _ := ret[0].(sdk.ProjectIntegration) + ret := m.ctrl.Call(m, "QueueTakeJob", ctx, job) + ret0, _ := ret[0].(*sdk.WorkflowNodeJobRunData) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectIntegrationImport indicates an expected call of ProjectIntegrationImport -func (mr *MockInterfaceMockRecorder) ProjectIntegrationImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { +// QueueTakeJob indicates an expected call of QueueTakeJob. +func (mr *MockInterfaceMockRecorder) QueueTakeJob(ctx, job interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, content}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationImport", reflect.TypeOf((*MockInterface)(nil).ProjectIntegrationImport), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueTakeJob", reflect.TypeOf((*MockInterface)(nil).QueueTakeJob), ctx, job) } -// ProjectIntegrationGet mocks base method -func (m *MockInterface) ProjectIntegrationGet(projectKey, integrationName string, clearPassword bool) (sdk.ProjectIntegration, error) { +// QueueWorkerCacheLink mocks base method. +func (m *MockInterface) QueueWorkerCacheLink(ctx context.Context, jobID int64, tag string) (sdk.CDNItemLinks, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectIntegrationGet", projectKey, integrationName, clearPassword) - ret0, _ := ret[0].(sdk.ProjectIntegration) + ret := m.ctrl.Call(m, "QueueWorkerCacheLink", ctx, jobID, tag) + ret0, _ := ret[0].(sdk.CDNItemLinks) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectIntegrationGet indicates an expected call of ProjectIntegrationGet -func (mr *MockInterfaceMockRecorder) ProjectIntegrationGet(projectKey, integrationName, clearPassword interface{}) *gomock.Call { +// QueueWorkerCacheLink indicates an expected call of QueueWorkerCacheLink. +func (mr *MockInterfaceMockRecorder) QueueWorkerCacheLink(ctx, jobID, tag interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationGet", reflect.TypeOf((*MockInterface)(nil).ProjectIntegrationGet), projectKey, integrationName, clearPassword) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkerCacheLink", reflect.TypeOf((*MockInterface)(nil).QueueWorkerCacheLink), ctx, jobID, tag) } -// ProjectIntegrationList mocks base method -func (m *MockInterface) ProjectIntegrationList(projectKey string) ([]sdk.ProjectIntegration, error) { +// QueueWorkflowNodeJobRun mocks base method. +func (m *MockInterface) QueueWorkflowNodeJobRun(status ...string) ([]sdk.WorkflowNodeJobRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectIntegrationList", projectKey) - ret0, _ := ret[0].([]sdk.ProjectIntegration) + varargs := []interface{}{} + for _, a := range status { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "QueueWorkflowNodeJobRun", varargs...) + ret0, _ := ret[0].([]sdk.WorkflowNodeJobRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectIntegrationList indicates an expected call of ProjectIntegrationList -func (mr *MockInterfaceMockRecorder) ProjectIntegrationList(projectKey interface{}) *gomock.Call { +// QueueWorkflowNodeJobRun indicates an expected call of QueueWorkflowNodeJobRun. +func (mr *MockInterfaceMockRecorder) QueueWorkflowNodeJobRun(status ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationList", reflect.TypeOf((*MockInterface)(nil).ProjectIntegrationList), projectKey) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowNodeJobRun", reflect.TypeOf((*MockInterface)(nil).QueueWorkflowNodeJobRun), status...) } -// ProjectIntegrationDelete mocks base method -func (m *MockInterface) ProjectIntegrationDelete(projectKey, integrationName string) error { +// QueueWorkflowRunResultCheck mocks base method. +func (m *MockInterface) QueueWorkflowRunResultCheck(ctx context.Context, jobID int64, runResultCheck sdk.WorkflowRunResultCheck) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectIntegrationDelete", projectKey, integrationName) + ret := m.ctrl.Call(m, "QueueWorkflowRunResultCheck", ctx, jobID, runResultCheck) ret0, _ := ret[0].(error) return ret0 } -// ProjectIntegrationDelete indicates an expected call of ProjectIntegrationDelete -func (mr *MockInterfaceMockRecorder) ProjectIntegrationDelete(projectKey, integrationName interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationDelete", reflect.TypeOf((*MockInterface)(nil).ProjectIntegrationDelete), projectKey, integrationName) -} - -// ProjectRepositoryManagerList mocks base method -func (m *MockInterface) ProjectRepositoryManagerList(projectKey string) ([]sdk.ProjectVCSServer, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectRepositoryManagerList", projectKey) - ret0, _ := ret[0].([]sdk.ProjectVCSServer) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ProjectRepositoryManagerList indicates an expected call of ProjectRepositoryManagerList -func (mr *MockInterfaceMockRecorder) ProjectRepositoryManagerList(projectKey interface{}) *gomock.Call { +// QueueWorkflowRunResultCheck indicates an expected call of QueueWorkflowRunResultCheck. +func (mr *MockInterfaceMockRecorder) QueueWorkflowRunResultCheck(ctx, jobID, runResultCheck interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectRepositoryManagerList", reflect.TypeOf((*MockInterface)(nil).ProjectRepositoryManagerList), projectKey) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowRunResultCheck", reflect.TypeOf((*MockInterface)(nil).QueueWorkflowRunResultCheck), ctx, jobID, runResultCheck) } -// ProjectRepositoryManagerDelete mocks base method -func (m *MockInterface) ProjectRepositoryManagerDelete(projectKey, repoManagerName string, force bool) error { +// QueueWorkflowRunResultsAdd mocks base method. +func (m *MockInterface) QueueWorkflowRunResultsAdd(ctx context.Context, jobID int64, addRequest sdk.WorkflowRunResult) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectRepositoryManagerDelete", projectKey, repoManagerName, force) + ret := m.ctrl.Call(m, "QueueWorkflowRunResultsAdd", ctx, jobID, addRequest) ret0, _ := ret[0].(error) return ret0 } -// ProjectRepositoryManagerDelete indicates an expected call of ProjectRepositoryManagerDelete -func (mr *MockInterfaceMockRecorder) ProjectRepositoryManagerDelete(projectKey, repoManagerName, force interface{}) *gomock.Call { +// QueueWorkflowRunResultsAdd indicates an expected call of QueueWorkflowRunResultsAdd. +func (mr *MockInterfaceMockRecorder) QueueWorkflowRunResultsAdd(ctx, jobID, addRequest interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectRepositoryManagerDelete", reflect.TypeOf((*MockInterface)(nil).ProjectRepositoryManagerDelete), projectKey, repoManagerName, force) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowRunResultsAdd", reflect.TypeOf((*MockInterface)(nil).QueueWorkflowRunResultsAdd), ctx, jobID, addRequest) } -// ProjectAccess mocks base method -func (m *MockInterface) ProjectAccess(ctx context.Context, projectKey, sessionID string, itemType sdk.CDNItemType) error { +// RepositoriesList mocks base method. +func (m *MockInterface) RepositoriesList(projectKey, repoManager string, resync bool) ([]sdk.VCSRepo, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectAccess", ctx, projectKey, sessionID, itemType) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "RepositoriesList", projectKey, repoManager, resync) + ret0, _ := ret[0].([]sdk.VCSRepo) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// ProjectAccess indicates an expected call of ProjectAccess -func (mr *MockInterfaceMockRecorder) ProjectAccess(ctx, projectKey, sessionID, itemType interface{}) *gomock.Call { +// RepositoriesList indicates an expected call of RepositoriesList. +func (mr *MockInterfaceMockRecorder) RepositoriesList(projectKey, repoManager, resync interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectAccess", reflect.TypeOf((*MockInterface)(nil).ProjectAccess), ctx, projectKey, sessionID, itemType) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RepositoriesList", reflect.TypeOf((*MockInterface)(nil).RepositoriesList), projectKey, repoManager, resync) } -// QueueWorkflowNodeJobRun mocks base method -func (m *MockInterface) QueueWorkflowNodeJobRun(status ...string) ([]sdk.WorkflowNodeJobRun, error) { +// Request mocks base method. +func (m *MockInterface) Request(ctx context.Context, method, path string, body io.Reader, mods ...cdsclient.RequestModifier) ([]byte, http.Header, int, error) { m.ctrl.T.Helper() - varargs := []interface{}{} - for _, a := range status { + varargs := []interface{}{ctx, method, path, body} + for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "QueueWorkflowNodeJobRun", varargs...) - ret0, _ := ret[0].([]sdk.WorkflowNodeJobRun) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "Request", varargs...) + ret0, _ := ret[0].([]byte) + ret1, _ := ret[1].(http.Header) + ret2, _ := ret[2].(int) + ret3, _ := ret[3].(error) + return ret0, ret1, ret2, ret3 } -// QueueWorkflowNodeJobRun indicates an expected call of QueueWorkflowNodeJobRun -func (mr *MockInterfaceMockRecorder) QueueWorkflowNodeJobRun(status ...interface{}) *gomock.Call { +// Request indicates an expected call of Request. +func (mr *MockInterfaceMockRecorder) Request(ctx, method, path, body interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowNodeJobRun", reflect.TypeOf((*MockInterface)(nil).QueueWorkflowNodeJobRun), status...) + varargs := append([]interface{}{ctx, method, path, body}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Request", reflect.TypeOf((*MockInterface)(nil).Request), varargs...) } -// QueueCountWorkflowNodeJobRun mocks base method -func (m *MockInterface) QueueCountWorkflowNodeJobRun(since, until *time.Time, modelType string, ratioService *int) (sdk.WorkflowNodeJobRunCount, error) { +// RequestJSON mocks base method. +func (m *MockInterface) RequestJSON(ctx context.Context, method, path string, in, out interface{}, mods ...cdsclient.RequestModifier) ([]byte, http.Header, int, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueCountWorkflowNodeJobRun", since, until, modelType, ratioService) - ret0, _ := ret[0].(sdk.WorkflowNodeJobRunCount) - ret1, _ := ret[1].(error) - return ret0, ret1 + varargs := []interface{}{ctx, method, path, in, out} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RequestJSON", varargs...) + ret0, _ := ret[0].([]byte) + ret1, _ := ret[1].(http.Header) + ret2, _ := ret[2].(int) + ret3, _ := ret[3].(error) + return ret0, ret1, ret2, ret3 } -// QueueCountWorkflowNodeJobRun indicates an expected call of QueueCountWorkflowNodeJobRun -func (mr *MockInterfaceMockRecorder) QueueCountWorkflowNodeJobRun(since, until, modelType, ratioService interface{}) *gomock.Call { +// RequestJSON indicates an expected call of RequestJSON. +func (mr *MockInterfaceMockRecorder) RequestJSON(ctx, method, path, in, out interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueCountWorkflowNodeJobRun", reflect.TypeOf((*MockInterface)(nil).QueueCountWorkflowNodeJobRun), since, until, modelType, ratioService) + varargs := append([]interface{}{ctx, method, path, in, out}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestJSON", reflect.TypeOf((*MockInterface)(nil).RequestJSON), varargs...) } -// QueuePolling mocks base method -func (m *MockInterface) QueuePolling(ctx context.Context, goRoutines *sdk.GoRoutines, jobs chan<- sdk.WorkflowNodeJobRun, errs chan<- error, delay time.Duration, modelType string, ratioService *int) error { +// RequestWebsocket mocks base method. +func (m *MockInterface) RequestWebsocket(ctx context.Context, goRoutines *sdk.GoRoutines, path string, msgToSend <-chan json.RawMessage, msgReceived chan<- json.RawMessage, errorReceived chan<- error) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueuePolling", ctx, goRoutines, jobs, errs, delay, modelType, ratioService) + ret := m.ctrl.Call(m, "RequestWebsocket", ctx, goRoutines, path, msgToSend, msgReceived, errorReceived) ret0, _ := ret[0].(error) return ret0 } -// QueuePolling indicates an expected call of QueuePolling -func (mr *MockInterfaceMockRecorder) QueuePolling(ctx, goRoutines, jobs, errs, delay, modelType, ratioService interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueuePolling", reflect.TypeOf((*MockInterface)(nil).QueuePolling), ctx, goRoutines, jobs, errs, delay, modelType, ratioService) -} - -// QueueTakeJob mocks base method -func (m *MockInterface) QueueTakeJob(ctx context.Context, job sdk.WorkflowNodeJobRun) (*sdk.WorkflowNodeJobRunData, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueTakeJob", ctx, job) - ret0, _ := ret[0].(*sdk.WorkflowNodeJobRunData) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// QueueTakeJob indicates an expected call of QueueTakeJob -func (mr *MockInterfaceMockRecorder) QueueTakeJob(ctx, job interface{}) *gomock.Call { +// RequestWebsocket indicates an expected call of RequestWebsocket. +func (mr *MockInterfaceMockRecorder) RequestWebsocket(ctx, goRoutines, path, msgToSend, msgReceived, errorReceived interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueTakeJob", reflect.TypeOf((*MockInterface)(nil).QueueTakeJob), ctx, job) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestWebsocket", reflect.TypeOf((*MockInterface)(nil).RequestWebsocket), ctx, goRoutines, path, msgToSend, msgReceived, errorReceived) } -// QueueJobBook mocks base method -func (m *MockInterface) QueueJobBook(ctx context.Context, id int64) (sdk.WorkflowNodeJobRunBooked, error) { +// Requirements mocks base method. +func (m *MockInterface) Requirements() ([]sdk.Requirement, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueJobBook", ctx, id) - ret0, _ := ret[0].(sdk.WorkflowNodeJobRunBooked) + ret := m.ctrl.Call(m, "Requirements") + ret0, _ := ret[0].([]sdk.Requirement) ret1, _ := ret[1].(error) return ret0, ret1 } -// QueueJobBook indicates an expected call of QueueJobBook -func (mr *MockInterfaceMockRecorder) QueueJobBook(ctx, id interface{}) *gomock.Call { +// Requirements indicates an expected call of Requirements. +func (mr *MockInterfaceMockRecorder) Requirements() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobBook", reflect.TypeOf((*MockInterface)(nil).QueueJobBook), ctx, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Requirements", reflect.TypeOf((*MockInterface)(nil).Requirements)) } -// QueueJobRelease mocks base method -func (m *MockInterface) QueueJobRelease(ctx context.Context, id int64) error { +// ServiceCallDELETE mocks base method. +func (m *MockInterface) ServiceCallDELETE(stype, url string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueJobRelease", ctx, id) + ret := m.ctrl.Call(m, "ServiceCallDELETE", stype, url) ret0, _ := ret[0].(error) return ret0 } -// QueueJobRelease indicates an expected call of QueueJobRelease -func (mr *MockInterfaceMockRecorder) QueueJobRelease(ctx, id interface{}) *gomock.Call { +// ServiceCallDELETE indicates an expected call of ServiceCallDELETE. +func (mr *MockInterfaceMockRecorder) ServiceCallDELETE(stype, url interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobRelease", reflect.TypeOf((*MockInterface)(nil).QueueJobRelease), ctx, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCallDELETE", reflect.TypeOf((*MockInterface)(nil).ServiceCallDELETE), stype, url) } -// QueueJobInfo mocks base method -func (m *MockInterface) QueueJobInfo(ctx context.Context, id int64) (*sdk.WorkflowNodeJobRun, error) { +// ServiceCallGET mocks base method. +func (m *MockInterface) ServiceCallGET(stype, url string) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueJobInfo", ctx, id) - ret0, _ := ret[0].(*sdk.WorkflowNodeJobRun) + ret := m.ctrl.Call(m, "ServiceCallGET", stype, url) + ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } -// QueueJobInfo indicates an expected call of QueueJobInfo -func (mr *MockInterfaceMockRecorder) QueueJobInfo(ctx, id interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobInfo", reflect.TypeOf((*MockInterface)(nil).QueueJobInfo), ctx, id) -} - -// QueueJobSendSpawnInfo mocks base method -func (m *MockInterface) QueueJobSendSpawnInfo(ctx context.Context, id int64, in []sdk.SpawnInfo) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueJobSendSpawnInfo", ctx, id, in) - ret0, _ := ret[0].(error) - return ret0 -} - -// QueueJobSendSpawnInfo indicates an expected call of QueueJobSendSpawnInfo -func (mr *MockInterfaceMockRecorder) QueueJobSendSpawnInfo(ctx, id, in interface{}) *gomock.Call { +// ServiceCallGET indicates an expected call of ServiceCallGET. +func (mr *MockInterfaceMockRecorder) ServiceCallGET(stype, url interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobSendSpawnInfo", reflect.TypeOf((*MockInterface)(nil).QueueJobSendSpawnInfo), ctx, id, in) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCallGET", reflect.TypeOf((*MockInterface)(nil).ServiceCallGET), stype, url) } -// QueueSendCoverage mocks base method -func (m *MockInterface) QueueSendCoverage(ctx context.Context, id int64, report coverage.Report) error { +// ServiceCallPOST mocks base method. +func (m *MockInterface) ServiceCallPOST(stype, url string, body []byte) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendCoverage", ctx, id, report) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "ServiceCallPOST", stype, url, body) + ret0, _ := ret[0].([]byte) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// QueueSendCoverage indicates an expected call of QueueSendCoverage -func (mr *MockInterfaceMockRecorder) QueueSendCoverage(ctx, id, report interface{}) *gomock.Call { +// ServiceCallPOST indicates an expected call of ServiceCallPOST. +func (mr *MockInterfaceMockRecorder) ServiceCallPOST(stype, url, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendCoverage", reflect.TypeOf((*MockInterface)(nil).QueueSendCoverage), ctx, id, report) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCallPOST", reflect.TypeOf((*MockInterface)(nil).ServiceCallPOST), stype, url, body) } -// QueueSendUnitTests mocks base method -func (m *MockInterface) QueueSendUnitTests(ctx context.Context, id int64, report venom.Tests) error { +// ServiceCallPUT mocks base method. +func (m *MockInterface) ServiceCallPUT(stype, url string, body []byte) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendUnitTests", ctx, id, report) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "ServiceCallPUT", stype, url, body) + ret0, _ := ret[0].([]byte) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// QueueSendUnitTests indicates an expected call of QueueSendUnitTests -func (mr *MockInterfaceMockRecorder) QueueSendUnitTests(ctx, id, report interface{}) *gomock.Call { +// ServiceCallPUT indicates an expected call of ServiceCallPUT. +func (mr *MockInterfaceMockRecorder) ServiceCallPUT(stype, url, body interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendUnitTests", reflect.TypeOf((*MockInterface)(nil).QueueSendUnitTests), ctx, id, report) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCallPUT", reflect.TypeOf((*MockInterface)(nil).ServiceCallPUT), stype, url, body) } -// QueueSendLogs mocks base method -func (m *MockInterface) QueueSendLogs(ctx context.Context, id int64, log sdk.Log) error { +// ServiceConfigurationGet mocks base method. +func (m *MockInterface) ServiceConfigurationGet(arg0 context.Context, arg1 string) ([]sdk.ServiceConfiguration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendLogs", ctx, id, log) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "ServiceConfigurationGet", arg0, arg1) + ret0, _ := ret[0].([]sdk.ServiceConfiguration) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// QueueSendLogs indicates an expected call of QueueSendLogs -func (mr *MockInterfaceMockRecorder) QueueSendLogs(ctx, id, log interface{}) *gomock.Call { +// ServiceConfigurationGet indicates an expected call of ServiceConfigurationGet. +func (mr *MockInterfaceMockRecorder) ServiceConfigurationGet(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendLogs", reflect.TypeOf((*MockInterface)(nil).QueueSendLogs), ctx, id, log) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceConfigurationGet", reflect.TypeOf((*MockInterface)(nil).ServiceConfigurationGet), arg0, arg1) } -// QueueSendVulnerability mocks base method -func (m *MockInterface) QueueSendVulnerability(ctx context.Context, id int64, report sdk.VulnerabilityWorkerReport) error { +// ServiceDelete mocks base method. +func (m *MockInterface) ServiceDelete(name string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendVulnerability", ctx, id, report) + ret := m.ctrl.Call(m, "ServiceDelete", name) ret0, _ := ret[0].(error) return ret0 } -// QueueSendVulnerability indicates an expected call of QueueSendVulnerability -func (mr *MockInterfaceMockRecorder) QueueSendVulnerability(ctx, id, report interface{}) *gomock.Call { +// ServiceDelete indicates an expected call of ServiceDelete. +func (mr *MockInterfaceMockRecorder) ServiceDelete(name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendVulnerability", reflect.TypeOf((*MockInterface)(nil).QueueSendVulnerability), ctx, id, report) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceDelete", reflect.TypeOf((*MockInterface)(nil).ServiceDelete), name) } -// QueueSendStepResult mocks base method -func (m *MockInterface) QueueSendStepResult(ctx context.Context, id int64, res sdk.StepStatus) error { +// ServiceHeartbeat mocks base method. +func (m *MockInterface) ServiceHeartbeat(arg0 *sdk.MonitoringStatus) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendStepResult", ctx, id, res) + ret := m.ctrl.Call(m, "ServiceHeartbeat", arg0) ret0, _ := ret[0].(error) return ret0 } -// QueueSendStepResult indicates an expected call of QueueSendStepResult -func (mr *MockInterfaceMockRecorder) QueueSendStepResult(ctx, id, res interface{}) *gomock.Call { +// ServiceHeartbeat indicates an expected call of ServiceHeartbeat. +func (mr *MockInterfaceMockRecorder) ServiceHeartbeat(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendStepResult", reflect.TypeOf((*MockInterface)(nil).QueueSendStepResult), ctx, id, res) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceHeartbeat", reflect.TypeOf((*MockInterface)(nil).ServiceHeartbeat), arg0) } -// QueueSendResult mocks base method -func (m *MockInterface) QueueSendResult(ctx context.Context, id int64, res sdk.Result) error { +// ServiceNameCallGET mocks base method. +func (m *MockInterface) ServiceNameCallGET(name, url string) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendResult", ctx, id, res) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "ServiceNameCallGET", name, url) + ret0, _ := ret[0].([]byte) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// QueueSendResult indicates an expected call of QueueSendResult -func (mr *MockInterfaceMockRecorder) QueueSendResult(ctx, id, res interface{}) *gomock.Call { +// ServiceNameCallGET indicates an expected call of ServiceNameCallGET. +func (mr *MockInterfaceMockRecorder) ServiceNameCallGET(name, url interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendResult", reflect.TypeOf((*MockInterface)(nil).QueueSendResult), ctx, id, res) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceNameCallGET", reflect.TypeOf((*MockInterface)(nil).ServiceNameCallGET), name, url) } -// QueueArtifactUpload mocks base method -func (m *MockInterface) QueueArtifactUpload(ctx context.Context, projectKey, integrationName string, nodeJobRunID int64, tag, filePath string) (bool, time.Duration, error) { +// ServiceRegister mocks base method. +func (m *MockInterface) ServiceRegister(arg0 context.Context, arg1 sdk.Service) (*sdk.Service, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueArtifactUpload", ctx, projectKey, integrationName, nodeJobRunID, tag, filePath) - ret0, _ := ret[0].(bool) - ret1, _ := ret[1].(time.Duration) - ret2, _ := ret[2].(error) - return ret0, ret1, ret2 + ret := m.ctrl.Call(m, "ServiceRegister", arg0, arg1) + ret0, _ := ret[0].(*sdk.Service) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// QueueArtifactUpload indicates an expected call of QueueArtifactUpload -func (mr *MockInterfaceMockRecorder) QueueArtifactUpload(ctx, projectKey, integrationName, nodeJobRunID, tag, filePath interface{}) *gomock.Call { +// ServiceRegister indicates an expected call of ServiceRegister. +func (mr *MockInterfaceMockRecorder) ServiceRegister(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueArtifactUpload", reflect.TypeOf((*MockInterface)(nil).QueueArtifactUpload), ctx, projectKey, integrationName, nodeJobRunID, tag, filePath) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceRegister", reflect.TypeOf((*MockInterface)(nil).ServiceRegister), arg0, arg1) } -// QueueStaticFilesUpload mocks base method -func (m *MockInterface) QueueStaticFilesUpload(ctx context.Context, projectKey, integrationName string, nodeJobRunID int64, name, entrypoint, staticKey string, tarContent io.Reader) (string, bool, time.Duration, error) { +// Services mocks base method. +func (m *MockInterface) Services() ([]sdk.Service, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueStaticFilesUpload", ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent) - ret0, _ := ret[0].(string) - ret1, _ := ret[1].(bool) - ret2, _ := ret[2].(time.Duration) - ret3, _ := ret[3].(error) - return ret0, ret1, ret2, ret3 + ret := m.ctrl.Call(m, "Services") + ret0, _ := ret[0].([]sdk.Service) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// QueueStaticFilesUpload indicates an expected call of QueueStaticFilesUpload -func (mr *MockInterfaceMockRecorder) QueueStaticFilesUpload(ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent interface{}) *gomock.Call { +// Services indicates an expected call of Services. +func (mr *MockInterfaceMockRecorder) Services() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueStaticFilesUpload", reflect.TypeOf((*MockInterface)(nil).QueueStaticFilesUpload), ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Services", reflect.TypeOf((*MockInterface)(nil).Services)) } -// QueueJobTag mocks base method -func (m *MockInterface) QueueJobTag(ctx context.Context, jobID int64, tags []sdk.WorkflowRunTag) error { +// ServicesByName mocks base method. +func (m *MockInterface) ServicesByName(name string) (*sdk.Service, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueJobTag", ctx, jobID, tags) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "ServicesByName", name) + ret0, _ := ret[0].(*sdk.Service) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// QueueJobTag indicates an expected call of QueueJobTag -func (mr *MockInterfaceMockRecorder) QueueJobTag(ctx, jobID, tags interface{}) *gomock.Call { +// ServicesByName indicates an expected call of ServicesByName. +func (mr *MockInterfaceMockRecorder) ServicesByName(name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobTag", reflect.TypeOf((*MockInterface)(nil).QueueJobTag), ctx, jobID, tags) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServicesByName", reflect.TypeOf((*MockInterface)(nil).ServicesByName), name) } -// QueueServiceLogs mocks base method -func (m *MockInterface) QueueServiceLogs(ctx context.Context, logs []sdk.ServiceLog) error { +// ServicesByType mocks base method. +func (m *MockInterface) ServicesByType(stype string) ([]sdk.Service, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueServiceLogs", ctx, logs) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "ServicesByType", stype) + ret0, _ := ret[0].([]sdk.Service) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// QueueServiceLogs indicates an expected call of QueueServiceLogs -func (mr *MockInterfaceMockRecorder) QueueServiceLogs(ctx, logs interface{}) *gomock.Call { +// ServicesByType indicates an expected call of ServicesByType. +func (mr *MockInterfaceMockRecorder) ServicesByType(stype interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueServiceLogs", reflect.TypeOf((*MockInterface)(nil).QueueServiceLogs), ctx, logs) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServicesByType", reflect.TypeOf((*MockInterface)(nil).ServicesByType), stype) } -// QueueJobSetVersion mocks base method -func (m *MockInterface) QueueJobSetVersion(ctx context.Context, jobID int64, version sdk.WorkflowRunVersion) error { +// TemplateApply mocks base method. +func (m *MockInterface) TemplateApply(groupName, templateSlug string, req sdk.WorkflowTemplateRequest) (*tar.Reader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueJobSetVersion", ctx, jobID, version) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "TemplateApply", groupName, templateSlug, req) + ret0, _ := ret[0].(*tar.Reader) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// QueueJobSetVersion indicates an expected call of QueueJobSetVersion -func (mr *MockInterfaceMockRecorder) QueueJobSetVersion(ctx, jobID, version interface{}) *gomock.Call { +// TemplateApply indicates an expected call of TemplateApply. +func (mr *MockInterfaceMockRecorder) TemplateApply(groupName, templateSlug, req interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobSetVersion", reflect.TypeOf((*MockInterface)(nil).QueueJobSetVersion), ctx, jobID, version) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateApply", reflect.TypeOf((*MockInterface)(nil).TemplateApply), groupName, templateSlug, req) } -// QueueWorkerCacheLink mocks base method -func (m *MockInterface) QueueWorkerCacheLink(ctx context.Context, jobID int64, tag string) (sdk.CDNItemLinks, error) { +// TemplateBulk mocks base method. +func (m *MockInterface) TemplateBulk(groupName, templateSlug string, req sdk.WorkflowTemplateBulk) (*sdk.WorkflowTemplateBulk, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueWorkerCacheLink", ctx, jobID, tag) - ret0, _ := ret[0].(sdk.CDNItemLinks) + ret := m.ctrl.Call(m, "TemplateBulk", groupName, templateSlug, req) + ret0, _ := ret[0].(*sdk.WorkflowTemplateBulk) ret1, _ := ret[1].(error) return ret0, ret1 } -// QueueWorkerCacheLink indicates an expected call of QueueWorkerCacheLink -func (mr *MockInterfaceMockRecorder) QueueWorkerCacheLink(ctx, jobID, tag interface{}) *gomock.Call { +// TemplateBulk indicates an expected call of TemplateBulk. +func (mr *MockInterfaceMockRecorder) TemplateBulk(groupName, templateSlug, req interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkerCacheLink", reflect.TypeOf((*MockInterface)(nil).QueueWorkerCacheLink), ctx, jobID, tag) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateBulk", reflect.TypeOf((*MockInterface)(nil).TemplateBulk), groupName, templateSlug, req) } -// QueueWorkflowRunResultsAdd mocks base method -func (m *MockInterface) QueueWorkflowRunResultsAdd(ctx context.Context, jobID int64, addRequest sdk.WorkflowRunResult) error { +// TemplateDelete mocks base method. +func (m *MockInterface) TemplateDelete(groupName, templateSlug string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueWorkflowRunResultsAdd", ctx, jobID, addRequest) + ret := m.ctrl.Call(m, "TemplateDelete", groupName, templateSlug) ret0, _ := ret[0].(error) return ret0 } -// QueueWorkflowRunResultsAdd indicates an expected call of QueueWorkflowRunResultsAdd -func (mr *MockInterfaceMockRecorder) QueueWorkflowRunResultsAdd(ctx, jobID, addRequest interface{}) *gomock.Call { +// TemplateDelete indicates an expected call of TemplateDelete. +func (mr *MockInterfaceMockRecorder) TemplateDelete(groupName, templateSlug interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowRunResultsAdd", reflect.TypeOf((*MockInterface)(nil).QueueWorkflowRunResultsAdd), ctx, jobID, addRequest) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateDelete", reflect.TypeOf((*MockInterface)(nil).TemplateDelete), groupName, templateSlug) } -// QueueWorkflowRunResultCheck mocks base method -func (m *MockInterface) QueueWorkflowRunResultCheck(ctx context.Context, jobID int64, apiRef sdk.CDNRunResultAPIRef) error { +// TemplateDeleteInstance mocks base method. +func (m *MockInterface) TemplateDeleteInstance(groupName, templateSlug string, id int64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueWorkflowRunResultCheck", ctx, jobID, apiRef) + ret := m.ctrl.Call(m, "TemplateDeleteInstance", groupName, templateSlug, id) ret0, _ := ret[0].(error) return ret0 } -// QueueWorkflowRunResultCheck indicates an expected call of QueueWorkflowRunResultCheck -func (mr *MockInterfaceMockRecorder) QueueWorkflowRunResultCheck(ctx, jobID, apiRef interface{}) *gomock.Call { +// TemplateDeleteInstance indicates an expected call of TemplateDeleteInstance. +func (mr *MockInterfaceMockRecorder) TemplateDeleteInstance(groupName, templateSlug, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowRunResultCheck", reflect.TypeOf((*MockInterface)(nil).QueueWorkflowRunResultCheck), ctx, jobID, apiRef) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateDeleteInstance", reflect.TypeOf((*MockInterface)(nil).TemplateDeleteInstance), groupName, templateSlug, id) } -// Navbar mocks base method -func (m *MockInterface) Navbar() ([]sdk.NavbarProjectData, error) { +// TemplateGet mocks base method. +func (m *MockInterface) TemplateGet(groupName, templateSlug string) (*sdk.WorkflowTemplate, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Navbar") - ret0, _ := ret[0].([]sdk.NavbarProjectData) + ret := m.ctrl.Call(m, "TemplateGet", groupName, templateSlug) + ret0, _ := ret[0].(*sdk.WorkflowTemplate) ret1, _ := ret[1].(error) return ret0, ret1 } -// Navbar indicates an expected call of Navbar -func (mr *MockInterfaceMockRecorder) Navbar() *gomock.Call { +// TemplateGet indicates an expected call of TemplateGet. +func (mr *MockInterfaceMockRecorder) TemplateGet(groupName, templateSlug interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Navbar", reflect.TypeOf((*MockInterface)(nil).Navbar)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGet", reflect.TypeOf((*MockInterface)(nil).TemplateGet), groupName, templateSlug) } -// Requirements mocks base method -func (m *MockInterface) Requirements() ([]sdk.Requirement, error) { +// TemplateGetAll mocks base method. +func (m *MockInterface) TemplateGetAll() ([]sdk.WorkflowTemplate, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Requirements") - ret0, _ := ret[0].([]sdk.Requirement) + ret := m.ctrl.Call(m, "TemplateGetAll") + ret0, _ := ret[0].([]sdk.WorkflowTemplate) ret1, _ := ret[1].(error) return ret0, ret1 } -// Requirements indicates an expected call of Requirements -func (mr *MockInterfaceMockRecorder) Requirements() *gomock.Call { +// TemplateGetAll indicates an expected call of TemplateGetAll. +func (mr *MockInterfaceMockRecorder) TemplateGetAll() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Requirements", reflect.TypeOf((*MockInterface)(nil).Requirements)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGetAll", reflect.TypeOf((*MockInterface)(nil).TemplateGetAll)) } -// RepositoriesList mocks base method -func (m *MockInterface) RepositoriesList(projectKey, repoManager string, resync bool) ([]sdk.VCSRepo, error) { +// TemplateGetBulk mocks base method. +func (m *MockInterface) TemplateGetBulk(groupName, templateSlug string, id int64) (*sdk.WorkflowTemplateBulk, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RepositoriesList", projectKey, repoManager, resync) - ret0, _ := ret[0].([]sdk.VCSRepo) + ret := m.ctrl.Call(m, "TemplateGetBulk", groupName, templateSlug, id) + ret0, _ := ret[0].(*sdk.WorkflowTemplateBulk) ret1, _ := ret[1].(error) return ret0, ret1 } -// RepositoriesList indicates an expected call of RepositoriesList -func (mr *MockInterfaceMockRecorder) RepositoriesList(projectKey, repoManager, resync interface{}) *gomock.Call { +// TemplateGetBulk indicates an expected call of TemplateGetBulk. +func (mr *MockInterfaceMockRecorder) TemplateGetBulk(groupName, templateSlug, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RepositoriesList", reflect.TypeOf((*MockInterface)(nil).RepositoriesList), projectKey, repoManager, resync) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGetBulk", reflect.TypeOf((*MockInterface)(nil).TemplateGetBulk), groupName, templateSlug, id) } -// ServiceConfigurationGet mocks base method -func (m *MockInterface) ServiceConfigurationGet(arg0 context.Context, arg1 string) ([]sdk.ServiceConfiguration, error) { +// TemplateGetInstances mocks base method. +func (m *MockInterface) TemplateGetInstances(groupName, templateSlug string) ([]sdk.WorkflowTemplateInstance, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceConfigurationGet", arg0, arg1) - ret0, _ := ret[0].([]sdk.ServiceConfiguration) + ret := m.ctrl.Call(m, "TemplateGetInstances", groupName, templateSlug) + ret0, _ := ret[0].([]sdk.WorkflowTemplateInstance) ret1, _ := ret[1].(error) return ret0, ret1 } -// ServiceConfigurationGet indicates an expected call of ServiceConfigurationGet -func (mr *MockInterfaceMockRecorder) ServiceConfigurationGet(arg0, arg1 interface{}) *gomock.Call { +// TemplateGetInstances indicates an expected call of TemplateGetInstances. +func (mr *MockInterfaceMockRecorder) TemplateGetInstances(groupName, templateSlug interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceConfigurationGet", reflect.TypeOf((*MockInterface)(nil).ServiceConfigurationGet), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGetInstances", reflect.TypeOf((*MockInterface)(nil).TemplateGetInstances), groupName, templateSlug) } -// ServiceRegister mocks base method -func (m *MockInterface) ServiceRegister(arg0 context.Context, arg1 sdk.Service) (*sdk.Service, error) { +// TemplatePull mocks base method. +func (m *MockInterface) TemplatePull(groupName, templateSlug string) (*tar.Reader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceRegister", arg0, arg1) - ret0, _ := ret[0].(*sdk.Service) + ret := m.ctrl.Call(m, "TemplatePull", groupName, templateSlug) + ret0, _ := ret[0].(*tar.Reader) ret1, _ := ret[1].(error) return ret0, ret1 } -// ServiceRegister indicates an expected call of ServiceRegister -func (mr *MockInterfaceMockRecorder) ServiceRegister(arg0, arg1 interface{}) *gomock.Call { +// TemplatePull indicates an expected call of TemplatePull. +func (mr *MockInterfaceMockRecorder) TemplatePull(groupName, templateSlug interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceRegister", reflect.TypeOf((*MockInterface)(nil).ServiceRegister), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplatePull", reflect.TypeOf((*MockInterface)(nil).TemplatePull), groupName, templateSlug) } -// ServiceHeartbeat mocks base method -func (m *MockInterface) ServiceHeartbeat(arg0 *sdk.MonitoringStatus) error { +// TemplatePush mocks base method. +func (m *MockInterface) TemplatePush(tarContent io.Reader) ([]string, *tar.Reader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceHeartbeat", arg0) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "TemplatePush", tarContent) + ret0, _ := ret[0].([]string) + ret1, _ := ret[1].(*tar.Reader) + ret2, _ := ret[2].(error) + return ret0, ret1, ret2 } -// ServiceHeartbeat indicates an expected call of ServiceHeartbeat -func (mr *MockInterfaceMockRecorder) ServiceHeartbeat(arg0 interface{}) *gomock.Call { +// TemplatePush indicates an expected call of TemplatePush. +func (mr *MockInterfaceMockRecorder) TemplatePush(tarContent interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceHeartbeat", reflect.TypeOf((*MockInterface)(nil).ServiceHeartbeat), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplatePush", reflect.TypeOf((*MockInterface)(nil).TemplatePush), tarContent) } -// UserList mocks base method -func (m *MockInterface) UserList() ([]sdk.AuthentifiedUser, error) { +// UpdateFavorite mocks base method. +func (m *MockInterface) UpdateFavorite(params sdk.FavoriteParams) (interface{}, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UserList") - ret0, _ := ret[0].([]sdk.AuthentifiedUser) + ret := m.ctrl.Call(m, "UpdateFavorite", params) + ret0, _ := ret[0].(interface{}) ret1, _ := ret[1].(error) return ret0, ret1 } -// UserList indicates an expected call of UserList -func (mr *MockInterfaceMockRecorder) UserList() *gomock.Call { +// UpdateFavorite indicates an expected call of UpdateFavorite. +func (mr *MockInterfaceMockRecorder) UpdateFavorite(params interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserList", reflect.TypeOf((*MockInterface)(nil).UserList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFavorite", reflect.TypeOf((*MockInterface)(nil).UpdateFavorite), params) } -// UserGet mocks base method +// UserGet mocks base method. func (m *MockInterface) UserGet(username string) (*sdk.AuthentifiedUser, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserGet", username) @@ -7648,28 +7710,13 @@ func (m *MockInterface) UserGet(username string) (*sdk.AuthentifiedUser, error) return ret0, ret1 } -// UserGet indicates an expected call of UserGet +// UserGet indicates an expected call of UserGet. func (mr *MockInterfaceMockRecorder) UserGet(username interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserGet", reflect.TypeOf((*MockInterface)(nil).UserGet), username) } -// UserGetMe mocks base method -func (m *MockInterface) UserGetMe() (*sdk.AuthentifiedUser, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UserGetMe") - ret0, _ := ret[0].(*sdk.AuthentifiedUser) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UserGetMe indicates an expected call of UserGetMe -func (mr *MockInterfaceMockRecorder) UserGetMe() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserGetMe", reflect.TypeOf((*MockInterface)(nil).UserGetMe)) -} - -// UserGetGroups mocks base method +// UserGetGroups mocks base method. func (m *MockInterface) UserGetGroups(username string) (map[string][]sdk.Group, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserGetGroups", username) @@ -7678,28 +7725,28 @@ func (m *MockInterface) UserGetGroups(username string) (map[string][]sdk.Group, return ret0, ret1 } -// UserGetGroups indicates an expected call of UserGetGroups +// UserGetGroups indicates an expected call of UserGetGroups. func (mr *MockInterfaceMockRecorder) UserGetGroups(username interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserGetGroups", reflect.TypeOf((*MockInterface)(nil).UserGetGroups), username) } -// UpdateFavorite mocks base method -func (m *MockInterface) UpdateFavorite(params sdk.FavoriteParams) (interface{}, error) { +// UserGetMe mocks base method. +func (m *MockInterface) UserGetMe() (*sdk.AuthentifiedUser, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateFavorite", params) - ret0, _ := ret[0].(interface{}) + ret := m.ctrl.Call(m, "UserGetMe") + ret0, _ := ret[0].(*sdk.AuthentifiedUser) ret1, _ := ret[1].(error) return ret0, ret1 } -// UpdateFavorite indicates an expected call of UpdateFavorite -func (mr *MockInterfaceMockRecorder) UpdateFavorite(params interface{}) *gomock.Call { +// UserGetMe indicates an expected call of UserGetMe. +func (mr *MockInterfaceMockRecorder) UserGetMe() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFavorite", reflect.TypeOf((*MockInterface)(nil).UpdateFavorite), params) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserGetMe", reflect.TypeOf((*MockInterface)(nil).UserGetMe)) } -// UserGetSchema mocks base method +// UserGetSchema mocks base method. func (m *MockInterface) UserGetSchema() (sdk.SchemaResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserGetSchema") @@ -7708,638 +7755,632 @@ func (m *MockInterface) UserGetSchema() (sdk.SchemaResponse, error) { return ret0, ret1 } -// UserGetSchema indicates an expected call of UserGetSchema +// UserGetSchema indicates an expected call of UserGetSchema. func (mr *MockInterfaceMockRecorder) UserGetSchema() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserGetSchema", reflect.TypeOf((*MockInterface)(nil).UserGetSchema)) } -// WorkerGet mocks base method -func (m *MockInterface) WorkerGet(ctx context.Context, name string, mods ...cdsclient.RequestModifier) (*sdk.Worker, error) { +// UserList mocks base method. +func (m *MockInterface) UserList() ([]sdk.AuthentifiedUser, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, name} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkerGet", varargs...) - ret0, _ := ret[0].(*sdk.Worker) + ret := m.ctrl.Call(m, "UserList") + ret0, _ := ret[0].([]sdk.AuthentifiedUser) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerGet indicates an expected call of WorkerGet -func (mr *MockInterfaceMockRecorder) WorkerGet(ctx, name interface{}, mods ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, name}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerGet", reflect.TypeOf((*MockInterface)(nil).WorkerGet), varargs...) -} - -// WorkerModelBook mocks base method -func (m *MockInterface) WorkerModelBook(groupName, name string) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelBook", groupName, name) - ret0, _ := ret[0].(error) - return ret0 -} - -// WorkerModelBook indicates an expected call of WorkerModelBook -func (mr *MockInterfaceMockRecorder) WorkerModelBook(groupName, name interface{}) *gomock.Call { +// UserList indicates an expected call of UserList. +func (mr *MockInterfaceMockRecorder) UserList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelBook", reflect.TypeOf((*MockInterface)(nil).WorkerModelBook), groupName, name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserList", reflect.TypeOf((*MockInterface)(nil).UserList)) } -// WorkerList mocks base method -func (m *MockInterface) WorkerList(ctx context.Context) ([]sdk.Worker, error) { +// VCSConfiguration mocks base method. +func (m *MockInterface) VCSConfiguration() (map[string]sdk.VCSConfiguration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerList", ctx) - ret0, _ := ret[0].([]sdk.Worker) + ret := m.ctrl.Call(m, "VCSConfiguration") + ret0, _ := ret[0].(map[string]sdk.VCSConfiguration) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerList indicates an expected call of WorkerList -func (mr *MockInterfaceMockRecorder) WorkerList(ctx interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerList", reflect.TypeOf((*MockInterface)(nil).WorkerList), ctx) -} - -// WorkerRefresh mocks base method -func (m *MockInterface) WorkerRefresh(ctx context.Context) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerRefresh", ctx) - ret0, _ := ret[0].(error) - return ret0 -} - -// WorkerRefresh indicates an expected call of WorkerRefresh -func (mr *MockInterfaceMockRecorder) WorkerRefresh(ctx interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerRefresh", reflect.TypeOf((*MockInterface)(nil).WorkerRefresh), ctx) -} - -// WorkerUnregister mocks base method -func (m *MockInterface) WorkerUnregister(ctx context.Context) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerUnregister", ctx) - ret0, _ := ret[0].(error) - return ret0 -} - -// WorkerUnregister indicates an expected call of WorkerUnregister -func (mr *MockInterfaceMockRecorder) WorkerUnregister(ctx interface{}) *gomock.Call { +// VCSConfiguration indicates an expected call of VCSConfiguration. +func (mr *MockInterfaceMockRecorder) VCSConfiguration() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerUnregister", reflect.TypeOf((*MockInterface)(nil).WorkerUnregister), ctx) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VCSConfiguration", reflect.TypeOf((*MockInterface)(nil).VCSConfiguration)) } -// WorkerDisable mocks base method -func (m *MockInterface) WorkerDisable(ctx context.Context, id string) error { +// VariableEncrypt mocks base method. +func (m *MockInterface) VariableEncrypt(projectKey, varName, content string) (*sdk.Variable, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerDisable", ctx, id) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "VariableEncrypt", projectKey, varName, content) + ret0, _ := ret[0].(*sdk.Variable) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// WorkerDisable indicates an expected call of WorkerDisable -func (mr *MockInterfaceMockRecorder) WorkerDisable(ctx, id interface{}) *gomock.Call { +// VariableEncrypt indicates an expected call of VariableEncrypt. +func (mr *MockInterfaceMockRecorder) VariableEncrypt(projectKey, varName, content interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerDisable", reflect.TypeOf((*MockInterface)(nil).WorkerDisable), ctx, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VariableEncrypt", reflect.TypeOf((*MockInterface)(nil).VariableEncrypt), projectKey, varName, content) } -// WorkerModelAdd mocks base method -func (m *MockInterface) WorkerModelAdd(name, modelType, patternName string, dockerModel *sdk.ModelDocker, vmModel *sdk.ModelVirtualMachine, groupID int64) (sdk.Model, error) { +// VariableListEncrypt mocks base method. +func (m *MockInterface) VariableListEncrypt(projectKey string) ([]sdk.Secret, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelAdd", name, modelType, patternName, dockerModel, vmModel, groupID) - ret0, _ := ret[0].(sdk.Model) + ret := m.ctrl.Call(m, "VariableListEncrypt", projectKey) + ret0, _ := ret[0].([]sdk.Secret) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerModelAdd indicates an expected call of WorkerModelAdd -func (mr *MockInterfaceMockRecorder) WorkerModelAdd(name, modelType, patternName, dockerModel, vmModel, groupID interface{}) *gomock.Call { +// VariableListEncrypt indicates an expected call of VariableListEncrypt. +func (mr *MockInterfaceMockRecorder) VariableListEncrypt(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelAdd", reflect.TypeOf((*MockInterface)(nil).WorkerModelAdd), name, modelType, patternName, dockerModel, vmModel, groupID) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VariableListEncrypt", reflect.TypeOf((*MockInterface)(nil).VariableListEncrypt), projectKey) } -// WorkerModelGet mocks base method -func (m *MockInterface) WorkerModelGet(groupName, name string) (sdk.Model, error) { +// Version mocks base method. +func (m *MockInterface) Version() (*sdk.Version, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelGet", groupName, name) - ret0, _ := ret[0].(sdk.Model) + ret := m.ctrl.Call(m, "Version") + ret0, _ := ret[0].(*sdk.Version) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerModelGet indicates an expected call of WorkerModelGet -func (mr *MockInterfaceMockRecorder) WorkerModelGet(groupName, name interface{}) *gomock.Call { +// Version indicates an expected call of Version. +func (mr *MockInterfaceMockRecorder) Version() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelGet", reflect.TypeOf((*MockInterface)(nil).WorkerModelGet), groupName, name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockInterface)(nil).Version)) } -// WorkerModelDelete mocks base method -func (m *MockInterface) WorkerModelDelete(groupName, name string) error { +// WebsocketEventsListen mocks base method. +func (m *MockInterface) WebsocketEventsListen(ctx context.Context, goRoutines *sdk.GoRoutines, chanMsgToSend <-chan []sdk.WebsocketFilter, chanMsgReceived chan<- sdk.WebsocketEvent, chanErrorReceived chan<- error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelDelete", groupName, name) - ret0, _ := ret[0].(error) - return ret0 + m.ctrl.Call(m, "WebsocketEventsListen", ctx, goRoutines, chanMsgToSend, chanMsgReceived, chanErrorReceived) } -// WorkerModelDelete indicates an expected call of WorkerModelDelete -func (mr *MockInterfaceMockRecorder) WorkerModelDelete(groupName, name interface{}) *gomock.Call { +// WebsocketEventsListen indicates an expected call of WebsocketEventsListen. +func (mr *MockInterfaceMockRecorder) WebsocketEventsListen(ctx, goRoutines, chanMsgToSend, chanMsgReceived, chanErrorReceived interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelDelete", reflect.TypeOf((*MockInterface)(nil).WorkerModelDelete), groupName, name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WebsocketEventsListen", reflect.TypeOf((*MockInterface)(nil).WebsocketEventsListen), ctx, goRoutines, chanMsgToSend, chanMsgReceived, chanErrorReceived) } -// WorkerModelSpawnError mocks base method -func (m *MockInterface) WorkerModelSpawnError(groupName, name string, info sdk.SpawnErrorForm) error { +// WorkerDisable mocks base method. +func (m *MockInterface) WorkerDisable(ctx context.Context, id string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelSpawnError", groupName, name, info) + ret := m.ctrl.Call(m, "WorkerDisable", ctx, id) ret0, _ := ret[0].(error) return ret0 } -// WorkerModelSpawnError indicates an expected call of WorkerModelSpawnError -func (mr *MockInterfaceMockRecorder) WorkerModelSpawnError(groupName, name, info interface{}) *gomock.Call { +// WorkerDisable indicates an expected call of WorkerDisable. +func (mr *MockInterfaceMockRecorder) WorkerDisable(ctx, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelSpawnError", reflect.TypeOf((*MockInterface)(nil).WorkerModelSpawnError), groupName, name, info) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerDisable", reflect.TypeOf((*MockInterface)(nil).WorkerDisable), ctx, id) } -// WorkerModelList mocks base method -func (m *MockInterface) WorkerModelList(arg0 *cdsclient.WorkerModelFilter) ([]sdk.Model, error) { +// WorkerGet mocks base method. +func (m *MockInterface) WorkerGet(ctx context.Context, name string, mods ...cdsclient.RequestModifier) (*sdk.Worker, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelList", arg0) - ret0, _ := ret[0].([]sdk.Model) + varargs := []interface{}{ctx, name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkerGet", varargs...) + ret0, _ := ret[0].(*sdk.Worker) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerModelList indicates an expected call of WorkerModelList -func (mr *MockInterfaceMockRecorder) WorkerModelList(arg0 interface{}) *gomock.Call { +// WorkerGet indicates an expected call of WorkerGet. +func (mr *MockInterfaceMockRecorder) WorkerGet(ctx, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelList", reflect.TypeOf((*MockInterface)(nil).WorkerModelList), arg0) + varargs := append([]interface{}{ctx, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerGet", reflect.TypeOf((*MockInterface)(nil).WorkerGet), varargs...) } -// WorkerModelEnabledList mocks base method -func (m *MockInterface) WorkerModelEnabledList() ([]sdk.Model, error) { +// WorkerList mocks base method. +func (m *MockInterface) WorkerList(ctx context.Context) ([]sdk.Worker, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelEnabledList") - ret0, _ := ret[0].([]sdk.Model) + ret := m.ctrl.Call(m, "WorkerList", ctx) + ret0, _ := ret[0].([]sdk.Worker) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerModelEnabledList indicates an expected call of WorkerModelEnabledList -func (mr *MockInterfaceMockRecorder) WorkerModelEnabledList() *gomock.Call { +// WorkerList indicates an expected call of WorkerList. +func (mr *MockInterfaceMockRecorder) WorkerList(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelEnabledList", reflect.TypeOf((*MockInterface)(nil).WorkerModelEnabledList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerList", reflect.TypeOf((*MockInterface)(nil).WorkerList), ctx) } -// WorkerModelSecretList mocks base method -func (m *MockInterface) WorkerModelSecretList(groupName, name string) (sdk.WorkerModelSecrets, error) { +// WorkerModelAdd mocks base method. +func (m *MockInterface) WorkerModelAdd(name, modelType, patternName string, dockerModel *sdk.ModelDocker, vmModel *sdk.ModelVirtualMachine, groupID int64) (sdk.Model, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelSecretList", groupName, name) - ret0, _ := ret[0].(sdk.WorkerModelSecrets) + ret := m.ctrl.Call(m, "WorkerModelAdd", name, modelType, patternName, dockerModel, vmModel, groupID) + ret0, _ := ret[0].(sdk.Model) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerModelSecretList indicates an expected call of WorkerModelSecretList -func (mr *MockInterfaceMockRecorder) WorkerModelSecretList(groupName, name interface{}) *gomock.Call { +// WorkerModelAdd indicates an expected call of WorkerModelAdd. +func (mr *MockInterfaceMockRecorder) WorkerModelAdd(name, modelType, patternName, dockerModel, vmModel, groupID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelSecretList", reflect.TypeOf((*MockInterface)(nil).WorkerModelSecretList), groupName, name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelAdd", reflect.TypeOf((*MockInterface)(nil).WorkerModelAdd), name, modelType, patternName, dockerModel, vmModel, groupID) } -// WorkerRegister mocks base method -func (m *MockInterface) WorkerRegister(ctx context.Context, authToken string, form sdk.WorkerRegistrationForm) (*sdk.Worker, bool, error) { +// WorkerModelBook mocks base method. +func (m *MockInterface) WorkerModelBook(groupName, name string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerRegister", ctx, authToken, form) - ret0, _ := ret[0].(*sdk.Worker) - ret1, _ := ret[1].(bool) - ret2, _ := ret[2].(error) - return ret0, ret1, ret2 + ret := m.ctrl.Call(m, "WorkerModelBook", groupName, name) + ret0, _ := ret[0].(error) + return ret0 } -// WorkerRegister indicates an expected call of WorkerRegister -func (mr *MockInterfaceMockRecorder) WorkerRegister(ctx, authToken, form interface{}) *gomock.Call { +// WorkerModelBook indicates an expected call of WorkerModelBook. +func (mr *MockInterfaceMockRecorder) WorkerModelBook(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerRegister", reflect.TypeOf((*MockInterface)(nil).WorkerRegister), ctx, authToken, form) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelBook", reflect.TypeOf((*MockInterface)(nil).WorkerModelBook), groupName, name) } -// WorkerSetStatus mocks base method -func (m *MockInterface) WorkerSetStatus(ctx context.Context, status string) error { +// WorkerModelDelete mocks base method. +func (m *MockInterface) WorkerModelDelete(groupName, name string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerSetStatus", ctx, status) + ret := m.ctrl.Call(m, "WorkerModelDelete", groupName, name) ret0, _ := ret[0].(error) return ret0 } -// WorkerSetStatus indicates an expected call of WorkerSetStatus -func (mr *MockInterfaceMockRecorder) WorkerSetStatus(ctx, status interface{}) *gomock.Call { +// WorkerModelDelete indicates an expected call of WorkerModelDelete. +func (mr *MockInterfaceMockRecorder) WorkerModelDelete(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerSetStatus", reflect.TypeOf((*MockInterface)(nil).WorkerSetStatus), ctx, status) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelDelete", reflect.TypeOf((*MockInterface)(nil).WorkerModelDelete), groupName, name) } -// CDNItemUpload mocks base method -func (m *MockInterface) CDNItemUpload(ctx context.Context, cdnAddr, signature string, fs afero.Fs, path string) (time.Duration, error) { +// WorkerModelEnabledList mocks base method. +func (m *MockInterface) WorkerModelEnabledList() ([]sdk.Model, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CDNItemUpload", ctx, cdnAddr, signature, fs, path) - ret0, _ := ret[0].(time.Duration) + ret := m.ctrl.Call(m, "WorkerModelEnabledList") + ret0, _ := ret[0].([]sdk.Model) ret1, _ := ret[1].(error) return ret0, ret1 } -// CDNItemUpload indicates an expected call of CDNItemUpload -func (mr *MockInterfaceMockRecorder) CDNItemUpload(ctx, cdnAddr, signature, fs, path interface{}) *gomock.Call { +// WorkerModelEnabledList indicates an expected call of WorkerModelEnabledList. +func (mr *MockInterfaceMockRecorder) WorkerModelEnabledList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemUpload", reflect.TypeOf((*MockInterface)(nil).CDNItemUpload), ctx, cdnAddr, signature, fs, path) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelEnabledList", reflect.TypeOf((*MockInterface)(nil).WorkerModelEnabledList)) } -// CDNItemDownload mocks base method -func (m *MockInterface) CDNItemDownload(ctx context.Context, cdnAddr, hash string, itemType sdk.CDNItemType) (io.Reader, error) { +// WorkerModelExport mocks base method. +func (m *MockInterface) WorkerModelExport(groupName, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CDNItemDownload", ctx, cdnAddr, hash, itemType) - ret0, _ := ret[0].(io.Reader) + varargs := []interface{}{groupName, name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkerModelExport", varargs...) + ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } -// CDNItemDownload indicates an expected call of CDNItemDownload -func (mr *MockInterfaceMockRecorder) CDNItemDownload(ctx, cdnAddr, hash, itemType interface{}) *gomock.Call { +// WorkerModelExport indicates an expected call of WorkerModelExport. +func (mr *MockInterfaceMockRecorder) WorkerModelExport(groupName, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemDownload", reflect.TypeOf((*MockInterface)(nil).CDNItemDownload), ctx, cdnAddr, hash, itemType) + varargs := append([]interface{}{groupName, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelExport", reflect.TypeOf((*MockInterface)(nil).WorkerModelExport), varargs...) } -// WorkflowSearch mocks base method -func (m *MockInterface) WorkflowSearch(opts ...cdsclient.RequestModifier) ([]sdk.Workflow, error) { +// WorkerModelGet mocks base method. +func (m *MockInterface) WorkerModelGet(groupName, name string) (sdk.Model, error) { m.ctrl.T.Helper() - varargs := []interface{}{} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkflowSearch", varargs...) - ret0, _ := ret[0].([]sdk.Workflow) + ret := m.ctrl.Call(m, "WorkerModelGet", groupName, name) + ret0, _ := ret[0].(sdk.Model) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowSearch indicates an expected call of WorkflowSearch -func (mr *MockInterfaceMockRecorder) WorkflowSearch(opts ...interface{}) *gomock.Call { +// WorkerModelGet indicates an expected call of WorkerModelGet. +func (mr *MockInterfaceMockRecorder) WorkerModelGet(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowSearch", reflect.TypeOf((*MockInterface)(nil).WorkflowSearch), opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelGet", reflect.TypeOf((*MockInterface)(nil).WorkerModelGet), groupName, name) } -// WorkflowRunsAndNodesIDs mocks base method -func (m *MockInterface) WorkflowRunsAndNodesIDs(projectkey string) ([]sdk.WorkflowNodeRunIdentifiers, error) { +// WorkerModelImport mocks base method. +func (m *MockInterface) WorkerModelImport(content io.Reader, mods ...cdsclient.RequestModifier) (*sdk.Model, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunsAndNodesIDs", projectkey) - ret0, _ := ret[0].([]sdk.WorkflowNodeRunIdentifiers) + varargs := []interface{}{content} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkerModelImport", varargs...) + ret0, _ := ret[0].(*sdk.Model) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowRunsAndNodesIDs indicates an expected call of WorkflowRunsAndNodesIDs -func (mr *MockInterfaceMockRecorder) WorkflowRunsAndNodesIDs(projectkey interface{}) *gomock.Call { +// WorkerModelImport indicates an expected call of WorkerModelImport. +func (mr *MockInterfaceMockRecorder) WorkerModelImport(content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunsAndNodesIDs", reflect.TypeOf((*MockInterface)(nil).WorkflowRunsAndNodesIDs), projectkey) + varargs := append([]interface{}{content}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelImport", reflect.TypeOf((*MockInterface)(nil).WorkerModelImport), varargs...) } -// WorkflowList mocks base method -func (m *MockInterface) WorkflowList(projectKey string, opts ...cdsclient.RequestModifier) ([]sdk.Workflow, error) { +// WorkerModelList mocks base method. +func (m *MockInterface) WorkerModelList(arg0 *cdsclient.WorkerModelFilter) ([]sdk.Model, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkflowList", varargs...) - ret0, _ := ret[0].([]sdk.Workflow) + ret := m.ctrl.Call(m, "WorkerModelList", arg0) + ret0, _ := ret[0].([]sdk.Model) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowList indicates an expected call of WorkflowList -func (mr *MockInterfaceMockRecorder) WorkflowList(projectKey interface{}, opts ...interface{}) *gomock.Call { +// WorkerModelList indicates an expected call of WorkerModelList. +func (mr *MockInterfaceMockRecorder) WorkerModelList(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowList", reflect.TypeOf((*MockInterface)(nil).WorkflowList), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelList", reflect.TypeOf((*MockInterface)(nil).WorkerModelList), arg0) } -// WorkflowGet mocks base method -func (m *MockInterface) WorkflowGet(projectKey, name string, opts ...cdsclient.RequestModifier) (*sdk.Workflow, error) { +// WorkerModelSecretList mocks base method. +func (m *MockInterface) WorkerModelSecretList(groupName, name string) (sdk.WorkerModelSecrets, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, name} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkflowGet", varargs...) - ret0, _ := ret[0].(*sdk.Workflow) + ret := m.ctrl.Call(m, "WorkerModelSecretList", groupName, name) + ret0, _ := ret[0].(sdk.WorkerModelSecrets) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowGet indicates an expected call of WorkflowGet -func (mr *MockInterfaceMockRecorder) WorkflowGet(projectKey, name interface{}, opts ...interface{}) *gomock.Call { +// WorkerModelSecretList indicates an expected call of WorkerModelSecretList. +func (mr *MockInterfaceMockRecorder) WorkerModelSecretList(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, name}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowGet", reflect.TypeOf((*MockInterface)(nil).WorkflowGet), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelSecretList", reflect.TypeOf((*MockInterface)(nil).WorkerModelSecretList), groupName, name) } -// WorkflowUpdate mocks base method -func (m *MockInterface) WorkflowUpdate(projectKey, name string, wf *sdk.Workflow) error { +// WorkerModelSpawnError mocks base method. +func (m *MockInterface) WorkerModelSpawnError(groupName, name string, info sdk.SpawnErrorForm) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowUpdate", projectKey, name, wf) + ret := m.ctrl.Call(m, "WorkerModelSpawnError", groupName, name, info) ret0, _ := ret[0].(error) return ret0 } -// WorkflowUpdate indicates an expected call of WorkflowUpdate -func (mr *MockInterfaceMockRecorder) WorkflowUpdate(projectKey, name, wf interface{}) *gomock.Call { +// WorkerModelSpawnError indicates an expected call of WorkerModelSpawnError. +func (mr *MockInterfaceMockRecorder) WorkerModelSpawnError(groupName, name, info interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowUpdate", reflect.TypeOf((*MockInterface)(nil).WorkflowUpdate), projectKey, name, wf) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelSpawnError", reflect.TypeOf((*MockInterface)(nil).WorkerModelSpawnError), groupName, name, info) } -// WorkflowDelete mocks base method -func (m *MockInterface) WorkflowDelete(projectKey, workflowName string) error { +// WorkerRefresh mocks base method. +func (m *MockInterface) WorkerRefresh(ctx context.Context) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowDelete", projectKey, workflowName) + ret := m.ctrl.Call(m, "WorkerRefresh", ctx) ret0, _ := ret[0].(error) return ret0 } -// WorkflowDelete indicates an expected call of WorkflowDelete -func (mr *MockInterfaceMockRecorder) WorkflowDelete(projectKey, workflowName interface{}) *gomock.Call { +// WorkerRefresh indicates an expected call of WorkerRefresh. +func (mr *MockInterfaceMockRecorder) WorkerRefresh(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowDelete", reflect.TypeOf((*MockInterface)(nil).WorkflowDelete), projectKey, workflowName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerRefresh", reflect.TypeOf((*MockInterface)(nil).WorkerRefresh), ctx) } -// WorkflowLabelAdd mocks base method -func (m *MockInterface) WorkflowLabelAdd(projectKey, name, labelName string) error { +// WorkerRegister mocks base method. +func (m *MockInterface) WorkerRegister(ctx context.Context, authToken string, form sdk.WorkerRegistrationForm) (*sdk.Worker, bool, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowLabelAdd", projectKey, name, labelName) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "WorkerRegister", ctx, authToken, form) + ret0, _ := ret[0].(*sdk.Worker) + ret1, _ := ret[1].(bool) + ret2, _ := ret[2].(error) + return ret0, ret1, ret2 } -// WorkflowLabelAdd indicates an expected call of WorkflowLabelAdd -func (mr *MockInterfaceMockRecorder) WorkflowLabelAdd(projectKey, name, labelName interface{}) *gomock.Call { +// WorkerRegister indicates an expected call of WorkerRegister. +func (mr *MockInterfaceMockRecorder) WorkerRegister(ctx, authToken, form interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowLabelAdd", reflect.TypeOf((*MockInterface)(nil).WorkflowLabelAdd), projectKey, name, labelName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerRegister", reflect.TypeOf((*MockInterface)(nil).WorkerRegister), ctx, authToken, form) } -// WorkflowLabelDelete mocks base method -func (m *MockInterface) WorkflowLabelDelete(projectKey, name string, labelID int64) error { +// WorkerSetStatus mocks base method. +func (m *MockInterface) WorkerSetStatus(ctx context.Context, status string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowLabelDelete", projectKey, name, labelID) + ret := m.ctrl.Call(m, "WorkerSetStatus", ctx, status) ret0, _ := ret[0].(error) return ret0 } -// WorkflowLabelDelete indicates an expected call of WorkflowLabelDelete -func (mr *MockInterfaceMockRecorder) WorkflowLabelDelete(projectKey, name, labelID interface{}) *gomock.Call { +// WorkerSetStatus indicates an expected call of WorkerSetStatus. +func (mr *MockInterfaceMockRecorder) WorkerSetStatus(ctx, status interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowLabelDelete", reflect.TypeOf((*MockInterface)(nil).WorkflowLabelDelete), projectKey, name, labelID) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerSetStatus", reflect.TypeOf((*MockInterface)(nil).WorkerSetStatus), ctx, status) } -// WorkflowGroupAdd mocks base method -func (m *MockInterface) WorkflowGroupAdd(projectKey, name, groupName string, permission int) error { +// WorkerUnregister mocks base method. +func (m *MockInterface) WorkerUnregister(ctx context.Context) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowGroupAdd", projectKey, name, groupName, permission) + ret := m.ctrl.Call(m, "WorkerUnregister", ctx) ret0, _ := ret[0].(error) return ret0 } -// WorkflowGroupAdd indicates an expected call of WorkflowGroupAdd -func (mr *MockInterfaceMockRecorder) WorkflowGroupAdd(projectKey, name, groupName, permission interface{}) *gomock.Call { +// WorkerUnregister indicates an expected call of WorkerUnregister. +func (mr *MockInterfaceMockRecorder) WorkerUnregister(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowGroupAdd", reflect.TypeOf((*MockInterface)(nil).WorkflowGroupAdd), projectKey, name, groupName, permission) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerUnregister", reflect.TypeOf((*MockInterface)(nil).WorkerUnregister), ctx) } -// WorkflowGroupDelete mocks base method -func (m *MockInterface) WorkflowGroupDelete(projectKey, name, groupName string) error { +// WorkflowAccess mocks base method. +func (m *MockInterface) WorkflowAccess(ctx context.Context, projectKey string, workflowID int64, sessionID string, itemType sdk.CDNItemType) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowGroupDelete", projectKey, name, groupName) + ret := m.ctrl.Call(m, "WorkflowAccess", ctx, projectKey, workflowID, sessionID, itemType) ret0, _ := ret[0].(error) return ret0 } -// WorkflowGroupDelete indicates an expected call of WorkflowGroupDelete -func (mr *MockInterfaceMockRecorder) WorkflowGroupDelete(projectKey, name, groupName interface{}) *gomock.Call { +// WorkflowAccess indicates an expected call of WorkflowAccess. +func (mr *MockInterfaceMockRecorder) WorkflowAccess(ctx, projectKey, workflowID, sessionID, itemType interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowGroupDelete", reflect.TypeOf((*MockInterface)(nil).WorkflowGroupDelete), projectKey, name, groupName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAccess", reflect.TypeOf((*MockInterface)(nil).WorkflowAccess), ctx, projectKey, workflowID, sessionID, itemType) } -// WorkflowRunGet mocks base method -func (m *MockInterface) WorkflowRunGet(projectKey, workflowName string, number int64) (*sdk.WorkflowRun, error) { +// WorkflowAllHooksList mocks base method. +func (m *MockInterface) WorkflowAllHooksList() ([]sdk.NodeHook, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunGet", projectKey, workflowName, number) - ret0, _ := ret[0].(*sdk.WorkflowRun) + ret := m.ctrl.Call(m, "WorkflowAllHooksList") + ret0, _ := ret[0].([]sdk.NodeHook) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowRunGet indicates an expected call of WorkflowRunGet -func (mr *MockInterfaceMockRecorder) WorkflowRunGet(projectKey, workflowName, number interface{}) *gomock.Call { +// WorkflowAllHooksList indicates an expected call of WorkflowAllHooksList. +func (mr *MockInterfaceMockRecorder) WorkflowAllHooksList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunGet", reflect.TypeOf((*MockInterface)(nil).WorkflowRunGet), projectKey, workflowName, number) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAllHooksList", reflect.TypeOf((*MockInterface)(nil).WorkflowAllHooksList)) } -// WorkflowRunsDeleteByBranch mocks base method -func (m *MockInterface) WorkflowRunsDeleteByBranch(projectKey, workflowName, branch string) error { +// WorkflowAsCodeInfo mocks base method. +func (m *MockInterface) WorkflowAsCodeInfo(projectKey, operationID string) (*sdk.Operation, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunsDeleteByBranch", projectKey, workflowName, branch) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "WorkflowAsCodeInfo", projectKey, operationID) + ret0, _ := ret[0].(*sdk.Operation) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// WorkflowRunsDeleteByBranch indicates an expected call of WorkflowRunsDeleteByBranch -func (mr *MockInterfaceMockRecorder) WorkflowRunsDeleteByBranch(projectKey, workflowName, branch interface{}) *gomock.Call { +// WorkflowAsCodeInfo indicates an expected call of WorkflowAsCodeInfo. +func (mr *MockInterfaceMockRecorder) WorkflowAsCodeInfo(projectKey, operationID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunsDeleteByBranch", reflect.TypeOf((*MockInterface)(nil).WorkflowRunsDeleteByBranch), projectKey, workflowName, branch) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodeInfo", reflect.TypeOf((*MockInterface)(nil).WorkflowAsCodeInfo), projectKey, operationID) } -// WorkflowRunResync mocks base method -func (m *MockInterface) WorkflowRunResync(projectKey, workflowName string, number int64) (*sdk.WorkflowRun, error) { +// WorkflowAsCodePerform mocks base method. +func (m *MockInterface) WorkflowAsCodePerform(projectKey, operationID string) ([]string, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunResync", projectKey, workflowName, number) - ret0, _ := ret[0].(*sdk.WorkflowRun) + ret := m.ctrl.Call(m, "WorkflowAsCodePerform", projectKey, operationID) + ret0, _ := ret[0].([]string) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowRunResync indicates an expected call of WorkflowRunResync -func (mr *MockInterfaceMockRecorder) WorkflowRunResync(projectKey, workflowName, number interface{}) *gomock.Call { +// WorkflowAsCodePerform indicates an expected call of WorkflowAsCodePerform. +func (mr *MockInterfaceMockRecorder) WorkflowAsCodePerform(projectKey, operationID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunResync", reflect.TypeOf((*MockInterface)(nil).WorkflowRunResync), projectKey, workflowName, number) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodePerform", reflect.TypeOf((*MockInterface)(nil).WorkflowAsCodePerform), projectKey, operationID) } -// WorkflowRunSearch mocks base method -func (m *MockInterface) WorkflowRunSearch(projectKey string, offset, limit int64, filter ...cdsclient.Filter) ([]sdk.WorkflowRun, error) { +// WorkflowAsCodeStart mocks base method. +func (m *MockInterface) WorkflowAsCodeStart(projectKey, repoURL string, repoStrategy sdk.RepositoryStrategy) (*sdk.Operation, error) { m.ctrl.T.Helper() - varargs := []interface{}{projectKey, offset, limit} - for _, a := range filter { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "WorkflowRunSearch", varargs...) - ret0, _ := ret[0].([]sdk.WorkflowRun) + ret := m.ctrl.Call(m, "WorkflowAsCodeStart", projectKey, repoURL, repoStrategy) + ret0, _ := ret[0].(*sdk.Operation) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowRunSearch indicates an expected call of WorkflowRunSearch -func (mr *MockInterfaceMockRecorder) WorkflowRunSearch(projectKey, offset, limit interface{}, filter ...interface{}) *gomock.Call { +// WorkflowAsCodeStart indicates an expected call of WorkflowAsCodeStart. +func (mr *MockInterfaceMockRecorder) WorkflowAsCodeStart(projectKey, repoURL, repoStrategy interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey, offset, limit}, filter...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunSearch", reflect.TypeOf((*MockInterface)(nil).WorkflowRunSearch), varargs...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAsCodeStart", reflect.TypeOf((*MockInterface)(nil).WorkflowAsCodeStart), projectKey, repoURL, repoStrategy) } -// WorkflowRunList mocks base method -func (m *MockInterface) WorkflowRunList(projectKey, workflowName string, offset, limit int64) ([]sdk.WorkflowRun, error) { +// WorkflowCachePull mocks base method. +func (m *MockInterface) WorkflowCachePull(projectKey, integrationName, ref string) (io.Reader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunList", projectKey, workflowName, offset, limit) - ret0, _ := ret[0].([]sdk.WorkflowRun) + ret := m.ctrl.Call(m, "WorkflowCachePull", projectKey, integrationName, ref) + ret0, _ := ret[0].(io.Reader) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowRunList indicates an expected call of WorkflowRunList -func (mr *MockInterfaceMockRecorder) WorkflowRunList(projectKey, workflowName, offset, limit interface{}) *gomock.Call { +// WorkflowCachePull indicates an expected call of WorkflowCachePull. +func (mr *MockInterfaceMockRecorder) WorkflowCachePull(projectKey, integrationName, ref interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunList", reflect.TypeOf((*MockInterface)(nil).WorkflowRunList), projectKey, workflowName, offset, limit) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowCachePull", reflect.TypeOf((*MockInterface)(nil).WorkflowCachePull), projectKey, integrationName, ref) } -// WorkflowRunArtifacts mocks base method -func (m *MockInterface) WorkflowRunArtifacts(projectKey, name string, number int64) ([]sdk.WorkflowNodeRunArtifact, error) { +// WorkflowCachePush mocks base method. +func (m *MockInterface) WorkflowCachePush(projectKey, integrationName, ref string, tarContent io.Reader, size int) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunArtifacts", projectKey, name, number) - ret0, _ := ret[0].([]sdk.WorkflowNodeRunArtifact) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "WorkflowCachePush", projectKey, integrationName, ref, tarContent, size) + ret0, _ := ret[0].(error) + return ret0 } -// WorkflowRunArtifacts indicates an expected call of WorkflowRunArtifacts -func (mr *MockInterfaceMockRecorder) WorkflowRunArtifacts(projectKey, name, number interface{}) *gomock.Call { +// WorkflowCachePush indicates an expected call of WorkflowCachePush. +func (mr *MockInterfaceMockRecorder) WorkflowCachePush(projectKey, integrationName, ref, tarContent, size interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunArtifacts", reflect.TypeOf((*MockInterface)(nil).WorkflowRunArtifacts), projectKey, name, number) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowCachePush", reflect.TypeOf((*MockInterface)(nil).WorkflowCachePush), projectKey, integrationName, ref, tarContent, size) } -// WorkflowRunArtifactsLinks mocks base method -func (m *MockInterface) WorkflowRunArtifactsLinks(projectKey, name string, number int64) (sdk.CDNItemLinks, error) { +// WorkflowDelete mocks base method. +func (m *MockInterface) WorkflowDelete(projectKey, workflowName string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunArtifactsLinks", projectKey, name, number) - ret0, _ := ret[0].(sdk.CDNItemLinks) + ret := m.ctrl.Call(m, "WorkflowDelete", projectKey, workflowName) + ret0, _ := ret[0].(error) + return ret0 +} + +// WorkflowDelete indicates an expected call of WorkflowDelete. +func (mr *MockInterfaceMockRecorder) WorkflowDelete(projectKey, workflowName interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowDelete", reflect.TypeOf((*MockInterface)(nil).WorkflowDelete), projectKey, workflowName) +} + +// WorkflowExport mocks base method. +func (m *MockInterface) WorkflowExport(projectKey, name string, mods ...cdsclient.RequestModifier) ([]byte, error) { + m.ctrl.T.Helper() + varargs := []interface{}{projectKey, name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowExport", varargs...) + ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowRunArtifactsLinks indicates an expected call of WorkflowRunArtifactsLinks -func (mr *MockInterfaceMockRecorder) WorkflowRunArtifactsLinks(projectKey, name, number interface{}) *gomock.Call { +// WorkflowExport indicates an expected call of WorkflowExport. +func (mr *MockInterfaceMockRecorder) WorkflowExport(projectKey, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunArtifactsLinks", reflect.TypeOf((*MockInterface)(nil).WorkflowRunArtifactsLinks), projectKey, name, number) + varargs := append([]interface{}{projectKey, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowExport", reflect.TypeOf((*MockInterface)(nil).WorkflowExport), varargs...) } -// WorkflowRunResultsList mocks base method -func (m *MockInterface) WorkflowRunResultsList(ctx context.Context, projectKey, name string, number int64) ([]sdk.WorkflowRunResult, error) { +// WorkflowGet mocks base method. +func (m *MockInterface) WorkflowGet(projectKey, name string, opts ...cdsclient.RequestModifier) (*sdk.Workflow, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunResultsList", ctx, projectKey, name, number) - ret0, _ := ret[0].([]sdk.WorkflowRunResult) + varargs := []interface{}{projectKey, name} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowGet", varargs...) + ret0, _ := ret[0].(*sdk.Workflow) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowRunResultsList indicates an expected call of WorkflowRunResultsList -func (mr *MockInterfaceMockRecorder) WorkflowRunResultsList(ctx, projectKey, name, number interface{}) *gomock.Call { +// WorkflowGet indicates an expected call of WorkflowGet. +func (mr *MockInterfaceMockRecorder) WorkflowGet(projectKey, name interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{projectKey, name}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowGet", reflect.TypeOf((*MockInterface)(nil).WorkflowGet), varargs...) +} + +// WorkflowGroupAdd mocks base method. +func (m *MockInterface) WorkflowGroupAdd(projectKey, name, groupName string, permission int) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowGroupAdd", projectKey, name, groupName, permission) + ret0, _ := ret[0].(error) + return ret0 +} + +// WorkflowGroupAdd indicates an expected call of WorkflowGroupAdd. +func (mr *MockInterfaceMockRecorder) WorkflowGroupAdd(projectKey, name, groupName, permission interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunResultsList", reflect.TypeOf((*MockInterface)(nil).WorkflowRunResultsList), ctx, projectKey, name, number) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowGroupAdd", reflect.TypeOf((*MockInterface)(nil).WorkflowGroupAdd), projectKey, name, groupName, permission) } -// WorkflowRunFromHook mocks base method -func (m *MockInterface) WorkflowRunFromHook(projectKey, workflowName string, hook sdk.WorkflowNodeRunHookEvent) (*sdk.WorkflowRun, error) { +// WorkflowGroupDelete mocks base method. +func (m *MockInterface) WorkflowGroupDelete(projectKey, name, groupName string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunFromHook", projectKey, workflowName, hook) - ret0, _ := ret[0].(*sdk.WorkflowRun) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "WorkflowGroupDelete", projectKey, name, groupName) + ret0, _ := ret[0].(error) + return ret0 } -// WorkflowRunFromHook indicates an expected call of WorkflowRunFromHook -func (mr *MockInterfaceMockRecorder) WorkflowRunFromHook(projectKey, workflowName, hook interface{}) *gomock.Call { +// WorkflowGroupDelete indicates an expected call of WorkflowGroupDelete. +func (mr *MockInterfaceMockRecorder) WorkflowGroupDelete(projectKey, name, groupName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunFromHook", reflect.TypeOf((*MockInterface)(nil).WorkflowRunFromHook), projectKey, workflowName, hook) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowGroupDelete", reflect.TypeOf((*MockInterface)(nil).WorkflowGroupDelete), projectKey, name, groupName) } -// WorkflowRunFromManual mocks base method -func (m *MockInterface) WorkflowRunFromManual(projectKey, workflowName string, manual sdk.WorkflowNodeRunManual, number, fromNodeID int64) (*sdk.WorkflowRun, error) { +// WorkflowImport mocks base method. +func (m *MockInterface) WorkflowImport(projectKey string, content io.Reader, mods ...cdsclient.RequestModifier) ([]string, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunFromManual", projectKey, workflowName, manual, number, fromNodeID) - ret0, _ := ret[0].(*sdk.WorkflowRun) + varargs := []interface{}{projectKey, content} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowImport", varargs...) + ret0, _ := ret[0].([]string) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowRunFromManual indicates an expected call of WorkflowRunFromManual -func (mr *MockInterfaceMockRecorder) WorkflowRunFromManual(projectKey, workflowName, manual, number, fromNodeID interface{}) *gomock.Call { +// WorkflowImport indicates an expected call of WorkflowImport. +func (mr *MockInterfaceMockRecorder) WorkflowImport(projectKey, content interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunFromManual", reflect.TypeOf((*MockInterface)(nil).WorkflowRunFromManual), projectKey, workflowName, manual, number, fromNodeID) + varargs := append([]interface{}{projectKey, content}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowImport", reflect.TypeOf((*MockInterface)(nil).WorkflowImport), varargs...) } -// WorkflowRunNumberGet mocks base method -func (m *MockInterface) WorkflowRunNumberGet(projectKey, workflowName string) (*sdk.WorkflowRunNumber, error) { +// WorkflowLabelAdd mocks base method. +func (m *MockInterface) WorkflowLabelAdd(projectKey, name, labelName string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunNumberGet", projectKey, workflowName) - ret0, _ := ret[0].(*sdk.WorkflowRunNumber) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "WorkflowLabelAdd", projectKey, name, labelName) + ret0, _ := ret[0].(error) + return ret0 } -// WorkflowRunNumberGet indicates an expected call of WorkflowRunNumberGet -func (mr *MockInterfaceMockRecorder) WorkflowRunNumberGet(projectKey, workflowName interface{}) *gomock.Call { +// WorkflowLabelAdd indicates an expected call of WorkflowLabelAdd. +func (mr *MockInterfaceMockRecorder) WorkflowLabelAdd(projectKey, name, labelName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunNumberGet", reflect.TypeOf((*MockInterface)(nil).WorkflowRunNumberGet), projectKey, workflowName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowLabelAdd", reflect.TypeOf((*MockInterface)(nil).WorkflowLabelAdd), projectKey, name, labelName) } -// WorkflowRunNumberSet mocks base method -func (m *MockInterface) WorkflowRunNumberSet(projectKey, workflowName string, number int64) error { +// WorkflowLabelDelete mocks base method. +func (m *MockInterface) WorkflowLabelDelete(projectKey, name string, labelID int64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunNumberSet", projectKey, workflowName, number) + ret := m.ctrl.Call(m, "WorkflowLabelDelete", projectKey, name, labelID) ret0, _ := ret[0].(error) return ret0 } -// WorkflowRunNumberSet indicates an expected call of WorkflowRunNumberSet -func (mr *MockInterfaceMockRecorder) WorkflowRunNumberSet(projectKey, workflowName, number interface{}) *gomock.Call { +// WorkflowLabelDelete indicates an expected call of WorkflowLabelDelete. +func (mr *MockInterfaceMockRecorder) WorkflowLabelDelete(projectKey, name, labelID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunNumberSet", reflect.TypeOf((*MockInterface)(nil).WorkflowRunNumberSet), projectKey, workflowName, number) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowLabelDelete", reflect.TypeOf((*MockInterface)(nil).WorkflowLabelDelete), projectKey, name, labelID) } -// WorkflowStop mocks base method -func (m *MockInterface) WorkflowStop(projectKey, workflowName string, number int64) (*sdk.WorkflowRun, error) { +// WorkflowList mocks base method. +func (m *MockInterface) WorkflowList(projectKey string, opts ...cdsclient.RequestModifier) ([]sdk.Workflow, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowStop", projectKey, workflowName, number) - ret0, _ := ret[0].(*sdk.WorkflowRun) + varargs := []interface{}{projectKey} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowList", varargs...) + ret0, _ := ret[0].([]sdk.Workflow) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowStop indicates an expected call of WorkflowStop -func (mr *MockInterfaceMockRecorder) WorkflowStop(projectKey, workflowName, number interface{}) *gomock.Call { +// WorkflowList indicates an expected call of WorkflowList. +func (mr *MockInterfaceMockRecorder) WorkflowList(projectKey interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowStop", reflect.TypeOf((*MockInterface)(nil).WorkflowStop), projectKey, workflowName, number) + varargs := append([]interface{}{projectKey}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowList", reflect.TypeOf((*MockInterface)(nil).WorkflowList), varargs...) } -// WorkflowNodeStop mocks base method -func (m *MockInterface) WorkflowNodeStop(projectKey, workflowName string, number, fromNodeID int64) (*sdk.WorkflowNodeRun, error) { +// WorkflowLogDownload mocks base method. +func (m *MockInterface) WorkflowLogDownload(ctx context.Context, link sdk.CDNLogLink) ([]byte, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeStop", projectKey, workflowName, number, fromNodeID) - ret0, _ := ret[0].(*sdk.WorkflowNodeRun) + ret := m.ctrl.Call(m, "WorkflowLogDownload", ctx, link) + ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowNodeStop indicates an expected call of WorkflowNodeStop -func (mr *MockInterfaceMockRecorder) WorkflowNodeStop(projectKey, workflowName, number, fromNodeID interface{}) *gomock.Call { +// WorkflowLogDownload indicates an expected call of WorkflowLogDownload. +func (mr *MockInterfaceMockRecorder) WorkflowLogDownload(ctx, link interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeStop", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeStop), projectKey, workflowName, number, fromNodeID) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowLogDownload", reflect.TypeOf((*MockInterface)(nil).WorkflowLogDownload), ctx, link) } -// WorkflowNodeRun mocks base method +// WorkflowNodeRun mocks base method. func (m *MockInterface) WorkflowNodeRun(projectKey, name string, number, nodeRunID int64) (*sdk.WorkflowNodeRun, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowNodeRun", projectKey, name, number, nodeRunID) @@ -8348,13 +8389,13 @@ func (m *MockInterface) WorkflowNodeRun(projectKey, name string, number, nodeRun return ret0, ret1 } -// WorkflowNodeRun indicates an expected call of WorkflowNodeRun +// WorkflowNodeRun indicates an expected call of WorkflowNodeRun. func (mr *MockInterfaceMockRecorder) WorkflowNodeRun(projectKey, name, number, nodeRunID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRun", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeRun), projectKey, name, number, nodeRunID) } -// WorkflowNodeRunArtifactDownload mocks base method +// WorkflowNodeRunArtifactDownload mocks base method. func (m *MockInterface) WorkflowNodeRunArtifactDownload(projectKey, name string, a sdk.WorkflowNodeRunArtifact, w io.Writer) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowNodeRunArtifactDownload", projectKey, name, a, w) @@ -8362,58 +8403,13 @@ func (m *MockInterface) WorkflowNodeRunArtifactDownload(projectKey, name string, return ret0 } -// WorkflowNodeRunArtifactDownload indicates an expected call of WorkflowNodeRunArtifactDownload +// WorkflowNodeRunArtifactDownload indicates an expected call of WorkflowNodeRunArtifactDownload. func (mr *MockInterfaceMockRecorder) WorkflowNodeRunArtifactDownload(projectKey, name, a, w interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunArtifactDownload", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeRunArtifactDownload), projectKey, name, a, w) } -// WorkflowNodeRunJobStepLinks mocks base method -func (m *MockInterface) WorkflowNodeRunJobStepLinks(ctx context.Context, projectKey, workflowName string, nodeRunID, job int64) (*sdk.CDNLogLinks, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeRunJobStepLinks", ctx, projectKey, workflowName, nodeRunID, job) - ret0, _ := ret[0].(*sdk.CDNLogLinks) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkflowNodeRunJobStepLinks indicates an expected call of WorkflowNodeRunJobStepLinks -func (mr *MockInterfaceMockRecorder) WorkflowNodeRunJobStepLinks(ctx, projectKey, workflowName, nodeRunID, job interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobStepLinks", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeRunJobStepLinks), ctx, projectKey, workflowName, nodeRunID, job) -} - -// WorkflowNodeRunJobStepLink mocks base method -func (m *MockInterface) WorkflowNodeRunJobStepLink(ctx context.Context, projectKey, workflowName string, nodeRunID, job, step int64) (*sdk.CDNLogLink, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeRunJobStepLink", ctx, projectKey, workflowName, nodeRunID, job, step) - ret0, _ := ret[0].(*sdk.CDNLogLink) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkflowNodeRunJobStepLink indicates an expected call of WorkflowNodeRunJobStepLink -func (mr *MockInterfaceMockRecorder) WorkflowNodeRunJobStepLink(ctx, projectKey, workflowName, nodeRunID, job, step interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobStepLink", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeRunJobStepLink), ctx, projectKey, workflowName, nodeRunID, job, step) -} - -// WorkflowNodeRunJobStepLog mocks base method -func (m *MockInterface) WorkflowNodeRunJobStepLog(ctx context.Context, projectKey, workflowName string, nodeRunID, job, step int64) (*sdk.BuildState, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeRunJobStepLog", ctx, projectKey, workflowName, nodeRunID, job, step) - ret0, _ := ret[0].(*sdk.BuildState) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkflowNodeRunJobStepLog indicates an expected call of WorkflowNodeRunJobStepLog -func (mr *MockInterfaceMockRecorder) WorkflowNodeRunJobStepLog(ctx, projectKey, workflowName, nodeRunID, job, step interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobStepLog", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeRunJobStepLog), ctx, projectKey, workflowName, nodeRunID, job, step) -} - -// WorkflowNodeRunJobServiceLink mocks base method +// WorkflowNodeRunJobServiceLink mocks base method. func (m *MockInterface) WorkflowNodeRunJobServiceLink(ctx context.Context, projectKey, workflowName string, nodeRunID, job int64, serviceName string) (*sdk.CDNLogLink, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowNodeRunJobServiceLink", ctx, projectKey, workflowName, nodeRunID, job, serviceName) @@ -8422,13 +8418,13 @@ func (m *MockInterface) WorkflowNodeRunJobServiceLink(ctx context.Context, proje return ret0, ret1 } -// WorkflowNodeRunJobServiceLink indicates an expected call of WorkflowNodeRunJobServiceLink +// WorkflowNodeRunJobServiceLink indicates an expected call of WorkflowNodeRunJobServiceLink. func (mr *MockInterfaceMockRecorder) WorkflowNodeRunJobServiceLink(ctx, projectKey, workflowName, nodeRunID, job, serviceName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobServiceLink", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeRunJobServiceLink), ctx, projectKey, workflowName, nodeRunID, job, serviceName) } -// WorkflowNodeRunJobServiceLog mocks base method +// WorkflowNodeRunJobServiceLog mocks base method. func (m *MockInterface) WorkflowNodeRunJobServiceLog(ctx context.Context, projectKey, workflowName string, nodeRunID, job int64, serviceName string) (*sdk.ServiceLog, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowNodeRunJobServiceLog", ctx, projectKey, workflowName, nodeRunID, job, serviceName) @@ -8437,437 +8433,442 @@ func (m *MockInterface) WorkflowNodeRunJobServiceLog(ctx context.Context, projec return ret0, ret1 } -// WorkflowNodeRunJobServiceLog indicates an expected call of WorkflowNodeRunJobServiceLog +// WorkflowNodeRunJobServiceLog indicates an expected call of WorkflowNodeRunJobServiceLog. func (mr *MockInterfaceMockRecorder) WorkflowNodeRunJobServiceLog(ctx, projectKey, workflowName, nodeRunID, job, serviceName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobServiceLog", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeRunJobServiceLog), ctx, projectKey, workflowName, nodeRunID, job, serviceName) } -// WorkflowAccess mocks base method -func (m *MockInterface) WorkflowAccess(ctx context.Context, projectKey string, workflowID int64, sessionID string, itemType sdk.CDNItemType) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowAccess", ctx, projectKey, workflowID, sessionID, itemType) - ret0, _ := ret[0].(error) - return ret0 -} - -// WorkflowAccess indicates an expected call of WorkflowAccess -func (mr *MockInterfaceMockRecorder) WorkflowAccess(ctx, projectKey, workflowID, sessionID, itemType interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAccess", reflect.TypeOf((*MockInterface)(nil).WorkflowAccess), ctx, projectKey, workflowID, sessionID, itemType) -} - -// WorkflowLogDownload mocks base method -func (m *MockInterface) WorkflowLogDownload(ctx context.Context, link sdk.CDNLogLink) ([]byte, error) { +// WorkflowNodeRunJobStepLink mocks base method. +func (m *MockInterface) WorkflowNodeRunJobStepLink(ctx context.Context, projectKey, workflowName string, nodeRunID, job, step int64) (*sdk.CDNLogLink, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowLogDownload", ctx, link) - ret0, _ := ret[0].([]byte) + ret := m.ctrl.Call(m, "WorkflowNodeRunJobStepLink", ctx, projectKey, workflowName, nodeRunID, job, step) + ret0, _ := ret[0].(*sdk.CDNLogLink) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowLogDownload indicates an expected call of WorkflowLogDownload -func (mr *MockInterfaceMockRecorder) WorkflowLogDownload(ctx, link interface{}) *gomock.Call { +// WorkflowNodeRunJobStepLink indicates an expected call of WorkflowNodeRunJobStepLink. +func (mr *MockInterfaceMockRecorder) WorkflowNodeRunJobStepLink(ctx, projectKey, workflowName, nodeRunID, job, step interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowLogDownload", reflect.TypeOf((*MockInterface)(nil).WorkflowLogDownload), ctx, link) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobStepLink", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeRunJobStepLink), ctx, projectKey, workflowName, nodeRunID, job, step) } -// WorkflowNodeRunRelease mocks base method -func (m *MockInterface) WorkflowNodeRunRelease(projectKey, workflowName string, runNumber, nodeRunID int64, release sdk.WorkflowNodeRunRelease) error { +// WorkflowNodeRunJobStepLinks mocks base method. +func (m *MockInterface) WorkflowNodeRunJobStepLinks(ctx context.Context, projectKey, workflowName string, nodeRunID, job int64) (*sdk.CDNLogLinks, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowNodeRunRelease", projectKey, workflowName, runNumber, nodeRunID, release) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "WorkflowNodeRunJobStepLinks", ctx, projectKey, workflowName, nodeRunID, job) + ret0, _ := ret[0].(*sdk.CDNLogLinks) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// WorkflowNodeRunRelease indicates an expected call of WorkflowNodeRunRelease -func (mr *MockInterfaceMockRecorder) WorkflowNodeRunRelease(projectKey, workflowName, runNumber, nodeRunID, release interface{}) *gomock.Call { +// WorkflowNodeRunJobStepLinks indicates an expected call of WorkflowNodeRunJobStepLinks. +func (mr *MockInterfaceMockRecorder) WorkflowNodeRunJobStepLinks(ctx, projectKey, workflowName, nodeRunID, job interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunRelease", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeRunRelease), projectKey, workflowName, runNumber, nodeRunID, release) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobStepLinks", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeRunJobStepLinks), ctx, projectKey, workflowName, nodeRunID, job) } -// WorkflowAllHooksList mocks base method -func (m *MockInterface) WorkflowAllHooksList() ([]sdk.NodeHook, error) { +// WorkflowNodeRunJobStepLog mocks base method. +func (m *MockInterface) WorkflowNodeRunJobStepLog(ctx context.Context, projectKey, workflowName string, nodeRunID, job, step int64) (*sdk.BuildState, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowAllHooksList") - ret0, _ := ret[0].([]sdk.NodeHook) + ret := m.ctrl.Call(m, "WorkflowNodeRunJobStepLog", ctx, projectKey, workflowName, nodeRunID, job, step) + ret0, _ := ret[0].(*sdk.BuildState) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowAllHooksList indicates an expected call of WorkflowAllHooksList -func (mr *MockInterfaceMockRecorder) WorkflowAllHooksList() *gomock.Call { +// WorkflowNodeRunJobStepLog indicates an expected call of WorkflowNodeRunJobStepLog. +func (mr *MockInterfaceMockRecorder) WorkflowNodeRunJobStepLog(ctx, projectKey, workflowName, nodeRunID, job, step interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowAllHooksList", reflect.TypeOf((*MockInterface)(nil).WorkflowAllHooksList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunJobStepLog", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeRunJobStepLog), ctx, projectKey, workflowName, nodeRunID, job, step) } -// WorkflowCachePush mocks base method -func (m *MockInterface) WorkflowCachePush(projectKey, integrationName, ref string, tarContent io.Reader, size int) error { +// WorkflowNodeRunRelease mocks base method. +func (m *MockInterface) WorkflowNodeRunRelease(projectKey, workflowName string, runNumber, nodeRunID int64, release sdk.WorkflowNodeRunRelease) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowCachePush", projectKey, integrationName, ref, tarContent, size) + ret := m.ctrl.Call(m, "WorkflowNodeRunRelease", projectKey, workflowName, runNumber, nodeRunID, release) ret0, _ := ret[0].(error) return ret0 } -// WorkflowCachePush indicates an expected call of WorkflowCachePush -func (mr *MockInterfaceMockRecorder) WorkflowCachePush(projectKey, integrationName, ref, tarContent, size interface{}) *gomock.Call { +// WorkflowNodeRunRelease indicates an expected call of WorkflowNodeRunRelease. +func (mr *MockInterfaceMockRecorder) WorkflowNodeRunRelease(projectKey, workflowName, runNumber, nodeRunID, release interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowCachePush", reflect.TypeOf((*MockInterface)(nil).WorkflowCachePush), projectKey, integrationName, ref, tarContent, size) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunRelease", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeRunRelease), projectKey, workflowName, runNumber, nodeRunID, release) } -// WorkflowCachePull mocks base method -func (m *MockInterface) WorkflowCachePull(projectKey, integrationName, ref string) (io.Reader, error) { +// WorkflowNodeStop mocks base method. +func (m *MockInterface) WorkflowNodeStop(projectKey, workflowName string, number, fromNodeID int64) (*sdk.WorkflowNodeRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowCachePull", projectKey, integrationName, ref) - ret0, _ := ret[0].(io.Reader) + ret := m.ctrl.Call(m, "WorkflowNodeStop", projectKey, workflowName, number, fromNodeID) + ret0, _ := ret[0].(*sdk.WorkflowNodeRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowCachePull indicates an expected call of WorkflowCachePull -func (mr *MockInterfaceMockRecorder) WorkflowCachePull(projectKey, integrationName, ref interface{}) *gomock.Call { +// WorkflowNodeStop indicates an expected call of WorkflowNodeStop. +func (mr *MockInterfaceMockRecorder) WorkflowNodeStop(projectKey, workflowName, number, fromNodeID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowCachePull", reflect.TypeOf((*MockInterface)(nil).WorkflowCachePull), projectKey, integrationName, ref) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeStop", reflect.TypeOf((*MockInterface)(nil).WorkflowNodeStop), projectKey, workflowName, number, fromNodeID) } -// WorkflowTransformAsCode mocks base method -func (m *MockInterface) WorkflowTransformAsCode(projectKey, workflowName, branch, message string) (*sdk.Operation, error) { +// WorkflowPull mocks base method. +func (m *MockInterface) WorkflowPull(projectKey, name string, mods ...cdsclient.RequestModifier) (*tar.Reader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowTransformAsCode", projectKey, workflowName, branch, message) - ret0, _ := ret[0].(*sdk.Operation) + varargs := []interface{}{projectKey, name} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowPull", varargs...) + ret0, _ := ret[0].(*tar.Reader) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowTransformAsCode indicates an expected call of WorkflowTransformAsCode -func (mr *MockInterfaceMockRecorder) WorkflowTransformAsCode(projectKey, workflowName, branch, message interface{}) *gomock.Call { +// WorkflowPull indicates an expected call of WorkflowPull. +func (mr *MockInterfaceMockRecorder) WorkflowPull(projectKey, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowTransformAsCode", reflect.TypeOf((*MockInterface)(nil).WorkflowTransformAsCode), projectKey, workflowName, branch, message) + varargs := append([]interface{}{projectKey, name}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowPull", reflect.TypeOf((*MockInterface)(nil).WorkflowPull), varargs...) } -// MonStatus mocks base method -func (m *MockInterface) MonStatus() (*sdk.MonitoringStatus, error) { +// WorkflowPush mocks base method. +func (m *MockInterface) WorkflowPush(projectKey string, tarContent io.Reader, mods ...cdsclient.RequestModifier) ([]string, *tar.Reader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MonStatus") - ret0, _ := ret[0].(*sdk.MonitoringStatus) - ret1, _ := ret[1].(error) - return ret0, ret1 + varargs := []interface{}{projectKey, tarContent} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowPush", varargs...) + ret0, _ := ret[0].([]string) + ret1, _ := ret[1].(*tar.Reader) + ret2, _ := ret[2].(error) + return ret0, ret1, ret2 } -// MonStatus indicates an expected call of MonStatus -func (mr *MockInterfaceMockRecorder) MonStatus() *gomock.Call { +// WorkflowPush indicates an expected call of WorkflowPush. +func (mr *MockInterfaceMockRecorder) WorkflowPush(projectKey, tarContent interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonStatus", reflect.TypeOf((*MockInterface)(nil).MonStatus)) + varargs := append([]interface{}{projectKey, tarContent}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowPush", reflect.TypeOf((*MockInterface)(nil).WorkflowPush), varargs...) } -// MonVersion mocks base method -func (m *MockInterface) MonVersion() (*sdk.Version, error) { +// WorkflowRunArtifacts mocks base method. +func (m *MockInterface) WorkflowRunArtifacts(projectKey, name string, number int64) ([]sdk.WorkflowNodeRunArtifact, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MonVersion") - ret0, _ := ret[0].(*sdk.Version) + ret := m.ctrl.Call(m, "WorkflowRunArtifacts", projectKey, name, number) + ret0, _ := ret[0].([]sdk.WorkflowNodeRunArtifact) ret1, _ := ret[1].(error) return ret0, ret1 } -// MonVersion indicates an expected call of MonVersion -func (mr *MockInterfaceMockRecorder) MonVersion() *gomock.Call { +// WorkflowRunArtifacts indicates an expected call of WorkflowRunArtifacts. +func (mr *MockInterfaceMockRecorder) WorkflowRunArtifacts(projectKey, name, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonVersion", reflect.TypeOf((*MockInterface)(nil).MonVersion)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunArtifacts", reflect.TypeOf((*MockInterface)(nil).WorkflowRunArtifacts), projectKey, name, number) } -// MonDBMigrate mocks base method -func (m *MockInterface) MonDBMigrate() ([]sdk.MonDBMigrate, error) { +// WorkflowRunArtifactsLinks mocks base method. +func (m *MockInterface) WorkflowRunArtifactsLinks(projectKey, name string, number int64) (sdk.CDNItemLinks, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MonDBMigrate") - ret0, _ := ret[0].([]sdk.MonDBMigrate) + ret := m.ctrl.Call(m, "WorkflowRunArtifactsLinks", projectKey, name, number) + ret0, _ := ret[0].(sdk.CDNItemLinks) ret1, _ := ret[1].(error) return ret0, ret1 } -// MonDBMigrate indicates an expected call of MonDBMigrate -func (mr *MockInterfaceMockRecorder) MonDBMigrate() *gomock.Call { +// WorkflowRunArtifactsLinks indicates an expected call of WorkflowRunArtifactsLinks. +func (mr *MockInterfaceMockRecorder) WorkflowRunArtifactsLinks(projectKey, name, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonDBMigrate", reflect.TypeOf((*MockInterface)(nil).MonDBMigrate)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunArtifactsLinks", reflect.TypeOf((*MockInterface)(nil).WorkflowRunArtifactsLinks), projectKey, name, number) } -// MonErrorsGet mocks base method -func (m *MockInterface) MonErrorsGet(requestID string) ([]sdk.Error, error) { +// WorkflowRunFromHook mocks base method. +func (m *MockInterface) WorkflowRunFromHook(projectKey, workflowName string, hook sdk.WorkflowNodeRunHookEvent) (*sdk.WorkflowRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MonErrorsGet", requestID) - ret0, _ := ret[0].([]sdk.Error) + ret := m.ctrl.Call(m, "WorkflowRunFromHook", projectKey, workflowName, hook) + ret0, _ := ret[0].(*sdk.WorkflowRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// MonErrorsGet indicates an expected call of MonErrorsGet -func (mr *MockInterfaceMockRecorder) MonErrorsGet(requestID interface{}) *gomock.Call { +// WorkflowRunFromHook indicates an expected call of WorkflowRunFromHook. +func (mr *MockInterfaceMockRecorder) WorkflowRunFromHook(projectKey, workflowName, hook interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MonErrorsGet", reflect.TypeOf((*MockInterface)(nil).MonErrorsGet), requestID) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunFromHook", reflect.TypeOf((*MockInterface)(nil).WorkflowRunFromHook), projectKey, workflowName, hook) } -// PollVCSEvents mocks base method -func (m *MockInterface) PollVCSEvents(uuid string, workflowID int64, vcsServer string, timestamp int64) (sdk.RepositoryEvents, time.Duration, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PollVCSEvents", uuid, workflowID, vcsServer, timestamp) - ret0, _ := ret[0].(sdk.RepositoryEvents) - ret1, _ := ret[1].(time.Duration) - ret2, _ := ret[2].(error) - return ret0, ret1, ret2 +// WorkflowRunFromManual mocks base method. +func (m *MockInterface) WorkflowRunFromManual(projectKey, workflowName string, manual sdk.WorkflowNodeRunManual, number, fromNodeID int64) (*sdk.WorkflowRun, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowRunFromManual", projectKey, workflowName, manual, number, fromNodeID) + ret0, _ := ret[0].(*sdk.WorkflowRun) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// PollVCSEvents indicates an expected call of PollVCSEvents -func (mr *MockInterfaceMockRecorder) PollVCSEvents(uuid, workflowID, vcsServer, timestamp interface{}) *gomock.Call { +// WorkflowRunFromManual indicates an expected call of WorkflowRunFromManual. +func (mr *MockInterfaceMockRecorder) WorkflowRunFromManual(projectKey, workflowName, manual, number, fromNodeID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PollVCSEvents", reflect.TypeOf((*MockInterface)(nil).PollVCSEvents), uuid, workflowID, vcsServer, timestamp) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunFromManual", reflect.TypeOf((*MockInterface)(nil).WorkflowRunFromManual), projectKey, workflowName, manual, number, fromNodeID) } -// VCSConfiguration mocks base method -func (m *MockInterface) VCSConfiguration() (map[string]sdk.VCSConfiguration, error) { +// WorkflowRunGet mocks base method. +func (m *MockInterface) WorkflowRunGet(projectKey, workflowName string, number int64) (*sdk.WorkflowRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "VCSConfiguration") - ret0, _ := ret[0].(map[string]sdk.VCSConfiguration) + ret := m.ctrl.Call(m, "WorkflowRunGet", projectKey, workflowName, number) + ret0, _ := ret[0].(*sdk.WorkflowRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// VCSConfiguration indicates an expected call of VCSConfiguration -func (mr *MockInterfaceMockRecorder) VCSConfiguration() *gomock.Call { +// WorkflowRunGet indicates an expected call of WorkflowRunGet. +func (mr *MockInterfaceMockRecorder) WorkflowRunGet(projectKey, workflowName, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VCSConfiguration", reflect.TypeOf((*MockInterface)(nil).VCSConfiguration)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunGet", reflect.TypeOf((*MockInterface)(nil).WorkflowRunGet), projectKey, workflowName, number) } -// Version mocks base method -func (m *MockInterface) Version() (*sdk.Version, error) { +// WorkflowRunList mocks base method. +func (m *MockInterface) WorkflowRunList(projectKey, workflowName string, offset, limit int64) ([]sdk.WorkflowRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Version") - ret0, _ := ret[0].(*sdk.Version) + ret := m.ctrl.Call(m, "WorkflowRunList", projectKey, workflowName, offset, limit) + ret0, _ := ret[0].([]sdk.WorkflowRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// Version indicates an expected call of Version -func (mr *MockInterfaceMockRecorder) Version() *gomock.Call { +// WorkflowRunList indicates an expected call of WorkflowRunList. +func (mr *MockInterfaceMockRecorder) WorkflowRunList(projectKey, workflowName, offset, limit interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockInterface)(nil).Version)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunList", reflect.TypeOf((*MockInterface)(nil).WorkflowRunList), projectKey, workflowName, offset, limit) } -// TemplateGet mocks base method -func (m *MockInterface) TemplateGet(groupName, templateSlug string) (*sdk.WorkflowTemplate, error) { +// WorkflowRunNumberGet mocks base method. +func (m *MockInterface) WorkflowRunNumberGet(projectKey, workflowName string) (*sdk.WorkflowRunNumber, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateGet", groupName, templateSlug) - ret0, _ := ret[0].(*sdk.WorkflowTemplate) + ret := m.ctrl.Call(m, "WorkflowRunNumberGet", projectKey, workflowName) + ret0, _ := ret[0].(*sdk.WorkflowRunNumber) ret1, _ := ret[1].(error) return ret0, ret1 } -// TemplateGet indicates an expected call of TemplateGet -func (mr *MockInterfaceMockRecorder) TemplateGet(groupName, templateSlug interface{}) *gomock.Call { +// WorkflowRunNumberGet indicates an expected call of WorkflowRunNumberGet. +func (mr *MockInterfaceMockRecorder) WorkflowRunNumberGet(projectKey, workflowName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGet", reflect.TypeOf((*MockInterface)(nil).TemplateGet), groupName, templateSlug) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunNumberGet", reflect.TypeOf((*MockInterface)(nil).WorkflowRunNumberGet), projectKey, workflowName) } -// TemplateGetAll mocks base method -func (m *MockInterface) TemplateGetAll() ([]sdk.WorkflowTemplate, error) { +// WorkflowRunNumberSet mocks base method. +func (m *MockInterface) WorkflowRunNumberSet(projectKey, workflowName string, number int64) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateGetAll") - ret0, _ := ret[0].([]sdk.WorkflowTemplate) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "WorkflowRunNumberSet", projectKey, workflowName, number) + ret0, _ := ret[0].(error) + return ret0 } -// TemplateGetAll indicates an expected call of TemplateGetAll -func (mr *MockInterfaceMockRecorder) TemplateGetAll() *gomock.Call { +// WorkflowRunNumberSet indicates an expected call of WorkflowRunNumberSet. +func (mr *MockInterfaceMockRecorder) WorkflowRunNumberSet(projectKey, workflowName, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGetAll", reflect.TypeOf((*MockInterface)(nil).TemplateGetAll)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunNumberSet", reflect.TypeOf((*MockInterface)(nil).WorkflowRunNumberSet), projectKey, workflowName, number) } -// TemplateApply mocks base method -func (m *MockInterface) TemplateApply(groupName, templateSlug string, req sdk.WorkflowTemplateRequest) (*tar.Reader, error) { +// WorkflowRunResultsList mocks base method. +func (m *MockInterface) WorkflowRunResultsList(ctx context.Context, projectKey, name string, number int64) ([]sdk.WorkflowRunResult, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateApply", groupName, templateSlug, req) - ret0, _ := ret[0].(*tar.Reader) + ret := m.ctrl.Call(m, "WorkflowRunResultsList", ctx, projectKey, name, number) + ret0, _ := ret[0].([]sdk.WorkflowRunResult) ret1, _ := ret[1].(error) return ret0, ret1 } -// TemplateApply indicates an expected call of TemplateApply -func (mr *MockInterfaceMockRecorder) TemplateApply(groupName, templateSlug, req interface{}) *gomock.Call { +// WorkflowRunResultsList indicates an expected call of WorkflowRunResultsList. +func (mr *MockInterfaceMockRecorder) WorkflowRunResultsList(ctx, projectKey, name, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateApply", reflect.TypeOf((*MockInterface)(nil).TemplateApply), groupName, templateSlug, req) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunResultsList", reflect.TypeOf((*MockInterface)(nil).WorkflowRunResultsList), ctx, projectKey, name, number) } -// TemplateBulk mocks base method -func (m *MockInterface) TemplateBulk(groupName, templateSlug string, req sdk.WorkflowTemplateBulk) (*sdk.WorkflowTemplateBulk, error) { +// WorkflowRunResync mocks base method. +func (m *MockInterface) WorkflowRunResync(projectKey, workflowName string, number int64) (*sdk.WorkflowRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateBulk", groupName, templateSlug, req) - ret0, _ := ret[0].(*sdk.WorkflowTemplateBulk) + ret := m.ctrl.Call(m, "WorkflowRunResync", projectKey, workflowName, number) + ret0, _ := ret[0].(*sdk.WorkflowRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// TemplateBulk indicates an expected call of TemplateBulk -func (mr *MockInterfaceMockRecorder) TemplateBulk(groupName, templateSlug, req interface{}) *gomock.Call { +// WorkflowRunResync indicates an expected call of WorkflowRunResync. +func (mr *MockInterfaceMockRecorder) WorkflowRunResync(projectKey, workflowName, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateBulk", reflect.TypeOf((*MockInterface)(nil).TemplateBulk), groupName, templateSlug, req) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunResync", reflect.TypeOf((*MockInterface)(nil).WorkflowRunResync), projectKey, workflowName, number) } -// TemplateGetBulk mocks base method -func (m *MockInterface) TemplateGetBulk(groupName, templateSlug string, id int64) (*sdk.WorkflowTemplateBulk, error) { +// WorkflowRunSearch mocks base method. +func (m *MockInterface) WorkflowRunSearch(projectKey string, offset, limit int64, filter ...cdsclient.Filter) ([]sdk.WorkflowRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateGetBulk", groupName, templateSlug, id) - ret0, _ := ret[0].(*sdk.WorkflowTemplateBulk) + varargs := []interface{}{projectKey, offset, limit} + for _, a := range filter { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowRunSearch", varargs...) + ret0, _ := ret[0].([]sdk.WorkflowRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// TemplateGetBulk indicates an expected call of TemplateGetBulk -func (mr *MockInterfaceMockRecorder) TemplateGetBulk(groupName, templateSlug, id interface{}) *gomock.Call { +// WorkflowRunSearch indicates an expected call of WorkflowRunSearch. +func (mr *MockInterfaceMockRecorder) WorkflowRunSearch(projectKey, offset, limit interface{}, filter ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGetBulk", reflect.TypeOf((*MockInterface)(nil).TemplateGetBulk), groupName, templateSlug, id) + varargs := append([]interface{}{projectKey, offset, limit}, filter...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunSearch", reflect.TypeOf((*MockInterface)(nil).WorkflowRunSearch), varargs...) } -// TemplatePull mocks base method -func (m *MockInterface) TemplatePull(groupName, templateSlug string) (*tar.Reader, error) { +// WorkflowRunsAndNodesIDs mocks base method. +func (m *MockInterface) WorkflowRunsAndNodesIDs(projectkey string) ([]sdk.WorkflowNodeRunIdentifiers, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplatePull", groupName, templateSlug) - ret0, _ := ret[0].(*tar.Reader) + ret := m.ctrl.Call(m, "WorkflowRunsAndNodesIDs", projectkey) + ret0, _ := ret[0].([]sdk.WorkflowNodeRunIdentifiers) ret1, _ := ret[1].(error) return ret0, ret1 } -// TemplatePull indicates an expected call of TemplatePull -func (mr *MockInterfaceMockRecorder) TemplatePull(groupName, templateSlug interface{}) *gomock.Call { +// WorkflowRunsAndNodesIDs indicates an expected call of WorkflowRunsAndNodesIDs. +func (mr *MockInterfaceMockRecorder) WorkflowRunsAndNodesIDs(projectkey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplatePull", reflect.TypeOf((*MockInterface)(nil).TemplatePull), groupName, templateSlug) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunsAndNodesIDs", reflect.TypeOf((*MockInterface)(nil).WorkflowRunsAndNodesIDs), projectkey) } -// TemplatePush mocks base method -func (m *MockInterface) TemplatePush(tarContent io.Reader) ([]string, *tar.Reader, error) { +// WorkflowRunsDeleteByBranch mocks base method. +func (m *MockInterface) WorkflowRunsDeleteByBranch(projectKey, workflowName, branch string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplatePush", tarContent) - ret0, _ := ret[0].([]string) - ret1, _ := ret[1].(*tar.Reader) - ret2, _ := ret[2].(error) - return ret0, ret1, ret2 + ret := m.ctrl.Call(m, "WorkflowRunsDeleteByBranch", projectKey, workflowName, branch) + ret0, _ := ret[0].(error) + return ret0 } -// TemplatePush indicates an expected call of TemplatePush -func (mr *MockInterfaceMockRecorder) TemplatePush(tarContent interface{}) *gomock.Call { +// WorkflowRunsDeleteByBranch indicates an expected call of WorkflowRunsDeleteByBranch. +func (mr *MockInterfaceMockRecorder) WorkflowRunsDeleteByBranch(projectKey, workflowName, branch interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplatePush", reflect.TypeOf((*MockInterface)(nil).TemplatePush), tarContent) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunsDeleteByBranch", reflect.TypeOf((*MockInterface)(nil).WorkflowRunsDeleteByBranch), projectKey, workflowName, branch) } -// TemplateDelete mocks base method -func (m *MockInterface) TemplateDelete(groupName, templateSlug string) error { +// WorkflowSearch mocks base method. +func (m *MockInterface) WorkflowSearch(opts ...cdsclient.RequestModifier) ([]sdk.Workflow, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateDelete", groupName, templateSlug) - ret0, _ := ret[0].(error) - return ret0 + varargs := []interface{}{} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WorkflowSearch", varargs...) + ret0, _ := ret[0].([]sdk.Workflow) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// TemplateDelete indicates an expected call of TemplateDelete -func (mr *MockInterfaceMockRecorder) TemplateDelete(groupName, templateSlug interface{}) *gomock.Call { +// WorkflowSearch indicates an expected call of WorkflowSearch. +func (mr *MockInterfaceMockRecorder) WorkflowSearch(opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateDelete", reflect.TypeOf((*MockInterface)(nil).TemplateDelete), groupName, templateSlug) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowSearch", reflect.TypeOf((*MockInterface)(nil).WorkflowSearch), opts...) } -// TemplateGetInstances mocks base method -func (m *MockInterface) TemplateGetInstances(groupName, templateSlug string) ([]sdk.WorkflowTemplateInstance, error) { +// WorkflowStop mocks base method. +func (m *MockInterface) WorkflowStop(projectKey, workflowName string, number int64) (*sdk.WorkflowRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateGetInstances", groupName, templateSlug) - ret0, _ := ret[0].([]sdk.WorkflowTemplateInstance) + ret := m.ctrl.Call(m, "WorkflowStop", projectKey, workflowName, number) + ret0, _ := ret[0].(*sdk.WorkflowRun) ret1, _ := ret[1].(error) return ret0, ret1 } -// TemplateGetInstances indicates an expected call of TemplateGetInstances -func (mr *MockInterfaceMockRecorder) TemplateGetInstances(groupName, templateSlug interface{}) *gomock.Call { +// WorkflowStop indicates an expected call of WorkflowStop. +func (mr *MockInterfaceMockRecorder) WorkflowStop(projectKey, workflowName, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateGetInstances", reflect.TypeOf((*MockInterface)(nil).TemplateGetInstances), groupName, templateSlug) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowStop", reflect.TypeOf((*MockInterface)(nil).WorkflowStop), projectKey, workflowName, number) } -// TemplateDeleteInstance mocks base method -func (m *MockInterface) TemplateDeleteInstance(groupName, templateSlug string, id int64) error { +// WorkflowTransformAsCode mocks base method. +func (m *MockInterface) WorkflowTransformAsCode(projectKey, workflowName, branch, message string) (*sdk.Operation, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TemplateDeleteInstance", groupName, templateSlug, id) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "WorkflowTransformAsCode", projectKey, workflowName, branch, message) + ret0, _ := ret[0].(*sdk.Operation) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// TemplateDeleteInstance indicates an expected call of TemplateDeleteInstance -func (mr *MockInterfaceMockRecorder) TemplateDeleteInstance(groupName, templateSlug, id interface{}) *gomock.Call { +// WorkflowTransformAsCode indicates an expected call of WorkflowTransformAsCode. +func (mr *MockInterfaceMockRecorder) WorkflowTransformAsCode(projectKey, workflowName, branch, message interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TemplateDeleteInstance", reflect.TypeOf((*MockInterface)(nil).TemplateDeleteInstance), groupName, templateSlug, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowTransformAsCode", reflect.TypeOf((*MockInterface)(nil).WorkflowTransformAsCode), projectKey, workflowName, branch, message) } -// RequestWebsocket mocks base method -func (m *MockInterface) RequestWebsocket(ctx context.Context, goRoutines *sdk.GoRoutines, path string, msgToSend <-chan json.RawMessage, msgReceived chan<- json.RawMessage, errorReceived chan<- error) error { +// WorkflowUpdate mocks base method. +func (m *MockInterface) WorkflowUpdate(projectKey, name string, wf *sdk.Workflow) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RequestWebsocket", ctx, goRoutines, path, msgToSend, msgReceived, errorReceived) + ret := m.ctrl.Call(m, "WorkflowUpdate", projectKey, name, wf) ret0, _ := ret[0].(error) return ret0 } -// RequestWebsocket indicates an expected call of RequestWebsocket -func (mr *MockInterfaceMockRecorder) RequestWebsocket(ctx, goRoutines, path, msgToSend, msgReceived, errorReceived interface{}) *gomock.Call { +// WorkflowUpdate indicates an expected call of WorkflowUpdate. +func (mr *MockInterfaceMockRecorder) WorkflowUpdate(projectKey, name, wf interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestWebsocket", reflect.TypeOf((*MockInterface)(nil).RequestWebsocket), ctx, goRoutines, path, msgToSend, msgReceived, errorReceived) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowUpdate", reflect.TypeOf((*MockInterface)(nil).WorkflowUpdate), projectKey, name, wf) } -// MockWorkerInterface is a mock of WorkerInterface interface +// MockWorkerInterface is a mock of WorkerInterface interface. type MockWorkerInterface struct { ctrl *gomock.Controller recorder *MockWorkerInterfaceMockRecorder } -// MockWorkerInterfaceMockRecorder is the mock recorder for MockWorkerInterface +// MockWorkerInterfaceMockRecorder is the mock recorder for MockWorkerInterface. type MockWorkerInterfaceMockRecorder struct { mock *MockWorkerInterface } -// NewMockWorkerInterface creates a new mock instance +// NewMockWorkerInterface creates a new mock instance. func NewMockWorkerInterface(ctrl *gomock.Controller) *MockWorkerInterface { mock := &MockWorkerInterface{ctrl: ctrl} mock.recorder = &MockWorkerInterfaceMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockWorkerInterface) EXPECT() *MockWorkerInterfaceMockRecorder { return m.recorder } -// PluginsList mocks base method -func (m *MockWorkerInterface) PluginsList() ([]sdk.GRPCPlugin, error) { +// CDNItemDownload mocks base method. +func (m *MockWorkerInterface) CDNItemDownload(ctx context.Context, cdnAddr, hash string, itemType sdk.CDNItemType) (io.Reader, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginsList") - ret0, _ := ret[0].([]sdk.GRPCPlugin) + ret := m.ctrl.Call(m, "CDNItemDownload", ctx, cdnAddr, hash, itemType) + ret0, _ := ret[0].(io.Reader) ret1, _ := ret[1].(error) return ret0, ret1 } -// PluginsList indicates an expected call of PluginsList -func (mr *MockWorkerInterfaceMockRecorder) PluginsList() *gomock.Call { +// CDNItemDownload indicates an expected call of CDNItemDownload. +func (mr *MockWorkerInterfaceMockRecorder) CDNItemDownload(ctx, cdnAddr, hash, itemType interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginsList", reflect.TypeOf((*MockWorkerInterface)(nil).PluginsList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemDownload", reflect.TypeOf((*MockWorkerInterface)(nil).CDNItemDownload), ctx, cdnAddr, hash, itemType) } -// PluginsGet mocks base method -func (m *MockWorkerInterface) PluginsGet(arg0 string) (*sdk.GRPCPlugin, error) { +// CDNItemUpload mocks base method. +func (m *MockWorkerInterface) CDNItemUpload(ctx context.Context, cdnAddr, signature string, fs afero.Fs, path string) (time.Duration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginsGet", arg0) - ret0, _ := ret[0].(*sdk.GRPCPlugin) + ret := m.ctrl.Call(m, "CDNItemUpload", ctx, cdnAddr, signature, fs, path) + ret0, _ := ret[0].(time.Duration) ret1, _ := ret[1].(error) return ret0, ret1 } -// PluginsGet indicates an expected call of PluginsGet -func (mr *MockWorkerInterfaceMockRecorder) PluginsGet(arg0 interface{}) *gomock.Call { +// CDNItemUpload indicates an expected call of CDNItemUpload. +func (mr *MockWorkerInterfaceMockRecorder) CDNItemUpload(ctx, cdnAddr, signature, fs, path interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginsGet", reflect.TypeOf((*MockWorkerInterface)(nil).PluginsGet), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemUpload", reflect.TypeOf((*MockWorkerInterface)(nil).CDNItemUpload), ctx, cdnAddr, signature, fs, path) } -// PluginAdd mocks base method +// PluginAdd mocks base method. func (m *MockWorkerInterface) PluginAdd(arg0 *sdk.GRPCPlugin) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PluginAdd", arg0) @@ -8875,27 +8876,27 @@ func (m *MockWorkerInterface) PluginAdd(arg0 *sdk.GRPCPlugin) error { return ret0 } -// PluginAdd indicates an expected call of PluginAdd +// PluginAdd indicates an expected call of PluginAdd. func (mr *MockWorkerInterfaceMockRecorder) PluginAdd(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginAdd", reflect.TypeOf((*MockWorkerInterface)(nil).PluginAdd), arg0) } -// PluginUpdate mocks base method -func (m *MockWorkerInterface) PluginUpdate(arg0 *sdk.GRPCPlugin) error { +// PluginAddBinary mocks base method. +func (m *MockWorkerInterface) PluginAddBinary(arg0 *sdk.GRPCPlugin, arg1 *sdk.GRPCPluginBinary) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginUpdate", arg0) + ret := m.ctrl.Call(m, "PluginAddBinary", arg0, arg1) ret0, _ := ret[0].(error) return ret0 } -// PluginUpdate indicates an expected call of PluginUpdate -func (mr *MockWorkerInterfaceMockRecorder) PluginUpdate(arg0 interface{}) *gomock.Call { +// PluginAddBinary indicates an expected call of PluginAddBinary. +func (mr *MockWorkerInterfaceMockRecorder) PluginAddBinary(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginUpdate", reflect.TypeOf((*MockWorkerInterface)(nil).PluginUpdate), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginAddBinary", reflect.TypeOf((*MockWorkerInterface)(nil).PluginAddBinary), arg0, arg1) } -// PluginDelete mocks base method +// PluginDelete mocks base method. func (m *MockWorkerInterface) PluginDelete(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PluginDelete", arg0) @@ -8903,27 +8904,13 @@ func (m *MockWorkerInterface) PluginDelete(arg0 string) error { return ret0 } -// PluginDelete indicates an expected call of PluginDelete +// PluginDelete indicates an expected call of PluginDelete. func (mr *MockWorkerInterfaceMockRecorder) PluginDelete(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginDelete", reflect.TypeOf((*MockWorkerInterface)(nil).PluginDelete), arg0) } -// PluginAddBinary mocks base method -func (m *MockWorkerInterface) PluginAddBinary(arg0 *sdk.GRPCPlugin, arg1 *sdk.GRPCPluginBinary) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginAddBinary", arg0, arg1) - ret0, _ := ret[0].(error) - return ret0 -} - -// PluginAddBinary indicates an expected call of PluginAddBinary -func (mr *MockWorkerInterfaceMockRecorder) PluginAddBinary(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginAddBinary", reflect.TypeOf((*MockWorkerInterface)(nil).PluginAddBinary), arg0, arg1) -} - -// PluginDeleteBinary mocks base method +// PluginDeleteBinary mocks base method. func (m *MockWorkerInterface) PluginDeleteBinary(name, os, arch string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PluginDeleteBinary", name, os, arch) @@ -8931,13 +8918,13 @@ func (m *MockWorkerInterface) PluginDeleteBinary(name, os, arch string) error { return ret0 } -// PluginDeleteBinary indicates an expected call of PluginDeleteBinary +// PluginDeleteBinary indicates an expected call of PluginDeleteBinary. func (mr *MockWorkerInterfaceMockRecorder) PluginDeleteBinary(name, os, arch interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginDeleteBinary", reflect.TypeOf((*MockWorkerInterface)(nil).PluginDeleteBinary), name, os, arch) } -// PluginGetBinary mocks base method +// PluginGetBinary mocks base method. func (m *MockWorkerInterface) PluginGetBinary(name, os, arch string, w io.Writer) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PluginGetBinary", name, os, arch, w) @@ -8945,13 +8932,13 @@ func (m *MockWorkerInterface) PluginGetBinary(name, os, arch string, w io.Writer return ret0 } -// PluginGetBinary indicates an expected call of PluginGetBinary +// PluginGetBinary indicates an expected call of PluginGetBinary. func (mr *MockWorkerInterfaceMockRecorder) PluginGetBinary(name, os, arch, w interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginGetBinary", reflect.TypeOf((*MockWorkerInterface)(nil).PluginGetBinary), name, os, arch, w) } -// PluginGetBinaryInfos mocks base method +// PluginGetBinaryInfos mocks base method. func (m *MockWorkerInterface) PluginGetBinaryInfos(name, os, arch string) (*sdk.GRPCPluginBinary, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PluginGetBinaryInfos", name, os, arch) @@ -8960,91 +8947,103 @@ func (m *MockWorkerInterface) PluginGetBinaryInfos(name, os, arch string) (*sdk. return ret0, ret1 } -// PluginGetBinaryInfos indicates an expected call of PluginGetBinaryInfos +// PluginGetBinaryInfos indicates an expected call of PluginGetBinaryInfos. func (mr *MockWorkerInterfaceMockRecorder) PluginGetBinaryInfos(name, os, arch interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginGetBinaryInfos", reflect.TypeOf((*MockWorkerInterface)(nil).PluginGetBinaryInfos), name, os, arch) } -// ProjectIntegrationGet mocks base method -func (m *MockWorkerInterface) ProjectIntegrationGet(projectKey, integrationName string, clearPassword bool) (sdk.ProjectIntegration, error) { +// PluginUpdate mocks base method. +func (m *MockWorkerInterface) PluginUpdate(arg0 *sdk.GRPCPlugin) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProjectIntegrationGet", projectKey, integrationName, clearPassword) - ret0, _ := ret[0].(sdk.ProjectIntegration) + ret := m.ctrl.Call(m, "PluginUpdate", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// PluginUpdate indicates an expected call of PluginUpdate. +func (mr *MockWorkerInterfaceMockRecorder) PluginUpdate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginUpdate", reflect.TypeOf((*MockWorkerInterface)(nil).PluginUpdate), arg0) +} + +// PluginsGet mocks base method. +func (m *MockWorkerInterface) PluginsGet(arg0 string) (*sdk.GRPCPlugin, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PluginsGet", arg0) + ret0, _ := ret[0].(*sdk.GRPCPlugin) ret1, _ := ret[1].(error) return ret0, ret1 } -// ProjectIntegrationGet indicates an expected call of ProjectIntegrationGet -func (mr *MockWorkerInterfaceMockRecorder) ProjectIntegrationGet(projectKey, integrationName, clearPassword interface{}) *gomock.Call { +// PluginsGet indicates an expected call of PluginsGet. +func (mr *MockWorkerInterfaceMockRecorder) PluginsGet(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationGet", reflect.TypeOf((*MockWorkerInterface)(nil).ProjectIntegrationGet), projectKey, integrationName, clearPassword) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginsGet", reflect.TypeOf((*MockWorkerInterface)(nil).PluginsGet), arg0) } -// QueueWorkflowNodeJobRun mocks base method -func (m *MockWorkerInterface) QueueWorkflowNodeJobRun(status ...string) ([]sdk.WorkflowNodeJobRun, error) { +// PluginsList mocks base method. +func (m *MockWorkerInterface) PluginsList() ([]sdk.GRPCPlugin, error) { m.ctrl.T.Helper() - varargs := []interface{}{} - for _, a := range status { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "QueueWorkflowNodeJobRun", varargs...) - ret0, _ := ret[0].([]sdk.WorkflowNodeJobRun) + ret := m.ctrl.Call(m, "PluginsList") + ret0, _ := ret[0].([]sdk.GRPCPlugin) ret1, _ := ret[1].(error) return ret0, ret1 } -// QueueWorkflowNodeJobRun indicates an expected call of QueueWorkflowNodeJobRun -func (mr *MockWorkerInterfaceMockRecorder) QueueWorkflowNodeJobRun(status ...interface{}) *gomock.Call { +// PluginsList indicates an expected call of PluginsList. +func (mr *MockWorkerInterfaceMockRecorder) PluginsList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowNodeJobRun", reflect.TypeOf((*MockWorkerInterface)(nil).QueueWorkflowNodeJobRun), status...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginsList", reflect.TypeOf((*MockWorkerInterface)(nil).PluginsList)) } -// QueueCountWorkflowNodeJobRun mocks base method -func (m *MockWorkerInterface) QueueCountWorkflowNodeJobRun(since, until *time.Time, modelType string, ratioService *int) (sdk.WorkflowNodeJobRunCount, error) { +// ProjectIntegrationGet mocks base method. +func (m *MockWorkerInterface) ProjectIntegrationGet(projectKey, integrationName string, clearPassword bool) (sdk.ProjectIntegration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueCountWorkflowNodeJobRun", since, until, modelType, ratioService) - ret0, _ := ret[0].(sdk.WorkflowNodeJobRunCount) + ret := m.ctrl.Call(m, "ProjectIntegrationGet", projectKey, integrationName, clearPassword) + ret0, _ := ret[0].(sdk.ProjectIntegration) ret1, _ := ret[1].(error) return ret0, ret1 } -// QueueCountWorkflowNodeJobRun indicates an expected call of QueueCountWorkflowNodeJobRun -func (mr *MockWorkerInterfaceMockRecorder) QueueCountWorkflowNodeJobRun(since, until, modelType, ratioService interface{}) *gomock.Call { +// ProjectIntegrationGet indicates an expected call of ProjectIntegrationGet. +func (mr *MockWorkerInterfaceMockRecorder) ProjectIntegrationGet(projectKey, integrationName, clearPassword interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueCountWorkflowNodeJobRun", reflect.TypeOf((*MockWorkerInterface)(nil).QueueCountWorkflowNodeJobRun), since, until, modelType, ratioService) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectIntegrationGet", reflect.TypeOf((*MockWorkerInterface)(nil).ProjectIntegrationGet), projectKey, integrationName, clearPassword) } -// QueuePolling mocks base method -func (m *MockWorkerInterface) QueuePolling(ctx context.Context, goRoutines *sdk.GoRoutines, jobs chan<- sdk.WorkflowNodeJobRun, errs chan<- error, delay time.Duration, modelType string, ratioService *int) error { +// QueueArtifactUpload mocks base method. +func (m *MockWorkerInterface) QueueArtifactUpload(ctx context.Context, projectKey, integrationName string, nodeJobRunID int64, tag, filePath string) (bool, time.Duration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueuePolling", ctx, goRoutines, jobs, errs, delay, modelType, ratioService) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "QueueArtifactUpload", ctx, projectKey, integrationName, nodeJobRunID, tag, filePath) + ret0, _ := ret[0].(bool) + ret1, _ := ret[1].(time.Duration) + ret2, _ := ret[2].(error) + return ret0, ret1, ret2 } -// QueuePolling indicates an expected call of QueuePolling -func (mr *MockWorkerInterfaceMockRecorder) QueuePolling(ctx, goRoutines, jobs, errs, delay, modelType, ratioService interface{}) *gomock.Call { +// QueueArtifactUpload indicates an expected call of QueueArtifactUpload. +func (mr *MockWorkerInterfaceMockRecorder) QueueArtifactUpload(ctx, projectKey, integrationName, nodeJobRunID, tag, filePath interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueuePolling", reflect.TypeOf((*MockWorkerInterface)(nil).QueuePolling), ctx, goRoutines, jobs, errs, delay, modelType, ratioService) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueArtifactUpload", reflect.TypeOf((*MockWorkerInterface)(nil).QueueArtifactUpload), ctx, projectKey, integrationName, nodeJobRunID, tag, filePath) } -// QueueTakeJob mocks base method -func (m *MockWorkerInterface) QueueTakeJob(ctx context.Context, job sdk.WorkflowNodeJobRun) (*sdk.WorkflowNodeJobRunData, error) { +// QueueCountWorkflowNodeJobRun mocks base method. +func (m *MockWorkerInterface) QueueCountWorkflowNodeJobRun(since, until *time.Time, modelType string, ratioService *int) (sdk.WorkflowNodeJobRunCount, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueTakeJob", ctx, job) - ret0, _ := ret[0].(*sdk.WorkflowNodeJobRunData) + ret := m.ctrl.Call(m, "QueueCountWorkflowNodeJobRun", since, until, modelType, ratioService) + ret0, _ := ret[0].(sdk.WorkflowNodeJobRunCount) ret1, _ := ret[1].(error) return ret0, ret1 } -// QueueTakeJob indicates an expected call of QueueTakeJob -func (mr *MockWorkerInterfaceMockRecorder) QueueTakeJob(ctx, job interface{}) *gomock.Call { +// QueueCountWorkflowNodeJobRun indicates an expected call of QueueCountWorkflowNodeJobRun. +func (mr *MockWorkerInterfaceMockRecorder) QueueCountWorkflowNodeJobRun(since, until, modelType, ratioService interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueTakeJob", reflect.TypeOf((*MockWorkerInterface)(nil).QueueTakeJob), ctx, job) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueCountWorkflowNodeJobRun", reflect.TypeOf((*MockWorkerInterface)(nil).QueueCountWorkflowNodeJobRun), since, until, modelType, ratioService) } -// QueueJobBook mocks base method +// QueueJobBook mocks base method. func (m *MockWorkerInterface) QueueJobBook(ctx context.Context, id int64) (sdk.WorkflowNodeJobRunBooked, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueJobBook", ctx, id) @@ -9053,27 +9052,13 @@ func (m *MockWorkerInterface) QueueJobBook(ctx context.Context, id int64) (sdk.W return ret0, ret1 } -// QueueJobBook indicates an expected call of QueueJobBook +// QueueJobBook indicates an expected call of QueueJobBook. func (mr *MockWorkerInterfaceMockRecorder) QueueJobBook(ctx, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobBook", reflect.TypeOf((*MockWorkerInterface)(nil).QueueJobBook), ctx, id) } -// QueueJobRelease mocks base method -func (m *MockWorkerInterface) QueueJobRelease(ctx context.Context, id int64) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueJobRelease", ctx, id) - ret0, _ := ret[0].(error) - return ret0 -} - -// QueueJobRelease indicates an expected call of QueueJobRelease -func (mr *MockWorkerInterfaceMockRecorder) QueueJobRelease(ctx, id interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobRelease", reflect.TypeOf((*MockWorkerInterface)(nil).QueueJobRelease), ctx, id) -} - -// QueueJobInfo mocks base method +// QueueJobInfo mocks base method. func (m *MockWorkerInterface) QueueJobInfo(ctx context.Context, id int64) (*sdk.WorkflowNodeJobRun, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueJobInfo", ctx, id) @@ -9082,13 +9067,27 @@ func (m *MockWorkerInterface) QueueJobInfo(ctx context.Context, id int64) (*sdk. return ret0, ret1 } -// QueueJobInfo indicates an expected call of QueueJobInfo +// QueueJobInfo indicates an expected call of QueueJobInfo. func (mr *MockWorkerInterfaceMockRecorder) QueueJobInfo(ctx, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobInfo", reflect.TypeOf((*MockWorkerInterface)(nil).QueueJobInfo), ctx, id) } -// QueueJobSendSpawnInfo mocks base method +// QueueJobRelease mocks base method. +func (m *MockWorkerInterface) QueueJobRelease(ctx context.Context, id int64) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QueueJobRelease", ctx, id) + ret0, _ := ret[0].(error) + return ret0 +} + +// QueueJobRelease indicates an expected call of QueueJobRelease. +func (mr *MockWorkerInterfaceMockRecorder) QueueJobRelease(ctx, id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobRelease", reflect.TypeOf((*MockWorkerInterface)(nil).QueueJobRelease), ctx, id) +} + +// QueueJobSendSpawnInfo mocks base method. func (m *MockWorkerInterface) QueueJobSendSpawnInfo(ctx context.Context, id int64, in []sdk.SpawnInfo) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueJobSendSpawnInfo", ctx, id, in) @@ -9096,83 +9095,83 @@ func (m *MockWorkerInterface) QueueJobSendSpawnInfo(ctx context.Context, id int6 return ret0 } -// QueueJobSendSpawnInfo indicates an expected call of QueueJobSendSpawnInfo +// QueueJobSendSpawnInfo indicates an expected call of QueueJobSendSpawnInfo. func (mr *MockWorkerInterfaceMockRecorder) QueueJobSendSpawnInfo(ctx, id, in interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobSendSpawnInfo", reflect.TypeOf((*MockWorkerInterface)(nil).QueueJobSendSpawnInfo), ctx, id, in) } -// QueueSendCoverage mocks base method -func (m *MockWorkerInterface) QueueSendCoverage(ctx context.Context, id int64, report coverage.Report) error { +// QueueJobSetVersion mocks base method. +func (m *MockWorkerInterface) QueueJobSetVersion(ctx context.Context, jobID int64, version sdk.WorkflowRunVersion) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendCoverage", ctx, id, report) + ret := m.ctrl.Call(m, "QueueJobSetVersion", ctx, jobID, version) ret0, _ := ret[0].(error) return ret0 } -// QueueSendCoverage indicates an expected call of QueueSendCoverage -func (mr *MockWorkerInterfaceMockRecorder) QueueSendCoverage(ctx, id, report interface{}) *gomock.Call { +// QueueJobSetVersion indicates an expected call of QueueJobSetVersion. +func (mr *MockWorkerInterfaceMockRecorder) QueueJobSetVersion(ctx, jobID, version interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendCoverage", reflect.TypeOf((*MockWorkerInterface)(nil).QueueSendCoverage), ctx, id, report) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobSetVersion", reflect.TypeOf((*MockWorkerInterface)(nil).QueueJobSetVersion), ctx, jobID, version) } -// QueueSendUnitTests mocks base method -func (m *MockWorkerInterface) QueueSendUnitTests(ctx context.Context, id int64, report venom.Tests) error { +// QueueJobTag mocks base method. +func (m *MockWorkerInterface) QueueJobTag(ctx context.Context, jobID int64, tags []sdk.WorkflowRunTag) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendUnitTests", ctx, id, report) + ret := m.ctrl.Call(m, "QueueJobTag", ctx, jobID, tags) ret0, _ := ret[0].(error) return ret0 } -// QueueSendUnitTests indicates an expected call of QueueSendUnitTests -func (mr *MockWorkerInterfaceMockRecorder) QueueSendUnitTests(ctx, id, report interface{}) *gomock.Call { +// QueueJobTag indicates an expected call of QueueJobTag. +func (mr *MockWorkerInterfaceMockRecorder) QueueJobTag(ctx, jobID, tags interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendUnitTests", reflect.TypeOf((*MockWorkerInterface)(nil).QueueSendUnitTests), ctx, id, report) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobTag", reflect.TypeOf((*MockWorkerInterface)(nil).QueueJobTag), ctx, jobID, tags) } -// QueueSendLogs mocks base method -func (m *MockWorkerInterface) QueueSendLogs(ctx context.Context, id int64, log sdk.Log) error { +// QueuePolling mocks base method. +func (m *MockWorkerInterface) QueuePolling(ctx context.Context, goRoutines *sdk.GoRoutines, jobs chan<- sdk.WorkflowNodeJobRun, errs chan<- error, delay time.Duration, modelType string, ratioService *int) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendLogs", ctx, id, log) + ret := m.ctrl.Call(m, "QueuePolling", ctx, goRoutines, jobs, errs, delay, modelType, ratioService) ret0, _ := ret[0].(error) return ret0 } -// QueueSendLogs indicates an expected call of QueueSendLogs -func (mr *MockWorkerInterfaceMockRecorder) QueueSendLogs(ctx, id, log interface{}) *gomock.Call { +// QueuePolling indicates an expected call of QueuePolling. +func (mr *MockWorkerInterfaceMockRecorder) QueuePolling(ctx, goRoutines, jobs, errs, delay, modelType, ratioService interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendLogs", reflect.TypeOf((*MockWorkerInterface)(nil).QueueSendLogs), ctx, id, log) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueuePolling", reflect.TypeOf((*MockWorkerInterface)(nil).QueuePolling), ctx, goRoutines, jobs, errs, delay, modelType, ratioService) } -// QueueSendVulnerability mocks base method -func (m *MockWorkerInterface) QueueSendVulnerability(ctx context.Context, id int64, report sdk.VulnerabilityWorkerReport) error { +// QueueSendCoverage mocks base method. +func (m *MockWorkerInterface) QueueSendCoverage(ctx context.Context, id int64, report coverage.Report) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendVulnerability", ctx, id, report) + ret := m.ctrl.Call(m, "QueueSendCoverage", ctx, id, report) ret0, _ := ret[0].(error) return ret0 } -// QueueSendVulnerability indicates an expected call of QueueSendVulnerability -func (mr *MockWorkerInterfaceMockRecorder) QueueSendVulnerability(ctx, id, report interface{}) *gomock.Call { +// QueueSendCoverage indicates an expected call of QueueSendCoverage. +func (mr *MockWorkerInterfaceMockRecorder) QueueSendCoverage(ctx, id, report interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendVulnerability", reflect.TypeOf((*MockWorkerInterface)(nil).QueueSendVulnerability), ctx, id, report) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendCoverage", reflect.TypeOf((*MockWorkerInterface)(nil).QueueSendCoverage), ctx, id, report) } -// QueueSendStepResult mocks base method -func (m *MockWorkerInterface) QueueSendStepResult(ctx context.Context, id int64, res sdk.StepStatus) error { +// QueueSendLogs mocks base method. +func (m *MockWorkerInterface) QueueSendLogs(ctx context.Context, id int64, log sdk.Log) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueSendStepResult", ctx, id, res) + ret := m.ctrl.Call(m, "QueueSendLogs", ctx, id, log) ret0, _ := ret[0].(error) return ret0 } -// QueueSendStepResult indicates an expected call of QueueSendStepResult -func (mr *MockWorkerInterfaceMockRecorder) QueueSendStepResult(ctx, id, res interface{}) *gomock.Call { +// QueueSendLogs indicates an expected call of QueueSendLogs. +func (mr *MockWorkerInterfaceMockRecorder) QueueSendLogs(ctx, id, log interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendStepResult", reflect.TypeOf((*MockWorkerInterface)(nil).QueueSendStepResult), ctx, id, res) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendLogs", reflect.TypeOf((*MockWorkerInterface)(nil).QueueSendLogs), ctx, id, log) } -// QueueSendResult mocks base method +// QueueSendResult mocks base method. func (m *MockWorkerInterface) QueueSendResult(ctx context.Context, id int64, res sdk.Result) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueSendResult", ctx, id, res) @@ -9180,60 +9179,55 @@ func (m *MockWorkerInterface) QueueSendResult(ctx context.Context, id int64, res return ret0 } -// QueueSendResult indicates an expected call of QueueSendResult +// QueueSendResult indicates an expected call of QueueSendResult. func (mr *MockWorkerInterfaceMockRecorder) QueueSendResult(ctx, id, res interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendResult", reflect.TypeOf((*MockWorkerInterface)(nil).QueueSendResult), ctx, id, res) } -// QueueArtifactUpload mocks base method -func (m *MockWorkerInterface) QueueArtifactUpload(ctx context.Context, projectKey, integrationName string, nodeJobRunID int64, tag, filePath string) (bool, time.Duration, error) { +// QueueSendStepResult mocks base method. +func (m *MockWorkerInterface) QueueSendStepResult(ctx context.Context, id int64, res sdk.StepStatus) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueArtifactUpload", ctx, projectKey, integrationName, nodeJobRunID, tag, filePath) - ret0, _ := ret[0].(bool) - ret1, _ := ret[1].(time.Duration) - ret2, _ := ret[2].(error) - return ret0, ret1, ret2 + ret := m.ctrl.Call(m, "QueueSendStepResult", ctx, id, res) + ret0, _ := ret[0].(error) + return ret0 } -// QueueArtifactUpload indicates an expected call of QueueArtifactUpload -func (mr *MockWorkerInterfaceMockRecorder) QueueArtifactUpload(ctx, projectKey, integrationName, nodeJobRunID, tag, filePath interface{}) *gomock.Call { +// QueueSendStepResult indicates an expected call of QueueSendStepResult. +func (mr *MockWorkerInterfaceMockRecorder) QueueSendStepResult(ctx, id, res interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueArtifactUpload", reflect.TypeOf((*MockWorkerInterface)(nil).QueueArtifactUpload), ctx, projectKey, integrationName, nodeJobRunID, tag, filePath) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendStepResult", reflect.TypeOf((*MockWorkerInterface)(nil).QueueSendStepResult), ctx, id, res) } -// QueueStaticFilesUpload mocks base method -func (m *MockWorkerInterface) QueueStaticFilesUpload(ctx context.Context, projectKey, integrationName string, nodeJobRunID int64, name, entrypoint, staticKey string, tarContent io.Reader) (string, bool, time.Duration, error) { +// QueueSendUnitTests mocks base method. +func (m *MockWorkerInterface) QueueSendUnitTests(ctx context.Context, id int64, report venom.Tests) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueStaticFilesUpload", ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent) - ret0, _ := ret[0].(string) - ret1, _ := ret[1].(bool) - ret2, _ := ret[2].(time.Duration) - ret3, _ := ret[3].(error) - return ret0, ret1, ret2, ret3 + ret := m.ctrl.Call(m, "QueueSendUnitTests", ctx, id, report) + ret0, _ := ret[0].(error) + return ret0 } -// QueueStaticFilesUpload indicates an expected call of QueueStaticFilesUpload -func (mr *MockWorkerInterfaceMockRecorder) QueueStaticFilesUpload(ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent interface{}) *gomock.Call { +// QueueSendUnitTests indicates an expected call of QueueSendUnitTests. +func (mr *MockWorkerInterfaceMockRecorder) QueueSendUnitTests(ctx, id, report interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueStaticFilesUpload", reflect.TypeOf((*MockWorkerInterface)(nil).QueueStaticFilesUpload), ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendUnitTests", reflect.TypeOf((*MockWorkerInterface)(nil).QueueSendUnitTests), ctx, id, report) } -// QueueJobTag mocks base method -func (m *MockWorkerInterface) QueueJobTag(ctx context.Context, jobID int64, tags []sdk.WorkflowRunTag) error { +// QueueSendVulnerability mocks base method. +func (m *MockWorkerInterface) QueueSendVulnerability(ctx context.Context, id int64, report sdk.VulnerabilityWorkerReport) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueJobTag", ctx, jobID, tags) + ret := m.ctrl.Call(m, "QueueSendVulnerability", ctx, id, report) ret0, _ := ret[0].(error) return ret0 } -// QueueJobTag indicates an expected call of QueueJobTag -func (mr *MockWorkerInterfaceMockRecorder) QueueJobTag(ctx, jobID, tags interface{}) *gomock.Call { +// QueueSendVulnerability indicates an expected call of QueueSendVulnerability. +func (mr *MockWorkerInterfaceMockRecorder) QueueSendVulnerability(ctx, id, report interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobTag", reflect.TypeOf((*MockWorkerInterface)(nil).QueueJobTag), ctx, jobID, tags) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueSendVulnerability", reflect.TypeOf((*MockWorkerInterface)(nil).QueueSendVulnerability), ctx, id, report) } -// QueueServiceLogs mocks base method +// QueueServiceLogs mocks base method. func (m *MockWorkerInterface) QueueServiceLogs(ctx context.Context, logs []sdk.ServiceLog) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueServiceLogs", ctx, logs) @@ -9241,27 +9235,45 @@ func (m *MockWorkerInterface) QueueServiceLogs(ctx context.Context, logs []sdk.S return ret0 } -// QueueServiceLogs indicates an expected call of QueueServiceLogs +// QueueServiceLogs indicates an expected call of QueueServiceLogs. func (mr *MockWorkerInterfaceMockRecorder) QueueServiceLogs(ctx, logs interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueServiceLogs", reflect.TypeOf((*MockWorkerInterface)(nil).QueueServiceLogs), ctx, logs) } -// QueueJobSetVersion mocks base method -func (m *MockWorkerInterface) QueueJobSetVersion(ctx context.Context, jobID int64, version sdk.WorkflowRunVersion) error { +// QueueStaticFilesUpload mocks base method. +func (m *MockWorkerInterface) QueueStaticFilesUpload(ctx context.Context, projectKey, integrationName string, nodeJobRunID int64, name, entrypoint, staticKey string, tarContent io.Reader) (string, bool, time.Duration, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueJobSetVersion", ctx, jobID, version) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "QueueStaticFilesUpload", ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent) + ret0, _ := ret[0].(string) + ret1, _ := ret[1].(bool) + ret2, _ := ret[2].(time.Duration) + ret3, _ := ret[3].(error) + return ret0, ret1, ret2, ret3 } -// QueueJobSetVersion indicates an expected call of QueueJobSetVersion -func (mr *MockWorkerInterfaceMockRecorder) QueueJobSetVersion(ctx, jobID, version interface{}) *gomock.Call { +// QueueStaticFilesUpload indicates an expected call of QueueStaticFilesUpload. +func (mr *MockWorkerInterfaceMockRecorder) QueueStaticFilesUpload(ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueJobSetVersion", reflect.TypeOf((*MockWorkerInterface)(nil).QueueJobSetVersion), ctx, jobID, version) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueStaticFilesUpload", reflect.TypeOf((*MockWorkerInterface)(nil).QueueStaticFilesUpload), ctx, projectKey, integrationName, nodeJobRunID, name, entrypoint, staticKey, tarContent) +} + +// QueueTakeJob mocks base method. +func (m *MockWorkerInterface) QueueTakeJob(ctx context.Context, job sdk.WorkflowNodeJobRun) (*sdk.WorkflowNodeJobRunData, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QueueTakeJob", ctx, job) + ret0, _ := ret[0].(*sdk.WorkflowNodeJobRunData) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// QueueTakeJob indicates an expected call of QueueTakeJob. +func (mr *MockWorkerInterfaceMockRecorder) QueueTakeJob(ctx, job interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueTakeJob", reflect.TypeOf((*MockWorkerInterface)(nil).QueueTakeJob), ctx, job) } -// QueueWorkerCacheLink mocks base method +// QueueWorkerCacheLink mocks base method. func (m *MockWorkerInterface) QueueWorkerCacheLink(ctx context.Context, jobID int64, tag string) (sdk.CDNItemLinks, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "QueueWorkerCacheLink", ctx, jobID, tag) @@ -9270,41 +9282,60 @@ func (m *MockWorkerInterface) QueueWorkerCacheLink(ctx context.Context, jobID in return ret0, ret1 } -// QueueWorkerCacheLink indicates an expected call of QueueWorkerCacheLink +// QueueWorkerCacheLink indicates an expected call of QueueWorkerCacheLink. func (mr *MockWorkerInterfaceMockRecorder) QueueWorkerCacheLink(ctx, jobID, tag interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkerCacheLink", reflect.TypeOf((*MockWorkerInterface)(nil).QueueWorkerCacheLink), ctx, jobID, tag) } -// QueueWorkflowRunResultsAdd mocks base method -func (m *MockWorkerInterface) QueueWorkflowRunResultsAdd(ctx context.Context, jobID int64, addRequest sdk.WorkflowRunResult) error { +// QueueWorkflowNodeJobRun mocks base method. +func (m *MockWorkerInterface) QueueWorkflowNodeJobRun(status ...string) ([]sdk.WorkflowNodeJobRun, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueWorkflowRunResultsAdd", ctx, jobID, addRequest) + varargs := []interface{}{} + for _, a := range status { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "QueueWorkflowNodeJobRun", varargs...) + ret0, _ := ret[0].([]sdk.WorkflowNodeJobRun) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// QueueWorkflowNodeJobRun indicates an expected call of QueueWorkflowNodeJobRun. +func (mr *MockWorkerInterfaceMockRecorder) QueueWorkflowNodeJobRun(status ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowNodeJobRun", reflect.TypeOf((*MockWorkerInterface)(nil).QueueWorkflowNodeJobRun), status...) +} + +// QueueWorkflowRunResultCheck mocks base method. +func (m *MockWorkerInterface) QueueWorkflowRunResultCheck(ctx context.Context, jobID int64, runResultCheck sdk.WorkflowRunResultCheck) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QueueWorkflowRunResultCheck", ctx, jobID, runResultCheck) ret0, _ := ret[0].(error) return ret0 } -// QueueWorkflowRunResultsAdd indicates an expected call of QueueWorkflowRunResultsAdd -func (mr *MockWorkerInterfaceMockRecorder) QueueWorkflowRunResultsAdd(ctx, jobID, addRequest interface{}) *gomock.Call { +// QueueWorkflowRunResultCheck indicates an expected call of QueueWorkflowRunResultCheck. +func (mr *MockWorkerInterfaceMockRecorder) QueueWorkflowRunResultCheck(ctx, jobID, runResultCheck interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowRunResultsAdd", reflect.TypeOf((*MockWorkerInterface)(nil).QueueWorkflowRunResultsAdd), ctx, jobID, addRequest) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowRunResultCheck", reflect.TypeOf((*MockWorkerInterface)(nil).QueueWorkflowRunResultCheck), ctx, jobID, runResultCheck) } -// QueueWorkflowRunResultCheck mocks base method -func (m *MockWorkerInterface) QueueWorkflowRunResultCheck(ctx context.Context, jobID int64, apiRef sdk.CDNRunResultAPIRef) error { +// QueueWorkflowRunResultsAdd mocks base method. +func (m *MockWorkerInterface) QueueWorkflowRunResultsAdd(ctx context.Context, jobID int64, addRequest sdk.WorkflowRunResult) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "QueueWorkflowRunResultCheck", ctx, jobID, apiRef) + ret := m.ctrl.Call(m, "QueueWorkflowRunResultsAdd", ctx, jobID, addRequest) ret0, _ := ret[0].(error) return ret0 } -// QueueWorkflowRunResultCheck indicates an expected call of QueueWorkflowRunResultCheck -func (mr *MockWorkerInterfaceMockRecorder) QueueWorkflowRunResultCheck(ctx, jobID, apiRef interface{}) *gomock.Call { +// QueueWorkflowRunResultsAdd indicates an expected call of QueueWorkflowRunResultsAdd. +func (mr *MockWorkerInterfaceMockRecorder) QueueWorkflowRunResultsAdd(ctx, jobID, addRequest interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowRunResultCheck", reflect.TypeOf((*MockWorkerInterface)(nil).QueueWorkflowRunResultCheck), ctx, jobID, apiRef) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueWorkflowRunResultsAdd", reflect.TypeOf((*MockWorkerInterface)(nil).QueueWorkflowRunResultsAdd), ctx, jobID, addRequest) } -// Requirements mocks base method +// Requirements mocks base method. func (m *MockWorkerInterface) Requirements() ([]sdk.Requirement, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Requirements") @@ -9313,13 +9344,13 @@ func (m *MockWorkerInterface) Requirements() ([]sdk.Requirement, error) { return ret0, ret1 } -// Requirements indicates an expected call of Requirements +// Requirements indicates an expected call of Requirements. func (mr *MockWorkerInterfaceMockRecorder) Requirements() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Requirements", reflect.TypeOf((*MockWorkerInterface)(nil).Requirements)) } -// ServiceConfigurationGet mocks base method +// ServiceConfigurationGet mocks base method. func (m *MockWorkerInterface) ServiceConfigurationGet(arg0 context.Context, arg1 string) ([]sdk.ServiceConfiguration, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ServiceConfigurationGet", arg0, arg1) @@ -9328,13 +9359,27 @@ func (m *MockWorkerInterface) ServiceConfigurationGet(arg0 context.Context, arg1 return ret0, ret1 } -// ServiceConfigurationGet indicates an expected call of ServiceConfigurationGet +// ServiceConfigurationGet indicates an expected call of ServiceConfigurationGet. func (mr *MockWorkerInterfaceMockRecorder) ServiceConfigurationGet(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceConfigurationGet", reflect.TypeOf((*MockWorkerInterface)(nil).ServiceConfigurationGet), arg0, arg1) } -// WorkerGet mocks base method +// WorkerDisable mocks base method. +func (m *MockWorkerInterface) WorkerDisable(ctx context.Context, id string) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkerDisable", ctx, id) + ret0, _ := ret[0].(error) + return ret0 +} + +// WorkerDisable indicates an expected call of WorkerDisable. +func (mr *MockWorkerInterfaceMockRecorder) WorkerDisable(ctx, id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerDisable", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerDisable), ctx, id) +} + +// WorkerGet mocks base method. func (m *MockWorkerInterface) WorkerGet(ctx context.Context, name string, mods ...cdsclient.RequestModifier) (*sdk.Worker, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, name} @@ -9347,28 +9392,14 @@ func (m *MockWorkerInterface) WorkerGet(ctx context.Context, name string, mods . return ret0, ret1 } -// WorkerGet indicates an expected call of WorkerGet +// WorkerGet indicates an expected call of WorkerGet. func (mr *MockWorkerInterfaceMockRecorder) WorkerGet(ctx, name interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, name}, mods...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerGet", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerGet), varargs...) } -// WorkerModelBook mocks base method -func (m *MockWorkerInterface) WorkerModelBook(groupName, name string) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelBook", groupName, name) - ret0, _ := ret[0].(error) - return ret0 -} - -// WorkerModelBook indicates an expected call of WorkerModelBook -func (mr *MockWorkerInterfaceMockRecorder) WorkerModelBook(groupName, name interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelBook", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelBook), groupName, name) -} - -// WorkerList mocks base method +// WorkerList mocks base method. func (m *MockWorkerInterface) WorkerList(ctx context.Context) ([]sdk.Worker, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkerList", ctx) @@ -9377,70 +9408,71 @@ func (m *MockWorkerInterface) WorkerList(ctx context.Context) ([]sdk.Worker, err return ret0, ret1 } -// WorkerList indicates an expected call of WorkerList +// WorkerList indicates an expected call of WorkerList. func (mr *MockWorkerInterfaceMockRecorder) WorkerList(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerList", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerList), ctx) } -// WorkerRefresh mocks base method -func (m *MockWorkerInterface) WorkerRefresh(ctx context.Context) error { +// WorkerModelAdd mocks base method. +func (m *MockWorkerInterface) WorkerModelAdd(name, modelType, patternName string, dockerModel *sdk.ModelDocker, vmModel *sdk.ModelVirtualMachine, groupID int64) (sdk.Model, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerRefresh", ctx) - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "WorkerModelAdd", name, modelType, patternName, dockerModel, vmModel, groupID) + ret0, _ := ret[0].(sdk.Model) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// WorkerRefresh indicates an expected call of WorkerRefresh -func (mr *MockWorkerInterfaceMockRecorder) WorkerRefresh(ctx interface{}) *gomock.Call { +// WorkerModelAdd indicates an expected call of WorkerModelAdd. +func (mr *MockWorkerInterfaceMockRecorder) WorkerModelAdd(name, modelType, patternName, dockerModel, vmModel, groupID interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerRefresh", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerRefresh), ctx) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelAdd", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelAdd), name, modelType, patternName, dockerModel, vmModel, groupID) } -// WorkerUnregister mocks base method -func (m *MockWorkerInterface) WorkerUnregister(ctx context.Context) error { +// WorkerModelBook mocks base method. +func (m *MockWorkerInterface) WorkerModelBook(groupName, name string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerUnregister", ctx) + ret := m.ctrl.Call(m, "WorkerModelBook", groupName, name) ret0, _ := ret[0].(error) return ret0 } -// WorkerUnregister indicates an expected call of WorkerUnregister -func (mr *MockWorkerInterfaceMockRecorder) WorkerUnregister(ctx interface{}) *gomock.Call { +// WorkerModelBook indicates an expected call of WorkerModelBook. +func (mr *MockWorkerInterfaceMockRecorder) WorkerModelBook(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerUnregister", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerUnregister), ctx) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelBook", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelBook), groupName, name) } -// WorkerDisable mocks base method -func (m *MockWorkerInterface) WorkerDisable(ctx context.Context, id string) error { +// WorkerModelDelete mocks base method. +func (m *MockWorkerInterface) WorkerModelDelete(groupName, name string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerDisable", ctx, id) + ret := m.ctrl.Call(m, "WorkerModelDelete", groupName, name) ret0, _ := ret[0].(error) return ret0 } -// WorkerDisable indicates an expected call of WorkerDisable -func (mr *MockWorkerInterfaceMockRecorder) WorkerDisable(ctx, id interface{}) *gomock.Call { +// WorkerModelDelete indicates an expected call of WorkerModelDelete. +func (mr *MockWorkerInterfaceMockRecorder) WorkerModelDelete(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerDisable", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerDisable), ctx, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelDelete", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelDelete), groupName, name) } -// WorkerModelAdd mocks base method -func (m *MockWorkerInterface) WorkerModelAdd(name, modelType, patternName string, dockerModel *sdk.ModelDocker, vmModel *sdk.ModelVirtualMachine, groupID int64) (sdk.Model, error) { +// WorkerModelEnabledList mocks base method. +func (m *MockWorkerInterface) WorkerModelEnabledList() ([]sdk.Model, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelAdd", name, modelType, patternName, dockerModel, vmModel, groupID) - ret0, _ := ret[0].(sdk.Model) + ret := m.ctrl.Call(m, "WorkerModelEnabledList") + ret0, _ := ret[0].([]sdk.Model) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerModelAdd indicates an expected call of WorkerModelAdd -func (mr *MockWorkerInterfaceMockRecorder) WorkerModelAdd(name, modelType, patternName, dockerModel, vmModel, groupID interface{}) *gomock.Call { +// WorkerModelEnabledList indicates an expected call of WorkerModelEnabledList. +func (mr *MockWorkerInterfaceMockRecorder) WorkerModelEnabledList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelAdd", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelAdd), name, modelType, patternName, dockerModel, vmModel, groupID) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelEnabledList", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelEnabledList)) } -// WorkerModelGet mocks base method +// WorkerModelGet mocks base method. func (m *MockWorkerInterface) WorkerModelGet(groupName, name string) (sdk.Model, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkerModelGet", groupName, name) @@ -9449,41 +9481,13 @@ func (m *MockWorkerInterface) WorkerModelGet(groupName, name string) (sdk.Model, return ret0, ret1 } -// WorkerModelGet indicates an expected call of WorkerModelGet -func (mr *MockWorkerInterfaceMockRecorder) WorkerModelGet(groupName, name interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelGet", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelGet), groupName, name) -} - -// WorkerModelDelete mocks base method -func (m *MockWorkerInterface) WorkerModelDelete(groupName, name string) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelDelete", groupName, name) - ret0, _ := ret[0].(error) - return ret0 -} - -// WorkerModelDelete indicates an expected call of WorkerModelDelete -func (mr *MockWorkerInterfaceMockRecorder) WorkerModelDelete(groupName, name interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelDelete", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelDelete), groupName, name) -} - -// WorkerModelSpawnError mocks base method -func (m *MockWorkerInterface) WorkerModelSpawnError(groupName, name string, info sdk.SpawnErrorForm) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelSpawnError", groupName, name, info) - ret0, _ := ret[0].(error) - return ret0 -} - -// WorkerModelSpawnError indicates an expected call of WorkerModelSpawnError -func (mr *MockWorkerInterfaceMockRecorder) WorkerModelSpawnError(groupName, name, info interface{}) *gomock.Call { +// WorkerModelGet indicates an expected call of WorkerModelGet. +func (mr *MockWorkerInterfaceMockRecorder) WorkerModelGet(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelSpawnError", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelSpawnError), groupName, name, info) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelGet", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelGet), groupName, name) } -// WorkerModelList mocks base method +// WorkerModelList mocks base method. func (m *MockWorkerInterface) WorkerModelList(arg0 *cdsclient.WorkerModelFilter) ([]sdk.Model, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkerModelList", arg0) @@ -9492,43 +9496,56 @@ func (m *MockWorkerInterface) WorkerModelList(arg0 *cdsclient.WorkerModelFilter) return ret0, ret1 } -// WorkerModelList indicates an expected call of WorkerModelList +// WorkerModelList indicates an expected call of WorkerModelList. func (mr *MockWorkerInterfaceMockRecorder) WorkerModelList(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelList", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelList), arg0) } -// WorkerModelEnabledList mocks base method -func (m *MockWorkerInterface) WorkerModelEnabledList() ([]sdk.Model, error) { +// WorkerModelSecretList mocks base method. +func (m *MockWorkerInterface) WorkerModelSecretList(groupName, name string) (sdk.WorkerModelSecrets, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelEnabledList") - ret0, _ := ret[0].([]sdk.Model) + ret := m.ctrl.Call(m, "WorkerModelSecretList", groupName, name) + ret0, _ := ret[0].(sdk.WorkerModelSecrets) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkerModelEnabledList indicates an expected call of WorkerModelEnabledList -func (mr *MockWorkerInterfaceMockRecorder) WorkerModelEnabledList() *gomock.Call { +// WorkerModelSecretList indicates an expected call of WorkerModelSecretList. +func (mr *MockWorkerInterfaceMockRecorder) WorkerModelSecretList(groupName, name interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelEnabledList", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelEnabledList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelSecretList", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelSecretList), groupName, name) } -// WorkerModelSecretList mocks base method -func (m *MockWorkerInterface) WorkerModelSecretList(groupName, name string) (sdk.WorkerModelSecrets, error) { +// WorkerModelSpawnError mocks base method. +func (m *MockWorkerInterface) WorkerModelSpawnError(groupName, name string, info sdk.SpawnErrorForm) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkerModelSecretList", groupName, name) - ret0, _ := ret[0].(sdk.WorkerModelSecrets) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "WorkerModelSpawnError", groupName, name, info) + ret0, _ := ret[0].(error) + return ret0 } -// WorkerModelSecretList indicates an expected call of WorkerModelSecretList -func (mr *MockWorkerInterfaceMockRecorder) WorkerModelSecretList(groupName, name interface{}) *gomock.Call { +// WorkerModelSpawnError indicates an expected call of WorkerModelSpawnError. +func (mr *MockWorkerInterfaceMockRecorder) WorkerModelSpawnError(groupName, name, info interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelSecretList", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelSecretList), groupName, name) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerModelSpawnError", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerModelSpawnError), groupName, name, info) +} + +// WorkerRefresh mocks base method. +func (m *MockWorkerInterface) WorkerRefresh(ctx context.Context) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkerRefresh", ctx) + ret0, _ := ret[0].(error) + return ret0 +} + +// WorkerRefresh indicates an expected call of WorkerRefresh. +func (mr *MockWorkerInterfaceMockRecorder) WorkerRefresh(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerRefresh", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerRefresh), ctx) } -// WorkerRegister mocks base method +// WorkerRegister mocks base method. func (m *MockWorkerInterface) WorkerRegister(ctx context.Context, authToken string, form sdk.WorkerRegistrationForm) (*sdk.Worker, bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkerRegister", ctx, authToken, form) @@ -9538,13 +9555,13 @@ func (m *MockWorkerInterface) WorkerRegister(ctx context.Context, authToken stri return ret0, ret1, ret2 } -// WorkerRegister indicates an expected call of WorkerRegister +// WorkerRegister indicates an expected call of WorkerRegister. func (mr *MockWorkerInterfaceMockRecorder) WorkerRegister(ctx, authToken, form interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerRegister", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerRegister), ctx, authToken, form) } -// WorkerSetStatus mocks base method +// WorkerSetStatus mocks base method. func (m *MockWorkerInterface) WorkerSetStatus(ctx context.Context, status string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkerSetStatus", ctx, status) @@ -9552,72 +9569,27 @@ func (m *MockWorkerInterface) WorkerSetStatus(ctx context.Context, status string return ret0 } -// WorkerSetStatus indicates an expected call of WorkerSetStatus +// WorkerSetStatus indicates an expected call of WorkerSetStatus. func (mr *MockWorkerInterfaceMockRecorder) WorkerSetStatus(ctx, status interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerSetStatus", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerSetStatus), ctx, status) } -// CDNItemUpload mocks base method -func (m *MockWorkerInterface) CDNItemUpload(ctx context.Context, cdnAddr, signature string, fs afero.Fs, path string) (time.Duration, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CDNItemUpload", ctx, cdnAddr, signature, fs, path) - ret0, _ := ret[0].(time.Duration) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CDNItemUpload indicates an expected call of CDNItemUpload -func (mr *MockWorkerInterfaceMockRecorder) CDNItemUpload(ctx, cdnAddr, signature, fs, path interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemUpload", reflect.TypeOf((*MockWorkerInterface)(nil).CDNItemUpload), ctx, cdnAddr, signature, fs, path) -} - -// CDNItemDownload mocks base method -func (m *MockWorkerInterface) CDNItemDownload(ctx context.Context, cdnAddr, hash string, itemType sdk.CDNItemType) (io.Reader, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CDNItemDownload", ctx, cdnAddr, hash, itemType) - ret0, _ := ret[0].(io.Reader) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CDNItemDownload indicates an expected call of CDNItemDownload -func (mr *MockWorkerInterfaceMockRecorder) CDNItemDownload(ctx, cdnAddr, hash, itemType interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CDNItemDownload", reflect.TypeOf((*MockWorkerInterface)(nil).CDNItemDownload), ctx, cdnAddr, hash, itemType) -} - -// WorkflowRunArtifacts mocks base method -func (m *MockWorkerInterface) WorkflowRunArtifacts(projectKey, name string, number int64) ([]sdk.WorkflowNodeRunArtifact, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunArtifacts", projectKey, name, number) - ret0, _ := ret[0].([]sdk.WorkflowNodeRunArtifact) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// WorkflowRunArtifacts indicates an expected call of WorkflowRunArtifacts -func (mr *MockWorkerInterfaceMockRecorder) WorkflowRunArtifacts(projectKey, name, number interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunArtifacts", reflect.TypeOf((*MockWorkerInterface)(nil).WorkflowRunArtifacts), projectKey, name, number) -} - -// WorkflowCachePush mocks base method -func (m *MockWorkerInterface) WorkflowCachePush(projectKey, integrationName, ref string, tarContent io.Reader, size int) error { +// WorkerUnregister mocks base method. +func (m *MockWorkerInterface) WorkerUnregister(ctx context.Context) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowCachePush", projectKey, integrationName, ref, tarContent, size) + ret := m.ctrl.Call(m, "WorkerUnregister", ctx) ret0, _ := ret[0].(error) return ret0 } -// WorkflowCachePush indicates an expected call of WorkflowCachePush -func (mr *MockWorkerInterfaceMockRecorder) WorkflowCachePush(projectKey, integrationName, ref, tarContent, size interface{}) *gomock.Call { +// WorkerUnregister indicates an expected call of WorkerUnregister. +func (mr *MockWorkerInterfaceMockRecorder) WorkerUnregister(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowCachePush", reflect.TypeOf((*MockWorkerInterface)(nil).WorkflowCachePush), projectKey, integrationName, ref, tarContent, size) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerUnregister", reflect.TypeOf((*MockWorkerInterface)(nil).WorkerUnregister), ctx) } -// WorkflowCachePull mocks base method +// WorkflowCachePull mocks base method. func (m *MockWorkerInterface) WorkflowCachePull(projectKey, integrationName, ref string) (io.Reader, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowCachePull", projectKey, integrationName, ref) @@ -9626,28 +9598,27 @@ func (m *MockWorkerInterface) WorkflowCachePull(projectKey, integrationName, ref return ret0, ret1 } -// WorkflowCachePull indicates an expected call of WorkflowCachePull +// WorkflowCachePull indicates an expected call of WorkflowCachePull. func (mr *MockWorkerInterfaceMockRecorder) WorkflowCachePull(projectKey, integrationName, ref interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowCachePull", reflect.TypeOf((*MockWorkerInterface)(nil).WorkflowCachePull), projectKey, integrationName, ref) } -// WorkflowRunList mocks base method -func (m *MockWorkerInterface) WorkflowRunList(projectKey, workflowName string, offset, limit int64) ([]sdk.WorkflowRun, error) { +// WorkflowCachePush mocks base method. +func (m *MockWorkerInterface) WorkflowCachePush(projectKey, integrationName, ref string, tarContent io.Reader, size int) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowRunList", projectKey, workflowName, offset, limit) - ret0, _ := ret[0].([]sdk.WorkflowRun) - ret1, _ := ret[1].(error) - return ret0, ret1 + ret := m.ctrl.Call(m, "WorkflowCachePush", projectKey, integrationName, ref, tarContent, size) + ret0, _ := ret[0].(error) + return ret0 } -// WorkflowRunList indicates an expected call of WorkflowRunList -func (mr *MockWorkerInterfaceMockRecorder) WorkflowRunList(projectKey, workflowName, offset, limit interface{}) *gomock.Call { +// WorkflowCachePush indicates an expected call of WorkflowCachePush. +func (mr *MockWorkerInterfaceMockRecorder) WorkflowCachePush(projectKey, integrationName, ref, tarContent, size interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunList", reflect.TypeOf((*MockWorkerInterface)(nil).WorkflowRunList), projectKey, workflowName, offset, limit) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowCachePush", reflect.TypeOf((*MockWorkerInterface)(nil).WorkflowCachePush), projectKey, integrationName, ref, tarContent, size) } -// WorkflowNodeRunArtifactDownload mocks base method +// WorkflowNodeRunArtifactDownload mocks base method. func (m *MockWorkerInterface) WorkflowNodeRunArtifactDownload(projectKey, name string, a sdk.WorkflowNodeRunArtifact, w io.Writer) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowNodeRunArtifactDownload", projectKey, name, a, w) @@ -9655,13 +9626,13 @@ func (m *MockWorkerInterface) WorkflowNodeRunArtifactDownload(projectKey, name s return ret0 } -// WorkflowNodeRunArtifactDownload indicates an expected call of WorkflowNodeRunArtifactDownload +// WorkflowNodeRunArtifactDownload indicates an expected call of WorkflowNodeRunArtifactDownload. func (mr *MockWorkerInterfaceMockRecorder) WorkflowNodeRunArtifactDownload(projectKey, name, a, w interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunArtifactDownload", reflect.TypeOf((*MockWorkerInterface)(nil).WorkflowNodeRunArtifactDownload), projectKey, name, a, w) } -// WorkflowNodeRunRelease mocks base method +// WorkflowNodeRunRelease mocks base method. func (m *MockWorkerInterface) WorkflowNodeRunRelease(projectKey, workflowName string, runNumber, nodeRunID int64, release sdk.WorkflowNodeRunRelease) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowNodeRunRelease", projectKey, workflowName, runNumber, nodeRunID, release) @@ -9669,13 +9640,28 @@ func (m *MockWorkerInterface) WorkflowNodeRunRelease(projectKey, workflowName st return ret0 } -// WorkflowNodeRunRelease indicates an expected call of WorkflowNodeRunRelease +// WorkflowNodeRunRelease indicates an expected call of WorkflowNodeRunRelease. func (mr *MockWorkerInterfaceMockRecorder) WorkflowNodeRunRelease(projectKey, workflowName, runNumber, nodeRunID, release interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowNodeRunRelease", reflect.TypeOf((*MockWorkerInterface)(nil).WorkflowNodeRunRelease), projectKey, workflowName, runNumber, nodeRunID, release) } -// WorkflowRunArtifactsLinks mocks base method +// WorkflowRunArtifacts mocks base method. +func (m *MockWorkerInterface) WorkflowRunArtifacts(projectKey, name string, number int64) ([]sdk.WorkflowNodeRunArtifact, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowRunArtifacts", projectKey, name, number) + ret0, _ := ret[0].([]sdk.WorkflowNodeRunArtifact) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkflowRunArtifacts indicates an expected call of WorkflowRunArtifacts. +func (mr *MockWorkerInterfaceMockRecorder) WorkflowRunArtifacts(projectKey, name, number interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunArtifacts", reflect.TypeOf((*MockWorkerInterface)(nil).WorkflowRunArtifacts), projectKey, name, number) +} + +// WorkflowRunArtifactsLinks mocks base method. func (m *MockWorkerInterface) WorkflowRunArtifactsLinks(projectKey, name string, number int64) (sdk.CDNItemLinks, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowRunArtifactsLinks", projectKey, name, number) @@ -9684,13 +9670,28 @@ func (m *MockWorkerInterface) WorkflowRunArtifactsLinks(projectKey, name string, return ret0, ret1 } -// WorkflowRunArtifactsLinks indicates an expected call of WorkflowRunArtifactsLinks +// WorkflowRunArtifactsLinks indicates an expected call of WorkflowRunArtifactsLinks. func (mr *MockWorkerInterfaceMockRecorder) WorkflowRunArtifactsLinks(projectKey, name, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunArtifactsLinks", reflect.TypeOf((*MockWorkerInterface)(nil).WorkflowRunArtifactsLinks), projectKey, name, number) } -// WorkflowRunResultsList mocks base method +// WorkflowRunList mocks base method. +func (m *MockWorkerInterface) WorkflowRunList(projectKey, workflowName string, offset, limit int64) ([]sdk.WorkflowRun, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WorkflowRunList", projectKey, workflowName, offset, limit) + ret0, _ := ret[0].([]sdk.WorkflowRun) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// WorkflowRunList indicates an expected call of WorkflowRunList. +func (mr *MockWorkerInterfaceMockRecorder) WorkflowRunList(projectKey, workflowName, offset, limit interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunList", reflect.TypeOf((*MockWorkerInterface)(nil).WorkflowRunList), projectKey, workflowName, offset, limit) +} + +// WorkflowRunResultsList mocks base method. func (m *MockWorkerInterface) WorkflowRunResultsList(ctx context.Context, projectKey, name string, number int64) ([]sdk.WorkflowRunResult, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WorkflowRunResultsList", ctx, projectKey, name, number) @@ -9699,76 +9700,56 @@ func (m *MockWorkerInterface) WorkflowRunResultsList(ctx context.Context, projec return ret0, ret1 } -// WorkflowRunResultsList indicates an expected call of WorkflowRunResultsList +// WorkflowRunResultsList indicates an expected call of WorkflowRunResultsList. func (mr *MockWorkerInterfaceMockRecorder) WorkflowRunResultsList(ctx, projectKey, name, number interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowRunResultsList", reflect.TypeOf((*MockWorkerInterface)(nil).WorkflowRunResultsList), ctx, projectKey, name, number) } -// MockRaw is a mock of Raw interface +// MockRaw is a mock of Raw interface. type MockRaw struct { ctrl *gomock.Controller recorder *MockRawMockRecorder } -// MockRawMockRecorder is the mock recorder for MockRaw +// MockRawMockRecorder is the mock recorder for MockRaw. type MockRawMockRecorder struct { mock *MockRaw } -// NewMockRaw creates a new mock instance +// NewMockRaw creates a new mock instance. func NewMockRaw(ctrl *gomock.Controller) *MockRaw { mock := &MockRaw{ctrl: ctrl} mock.recorder = &MockRawMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockRaw) EXPECT() *MockRawMockRecorder { return m.recorder } -// PostJSON mocks base method -func (m *MockRaw) PostJSON(ctx context.Context, path string, in, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { - m.ctrl.T.Helper() - varargs := []interface{}{ctx, path, in, out} - for _, a := range mods { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "PostJSON", varargs...) - ret0, _ := ret[0].(int) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// PostJSON indicates an expected call of PostJSON -func (mr *MockRawMockRecorder) PostJSON(ctx, path, in, out interface{}, mods ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, path, in, out}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostJSON", reflect.TypeOf((*MockRaw)(nil).PostJSON), varargs...) -} - -// PutJSON mocks base method -func (m *MockRaw) PutJSON(ctx context.Context, path string, in, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { +// DeleteJSON mocks base method. +func (m *MockRaw) DeleteJSON(ctx context.Context, path string, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, path, in, out} + varargs := []interface{}{ctx, path, out} for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "PutJSON", varargs...) + ret := m.ctrl.Call(m, "DeleteJSON", varargs...) ret0, _ := ret[0].(int) ret1, _ := ret[1].(error) return ret0, ret1 } -// PutJSON indicates an expected call of PutJSON -func (mr *MockRawMockRecorder) PutJSON(ctx, path, in, out interface{}, mods ...interface{}) *gomock.Call { +// DeleteJSON indicates an expected call of DeleteJSON. +func (mr *MockRawMockRecorder) DeleteJSON(ctx, path, out interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, path, in, out}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutJSON", reflect.TypeOf((*MockRaw)(nil).PutJSON), varargs...) + varargs := append([]interface{}{ctx, path, out}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteJSON", reflect.TypeOf((*MockRaw)(nil).DeleteJSON), varargs...) } -// GetJSON mocks base method +// GetJSON mocks base method. func (m *MockRaw) GetJSON(ctx context.Context, path string, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, path, out} @@ -9781,56 +9762,96 @@ func (m *MockRaw) GetJSON(ctx context.Context, path string, out interface{}, mod return ret0, ret1 } -// GetJSON indicates an expected call of GetJSON +// GetJSON indicates an expected call of GetJSON. func (mr *MockRawMockRecorder) GetJSON(ctx, path, out interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, path, out}, mods...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJSON", reflect.TypeOf((*MockRaw)(nil).GetJSON), varargs...) } -// DeleteJSON mocks base method -func (m *MockRaw) DeleteJSON(ctx context.Context, path string, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { +// HTTPClient mocks base method. +func (m *MockRaw) HTTPClient() *http.Client { m.ctrl.T.Helper() - varargs := []interface{}{ctx, path, out} + ret := m.ctrl.Call(m, "HTTPClient") + ret0, _ := ret[0].(*http.Client) + return ret0 +} + +// HTTPClient indicates an expected call of HTTPClient. +func (mr *MockRawMockRecorder) HTTPClient() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPClient", reflect.TypeOf((*MockRaw)(nil).HTTPClient)) +} + +// HTTPNoTimeoutClient mocks base method. +func (m *MockRaw) HTTPNoTimeoutClient() *http.Client { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "HTTPNoTimeoutClient") + ret0, _ := ret[0].(*http.Client) + return ret0 +} + +// HTTPNoTimeoutClient indicates an expected call of HTTPNoTimeoutClient. +func (mr *MockRawMockRecorder) HTTPNoTimeoutClient() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPNoTimeoutClient", reflect.TypeOf((*MockRaw)(nil).HTTPNoTimeoutClient)) +} + +// HTTPWebsocketClient mocks base method. +func (m *MockRaw) HTTPWebsocketClient() *websocket.Dialer { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "HTTPWebsocketClient") + ret0, _ := ret[0].(*websocket.Dialer) + return ret0 +} + +// HTTPWebsocketClient indicates an expected call of HTTPWebsocketClient. +func (mr *MockRawMockRecorder) HTTPWebsocketClient() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPWebsocketClient", reflect.TypeOf((*MockRaw)(nil).HTTPWebsocketClient)) +} + +// PostJSON mocks base method. +func (m *MockRaw) PostJSON(ctx context.Context, path string, in, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, path, in, out} for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "DeleteJSON", varargs...) + ret := m.ctrl.Call(m, "PostJSON", varargs...) ret0, _ := ret[0].(int) ret1, _ := ret[1].(error) return ret0, ret1 } -// DeleteJSON indicates an expected call of DeleteJSON -func (mr *MockRawMockRecorder) DeleteJSON(ctx, path, out interface{}, mods ...interface{}) *gomock.Call { +// PostJSON indicates an expected call of PostJSON. +func (mr *MockRawMockRecorder) PostJSON(ctx, path, in, out interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, path, out}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteJSON", reflect.TypeOf((*MockRaw)(nil).DeleteJSON), varargs...) + varargs := append([]interface{}{ctx, path, in, out}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostJSON", reflect.TypeOf((*MockRaw)(nil).PostJSON), varargs...) } -// RequestJSON mocks base method -func (m *MockRaw) RequestJSON(ctx context.Context, method, path string, in, out interface{}, mods ...cdsclient.RequestModifier) ([]byte, http.Header, int, error) { +// PutJSON mocks base method. +func (m *MockRaw) PutJSON(ctx context.Context, path string, in, out interface{}, mods ...cdsclient.RequestModifier) (int, error) { m.ctrl.T.Helper() - varargs := []interface{}{ctx, method, path, in, out} + varargs := []interface{}{ctx, path, in, out} for _, a := range mods { varargs = append(varargs, a) } - ret := m.ctrl.Call(m, "RequestJSON", varargs...) - ret0, _ := ret[0].([]byte) - ret1, _ := ret[1].(http.Header) - ret2, _ := ret[2].(int) - ret3, _ := ret[3].(error) - return ret0, ret1, ret2, ret3 + ret := m.ctrl.Call(m, "PutJSON", varargs...) + ret0, _ := ret[0].(int) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// RequestJSON indicates an expected call of RequestJSON -func (mr *MockRawMockRecorder) RequestJSON(ctx, method, path, in, out interface{}, mods ...interface{}) *gomock.Call { +// PutJSON indicates an expected call of PutJSON. +func (mr *MockRawMockRecorder) PutJSON(ctx, path, in, out interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{ctx, method, path, in, out}, mods...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestJSON", reflect.TypeOf((*MockRaw)(nil).RequestJSON), varargs...) + varargs := append([]interface{}{ctx, path, in, out}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutJSON", reflect.TypeOf((*MockRaw)(nil).PutJSON), varargs...) } -// Request mocks base method +// Request mocks base method. func (m *MockRaw) Request(ctx context.Context, method, path string, body io.Reader, mods ...cdsclient.RequestModifier) ([]byte, http.Header, int, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, method, path, body} @@ -9845,109 +9866,59 @@ func (m *MockRaw) Request(ctx context.Context, method, path string, body io.Read return ret0, ret1, ret2, ret3 } -// Request indicates an expected call of Request +// Request indicates an expected call of Request. func (mr *MockRawMockRecorder) Request(ctx, method, path, body interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, method, path, body}, mods...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Request", reflect.TypeOf((*MockRaw)(nil).Request), varargs...) } -// HTTPClient mocks base method -func (m *MockRaw) HTTPClient() *http.Client { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "HTTPClient") - ret0, _ := ret[0].(*http.Client) - return ret0 -} - -// HTTPClient indicates an expected call of HTTPClient -func (mr *MockRawMockRecorder) HTTPClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPClient", reflect.TypeOf((*MockRaw)(nil).HTTPClient)) -} - -// HTTPNoTimeoutClient mocks base method -func (m *MockRaw) HTTPNoTimeoutClient() *http.Client { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "HTTPNoTimeoutClient") - ret0, _ := ret[0].(*http.Client) - return ret0 -} - -// HTTPNoTimeoutClient indicates an expected call of HTTPNoTimeoutClient -func (mr *MockRawMockRecorder) HTTPNoTimeoutClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPNoTimeoutClient", reflect.TypeOf((*MockRaw)(nil).HTTPNoTimeoutClient)) -} - -// HTTPWebsocketClient mocks base method -func (m *MockRaw) HTTPWebsocketClient() *websocket.Dialer { +// RequestJSON mocks base method. +func (m *MockRaw) RequestJSON(ctx context.Context, method, path string, in, out interface{}, mods ...cdsclient.RequestModifier) ([]byte, http.Header, int, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "HTTPWebsocketClient") - ret0, _ := ret[0].(*websocket.Dialer) - return ret0 + varargs := []interface{}{ctx, method, path, in, out} + for _, a := range mods { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RequestJSON", varargs...) + ret0, _ := ret[0].([]byte) + ret1, _ := ret[1].(http.Header) + ret2, _ := ret[2].(int) + ret3, _ := ret[3].(error) + return ret0, ret1, ret2, ret3 } -// HTTPWebsocketClient indicates an expected call of HTTPWebsocketClient -func (mr *MockRawMockRecorder) HTTPWebsocketClient() *gomock.Call { +// RequestJSON indicates an expected call of RequestJSON. +func (mr *MockRawMockRecorder) RequestJSON(ctx, method, path, in, out interface{}, mods ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPWebsocketClient", reflect.TypeOf((*MockRaw)(nil).HTTPWebsocketClient)) + varargs := append([]interface{}{ctx, method, path, in, out}, mods...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestJSON", reflect.TypeOf((*MockRaw)(nil).RequestJSON), varargs...) } -// MockGRPCPluginsClient is a mock of GRPCPluginsClient interface +// MockGRPCPluginsClient is a mock of GRPCPluginsClient interface. type MockGRPCPluginsClient struct { ctrl *gomock.Controller recorder *MockGRPCPluginsClientMockRecorder } -// MockGRPCPluginsClientMockRecorder is the mock recorder for MockGRPCPluginsClient +// MockGRPCPluginsClientMockRecorder is the mock recorder for MockGRPCPluginsClient. type MockGRPCPluginsClientMockRecorder struct { mock *MockGRPCPluginsClient } -// NewMockGRPCPluginsClient creates a new mock instance +// NewMockGRPCPluginsClient creates a new mock instance. func NewMockGRPCPluginsClient(ctrl *gomock.Controller) *MockGRPCPluginsClient { mock := &MockGRPCPluginsClient{ctrl: ctrl} mock.recorder = &MockGRPCPluginsClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockGRPCPluginsClient) EXPECT() *MockGRPCPluginsClientMockRecorder { return m.recorder } -// PluginsList mocks base method -func (m *MockGRPCPluginsClient) PluginsList() ([]sdk.GRPCPlugin, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginsList") - ret0, _ := ret[0].([]sdk.GRPCPlugin) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// PluginsList indicates an expected call of PluginsList -func (mr *MockGRPCPluginsClientMockRecorder) PluginsList() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginsList", reflect.TypeOf((*MockGRPCPluginsClient)(nil).PluginsList)) -} - -// PluginsGet mocks base method -func (m *MockGRPCPluginsClient) PluginsGet(arg0 string) (*sdk.GRPCPlugin, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginsGet", arg0) - ret0, _ := ret[0].(*sdk.GRPCPlugin) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// PluginsGet indicates an expected call of PluginsGet -func (mr *MockGRPCPluginsClientMockRecorder) PluginsGet(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginsGet", reflect.TypeOf((*MockGRPCPluginsClient)(nil).PluginsGet), arg0) -} - -// PluginAdd mocks base method +// PluginAdd mocks base method. func (m *MockGRPCPluginsClient) PluginAdd(arg0 *sdk.GRPCPlugin) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PluginAdd", arg0) @@ -9955,27 +9926,27 @@ func (m *MockGRPCPluginsClient) PluginAdd(arg0 *sdk.GRPCPlugin) error { return ret0 } -// PluginAdd indicates an expected call of PluginAdd +// PluginAdd indicates an expected call of PluginAdd. func (mr *MockGRPCPluginsClientMockRecorder) PluginAdd(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginAdd", reflect.TypeOf((*MockGRPCPluginsClient)(nil).PluginAdd), arg0) } -// PluginUpdate mocks base method -func (m *MockGRPCPluginsClient) PluginUpdate(arg0 *sdk.GRPCPlugin) error { +// PluginAddBinary mocks base method. +func (m *MockGRPCPluginsClient) PluginAddBinary(arg0 *sdk.GRPCPlugin, arg1 *sdk.GRPCPluginBinary) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginUpdate", arg0) + ret := m.ctrl.Call(m, "PluginAddBinary", arg0, arg1) ret0, _ := ret[0].(error) return ret0 } -// PluginUpdate indicates an expected call of PluginUpdate -func (mr *MockGRPCPluginsClientMockRecorder) PluginUpdate(arg0 interface{}) *gomock.Call { +// PluginAddBinary indicates an expected call of PluginAddBinary. +func (mr *MockGRPCPluginsClientMockRecorder) PluginAddBinary(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginUpdate", reflect.TypeOf((*MockGRPCPluginsClient)(nil).PluginUpdate), arg0) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginAddBinary", reflect.TypeOf((*MockGRPCPluginsClient)(nil).PluginAddBinary), arg0, arg1) } -// PluginDelete mocks base method +// PluginDelete mocks base method. func (m *MockGRPCPluginsClient) PluginDelete(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PluginDelete", arg0) @@ -9983,27 +9954,13 @@ func (m *MockGRPCPluginsClient) PluginDelete(arg0 string) error { return ret0 } -// PluginDelete indicates an expected call of PluginDelete +// PluginDelete indicates an expected call of PluginDelete. func (mr *MockGRPCPluginsClientMockRecorder) PluginDelete(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginDelete", reflect.TypeOf((*MockGRPCPluginsClient)(nil).PluginDelete), arg0) } -// PluginAddBinary mocks base method -func (m *MockGRPCPluginsClient) PluginAddBinary(arg0 *sdk.GRPCPlugin, arg1 *sdk.GRPCPluginBinary) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PluginAddBinary", arg0, arg1) - ret0, _ := ret[0].(error) - return ret0 -} - -// PluginAddBinary indicates an expected call of PluginAddBinary -func (mr *MockGRPCPluginsClientMockRecorder) PluginAddBinary(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginAddBinary", reflect.TypeOf((*MockGRPCPluginsClient)(nil).PluginAddBinary), arg0, arg1) -} - -// PluginDeleteBinary mocks base method +// PluginDeleteBinary mocks base method. func (m *MockGRPCPluginsClient) PluginDeleteBinary(name, os, arch string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PluginDeleteBinary", name, os, arch) @@ -10011,13 +9968,13 @@ func (m *MockGRPCPluginsClient) PluginDeleteBinary(name, os, arch string) error return ret0 } -// PluginDeleteBinary indicates an expected call of PluginDeleteBinary +// PluginDeleteBinary indicates an expected call of PluginDeleteBinary. func (mr *MockGRPCPluginsClientMockRecorder) PluginDeleteBinary(name, os, arch interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginDeleteBinary", reflect.TypeOf((*MockGRPCPluginsClient)(nil).PluginDeleteBinary), name, os, arch) } -// PluginGetBinary mocks base method +// PluginGetBinary mocks base method. func (m *MockGRPCPluginsClient) PluginGetBinary(name, os, arch string, w io.Writer) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PluginGetBinary", name, os, arch, w) @@ -10025,13 +9982,13 @@ func (m *MockGRPCPluginsClient) PluginGetBinary(name, os, arch string, w io.Writ return ret0 } -// PluginGetBinary indicates an expected call of PluginGetBinary +// PluginGetBinary indicates an expected call of PluginGetBinary. func (mr *MockGRPCPluginsClientMockRecorder) PluginGetBinary(name, os, arch, w interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginGetBinary", reflect.TypeOf((*MockGRPCPluginsClient)(nil).PluginGetBinary), name, os, arch, w) } -// PluginGetBinaryInfos mocks base method +// PluginGetBinaryInfos mocks base method. func (m *MockGRPCPluginsClient) PluginGetBinaryInfos(name, os, arch string) (*sdk.GRPCPluginBinary, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PluginGetBinaryInfos", name, os, arch) @@ -10040,56 +9997,80 @@ func (m *MockGRPCPluginsClient) PluginGetBinaryInfos(name, os, arch string) (*sd return ret0, ret1 } -// PluginGetBinaryInfos indicates an expected call of PluginGetBinaryInfos +// PluginGetBinaryInfos indicates an expected call of PluginGetBinaryInfos. func (mr *MockGRPCPluginsClientMockRecorder) PluginGetBinaryInfos(name, os, arch interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginGetBinaryInfos", reflect.TypeOf((*MockGRPCPluginsClient)(nil).PluginGetBinaryInfos), name, os, arch) } -// MockProviderClient is a mock of ProviderClient interface +// PluginUpdate mocks base method. +func (m *MockGRPCPluginsClient) PluginUpdate(arg0 *sdk.GRPCPlugin) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PluginUpdate", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// PluginUpdate indicates an expected call of PluginUpdate. +func (mr *MockGRPCPluginsClientMockRecorder) PluginUpdate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginUpdate", reflect.TypeOf((*MockGRPCPluginsClient)(nil).PluginUpdate), arg0) +} + +// PluginsGet mocks base method. +func (m *MockGRPCPluginsClient) PluginsGet(arg0 string) (*sdk.GRPCPlugin, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PluginsGet", arg0) + ret0, _ := ret[0].(*sdk.GRPCPlugin) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PluginsGet indicates an expected call of PluginsGet. +func (mr *MockGRPCPluginsClientMockRecorder) PluginsGet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginsGet", reflect.TypeOf((*MockGRPCPluginsClient)(nil).PluginsGet), arg0) +} + +// PluginsList mocks base method. +func (m *MockGRPCPluginsClient) PluginsList() ([]sdk.GRPCPlugin, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PluginsList") + ret0, _ := ret[0].([]sdk.GRPCPlugin) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PluginsList indicates an expected call of PluginsList. +func (mr *MockGRPCPluginsClientMockRecorder) PluginsList() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginsList", reflect.TypeOf((*MockGRPCPluginsClient)(nil).PluginsList)) +} + +// MockProviderClient is a mock of ProviderClient interface. type MockProviderClient struct { ctrl *gomock.Controller recorder *MockProviderClientMockRecorder } -// MockProviderClientMockRecorder is the mock recorder for MockProviderClient +// MockProviderClientMockRecorder is the mock recorder for MockProviderClient. type MockProviderClientMockRecorder struct { mock *MockProviderClient } -// NewMockProviderClient creates a new mock instance +// NewMockProviderClient creates a new mock instance. func NewMockProviderClient(ctrl *gomock.Controller) *MockProviderClient { mock := &MockProviderClient{ctrl: ctrl} mock.recorder = &MockProviderClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockProviderClient) EXPECT() *MockProviderClientMockRecorder { return m.recorder } -// ApplicationsList mocks base method -func (m *MockProviderClient) ApplicationsList(projectKey string, opts ...cdsclient.RequestModifier) ([]sdk.Application, error) { - m.ctrl.T.Helper() - varargs := []interface{}{projectKey} - for _, a := range opts { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "ApplicationsList", varargs...) - ret0, _ := ret[0].([]sdk.Application) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplicationsList indicates an expected call of ApplicationsList -func (mr *MockProviderClientMockRecorder) ApplicationsList(projectKey interface{}, opts ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{projectKey}, opts...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationsList", reflect.TypeOf((*MockProviderClient)(nil).ApplicationsList), varargs...) -} - -// ApplicationDeploymentStrategyUpdate mocks base method +// ApplicationDeploymentStrategyUpdate mocks base method. func (m *MockProviderClient) ApplicationDeploymentStrategyUpdate(projectKey, applicationName, integrationName string, config sdk.IntegrationConfig) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationDeploymentStrategyUpdate", projectKey, applicationName, integrationName, config) @@ -10097,13 +10078,13 @@ func (m *MockProviderClient) ApplicationDeploymentStrategyUpdate(projectKey, app return ret0 } -// ApplicationDeploymentStrategyUpdate indicates an expected call of ApplicationDeploymentStrategyUpdate +// ApplicationDeploymentStrategyUpdate indicates an expected call of ApplicationDeploymentStrategyUpdate. func (mr *MockProviderClientMockRecorder) ApplicationDeploymentStrategyUpdate(projectKey, applicationName, integrationName, config interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationDeploymentStrategyUpdate", reflect.TypeOf((*MockProviderClient)(nil).ApplicationDeploymentStrategyUpdate), projectKey, applicationName, integrationName, config) } -// ApplicationMetadataUpdate mocks base method +// ApplicationMetadataUpdate mocks base method. func (m *MockProviderClient) ApplicationMetadataUpdate(projectKey, applicationName, key, value string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ApplicationMetadataUpdate", projectKey, applicationName, key, value) @@ -10111,13 +10092,33 @@ func (m *MockProviderClient) ApplicationMetadataUpdate(projectKey, applicationNa return ret0 } -// ApplicationMetadataUpdate indicates an expected call of ApplicationMetadataUpdate +// ApplicationMetadataUpdate indicates an expected call of ApplicationMetadataUpdate. func (mr *MockProviderClientMockRecorder) ApplicationMetadataUpdate(projectKey, applicationName, key, value interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationMetadataUpdate", reflect.TypeOf((*MockProviderClient)(nil).ApplicationMetadataUpdate), projectKey, applicationName, key, value) } -// ProjectsList mocks base method +// ApplicationsList mocks base method. +func (m *MockProviderClient) ApplicationsList(projectKey string, opts ...cdsclient.RequestModifier) ([]sdk.Application, error) { + m.ctrl.T.Helper() + varargs := []interface{}{projectKey} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ApplicationsList", varargs...) + ret0, _ := ret[0].([]sdk.Application) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ApplicationsList indicates an expected call of ApplicationsList. +func (mr *MockProviderClientMockRecorder) ApplicationsList(projectKey interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{projectKey}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationsList", reflect.TypeOf((*MockProviderClient)(nil).ApplicationsList), varargs...) +} + +// ProjectsList mocks base method. func (m *MockProviderClient) ProjectsList(opts ...cdsclient.RequestModifier) ([]sdk.Project, error) { m.ctrl.T.Helper() varargs := []interface{}{} @@ -10130,96 +10131,110 @@ func (m *MockProviderClient) ProjectsList(opts ...cdsclient.RequestModifier) ([] return ret0, ret1 } -// ProjectsList indicates an expected call of ProjectsList +// ProjectsList indicates an expected call of ProjectsList. func (mr *MockProviderClientMockRecorder) ProjectsList(opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjectsList", reflect.TypeOf((*MockProviderClient)(nil).ProjectsList), opts...) } -// WorkflowsList mocks base method -func (m *MockProviderClient) WorkflowsList(projectKey string) ([]sdk.Workflow, error) { +// WorkflowLoad mocks base method. +func (m *MockProviderClient) WorkflowLoad(projectKey, workflowName string) (*sdk.Workflow, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowsList", projectKey) - ret0, _ := ret[0].([]sdk.Workflow) + ret := m.ctrl.Call(m, "WorkflowLoad", projectKey, workflowName) + ret0, _ := ret[0].(*sdk.Workflow) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowsList indicates an expected call of WorkflowsList -func (mr *MockProviderClientMockRecorder) WorkflowsList(projectKey interface{}) *gomock.Call { +// WorkflowLoad indicates an expected call of WorkflowLoad. +func (mr *MockProviderClientMockRecorder) WorkflowLoad(projectKey, workflowName interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowsList", reflect.TypeOf((*MockProviderClient)(nil).WorkflowsList), projectKey) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowLoad", reflect.TypeOf((*MockProviderClient)(nil).WorkflowLoad), projectKey, workflowName) } -// WorkflowLoad mocks base method -func (m *MockProviderClient) WorkflowLoad(projectKey, workflowName string) (*sdk.Workflow, error) { +// WorkflowsList mocks base method. +func (m *MockProviderClient) WorkflowsList(projectKey string) ([]sdk.Workflow, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WorkflowLoad", projectKey, workflowName) - ret0, _ := ret[0].(*sdk.Workflow) + ret := m.ctrl.Call(m, "WorkflowsList", projectKey) + ret0, _ := ret[0].([]sdk.Workflow) ret1, _ := ret[1].(error) return ret0, ret1 } -// WorkflowLoad indicates an expected call of WorkflowLoad -func (mr *MockProviderClientMockRecorder) WorkflowLoad(projectKey, workflowName interface{}) *gomock.Call { +// WorkflowsList indicates an expected call of WorkflowsList. +func (mr *MockProviderClientMockRecorder) WorkflowsList(projectKey interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowLoad", reflect.TypeOf((*MockProviderClient)(nil).WorkflowLoad), projectKey, workflowName) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkflowsList", reflect.TypeOf((*MockProviderClient)(nil).WorkflowsList), projectKey) } -// MockAuthClient is a mock of AuthClient interface +// MockAuthClient is a mock of AuthClient interface. type MockAuthClient struct { ctrl *gomock.Controller recorder *MockAuthClientMockRecorder } -// MockAuthClientMockRecorder is the mock recorder for MockAuthClient +// MockAuthClientMockRecorder is the mock recorder for MockAuthClient. type MockAuthClientMockRecorder struct { mock *MockAuthClient } -// NewMockAuthClient creates a new mock instance +// NewMockAuthClient creates a new mock instance. func NewMockAuthClient(ctrl *gomock.Controller) *MockAuthClient { mock := &MockAuthClient{ctrl: ctrl} mock.recorder = &MockAuthClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockAuthClient) EXPECT() *MockAuthClientMockRecorder { return m.recorder } -// AuthDriverList mocks base method -func (m *MockAuthClient) AuthDriverList() (sdk.AuthDriverResponse, error) { +// AuthConsumerCreateForUser mocks base method. +func (m *MockAuthClient) AuthConsumerCreateForUser(username string, request sdk.AuthConsumer) (sdk.AuthConsumerCreateResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthDriverList") - ret0, _ := ret[0].(sdk.AuthDriverResponse) + ret := m.ctrl.Call(m, "AuthConsumerCreateForUser", username, request) + ret0, _ := ret[0].(sdk.AuthConsumerCreateResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthDriverList indicates an expected call of AuthDriverList -func (mr *MockAuthClientMockRecorder) AuthDriverList() *gomock.Call { +// AuthConsumerCreateForUser indicates an expected call of AuthConsumerCreateForUser. +func (mr *MockAuthClientMockRecorder) AuthConsumerCreateForUser(username, request interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthDriverList", reflect.TypeOf((*MockAuthClient)(nil).AuthDriverList)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerCreateForUser", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerCreateForUser), username, request) } -// AuthConsumerSignin mocks base method -func (m *MockAuthClient) AuthConsumerSignin(arg0 sdk.AuthConsumerType, arg1 sdk.AuthConsumerSigninRequest) (sdk.AuthConsumerSigninResponse, error) { +// AuthConsumerDelete mocks base method. +func (m *MockAuthClient) AuthConsumerDelete(username, id string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerSignin", arg0, arg1) - ret0, _ := ret[0].(sdk.AuthConsumerSigninResponse) + ret := m.ctrl.Call(m, "AuthConsumerDelete", username, id) + ret0, _ := ret[0].(error) + return ret0 +} + +// AuthConsumerDelete indicates an expected call of AuthConsumerDelete. +func (mr *MockAuthClientMockRecorder) AuthConsumerDelete(username, id interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerDelete", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerDelete), username, id) +} + +// AuthConsumerListByUser mocks base method. +func (m *MockAuthClient) AuthConsumerListByUser(username string) (sdk.AuthConsumers, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AuthConsumerListByUser", username) + ret0, _ := ret[0].(sdk.AuthConsumers) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthConsumerSignin indicates an expected call of AuthConsumerSignin -func (mr *MockAuthClientMockRecorder) AuthConsumerSignin(arg0, arg1 interface{}) *gomock.Call { +// AuthConsumerListByUser indicates an expected call of AuthConsumerListByUser. +func (mr *MockAuthClientMockRecorder) AuthConsumerListByUser(username interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerSignin", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerSignin), arg0, arg1) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerListByUser", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerListByUser), username) } -// AuthConsumerLocalAskResetPassword mocks base method +// AuthConsumerLocalAskResetPassword mocks base method. func (m *MockAuthClient) AuthConsumerLocalAskResetPassword(arg0 sdk.AuthConsumerSigninRequest) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AuthConsumerLocalAskResetPassword", arg0) @@ -10227,13 +10242,13 @@ func (m *MockAuthClient) AuthConsumerLocalAskResetPassword(arg0 sdk.AuthConsumer return ret0 } -// AuthConsumerLocalAskResetPassword indicates an expected call of AuthConsumerLocalAskResetPassword +// AuthConsumerLocalAskResetPassword indicates an expected call of AuthConsumerLocalAskResetPassword. func (mr *MockAuthClientMockRecorder) AuthConsumerLocalAskResetPassword(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerLocalAskResetPassword", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerLocalAskResetPassword), arg0) } -// AuthConsumerLocalResetPassword mocks base method +// AuthConsumerLocalResetPassword mocks base method. func (m *MockAuthClient) AuthConsumerLocalResetPassword(token, newPassword string) (sdk.AuthConsumerSigninResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AuthConsumerLocalResetPassword", token, newPassword) @@ -10242,13 +10257,13 @@ func (m *MockAuthClient) AuthConsumerLocalResetPassword(token, newPassword strin return ret0, ret1 } -// AuthConsumerLocalResetPassword indicates an expected call of AuthConsumerLocalResetPassword +// AuthConsumerLocalResetPassword indicates an expected call of AuthConsumerLocalResetPassword. func (mr *MockAuthClientMockRecorder) AuthConsumerLocalResetPassword(token, newPassword interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerLocalResetPassword", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerLocalResetPassword), token, newPassword) } -// AuthConsumerLocalSignup mocks base method +// AuthConsumerLocalSignup mocks base method. func (m *MockAuthClient) AuthConsumerLocalSignup(arg0 sdk.AuthConsumerSigninRequest) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AuthConsumerLocalSignup", arg0) @@ -10256,13 +10271,13 @@ func (m *MockAuthClient) AuthConsumerLocalSignup(arg0 sdk.AuthConsumerSigninRequ return ret0 } -// AuthConsumerLocalSignup indicates an expected call of AuthConsumerLocalSignup +// AuthConsumerLocalSignup indicates an expected call of AuthConsumerLocalSignup. func (mr *MockAuthClientMockRecorder) AuthConsumerLocalSignup(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerLocalSignup", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerLocalSignup), arg0) } -// AuthConsumerLocalSignupVerify mocks base method +// AuthConsumerLocalSignupVerify mocks base method. func (m *MockAuthClient) AuthConsumerLocalSignupVerify(token, initToken string) (sdk.AuthConsumerSigninResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AuthConsumerLocalSignupVerify", token, initToken) @@ -10271,101 +10286,87 @@ func (m *MockAuthClient) AuthConsumerLocalSignupVerify(token, initToken string) return ret0, ret1 } -// AuthConsumerLocalSignupVerify indicates an expected call of AuthConsumerLocalSignupVerify +// AuthConsumerLocalSignupVerify indicates an expected call of AuthConsumerLocalSignupVerify. func (mr *MockAuthClientMockRecorder) AuthConsumerLocalSignupVerify(token, initToken interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerLocalSignupVerify", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerLocalSignupVerify), token, initToken) } -// AuthConsumerSignout mocks base method -func (m *MockAuthClient) AuthConsumerSignout() error { +// AuthConsumerRegen mocks base method. +func (m *MockAuthClient) AuthConsumerRegen(username, id string) (sdk.AuthConsumerCreateResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerSignout") - ret0, _ := ret[0].(error) - return ret0 + ret := m.ctrl.Call(m, "AuthConsumerRegen", username, id) + ret0, _ := ret[0].(sdk.AuthConsumerCreateResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// AuthConsumerSignout indicates an expected call of AuthConsumerSignout -func (mr *MockAuthClientMockRecorder) AuthConsumerSignout() *gomock.Call { +// AuthConsumerRegen indicates an expected call of AuthConsumerRegen. +func (mr *MockAuthClientMockRecorder) AuthConsumerRegen(username, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerSignout", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerSignout)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerRegen", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerRegen), username, id) } -// AuthConsumerListByUser mocks base method -func (m *MockAuthClient) AuthConsumerListByUser(username string) (sdk.AuthConsumers, error) { +// AuthConsumerSignin mocks base method. +func (m *MockAuthClient) AuthConsumerSignin(arg0 sdk.AuthConsumerType, arg1 sdk.AuthConsumerSigninRequest) (sdk.AuthConsumerSigninResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerListByUser", username) - ret0, _ := ret[0].(sdk.AuthConsumers) + ret := m.ctrl.Call(m, "AuthConsumerSignin", arg0, arg1) + ret0, _ := ret[0].(sdk.AuthConsumerSigninResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthConsumerListByUser indicates an expected call of AuthConsumerListByUser -func (mr *MockAuthClientMockRecorder) AuthConsumerListByUser(username interface{}) *gomock.Call { +// AuthConsumerSignin indicates an expected call of AuthConsumerSignin. +func (mr *MockAuthClientMockRecorder) AuthConsumerSignin(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerListByUser", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerListByUser), username) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerSignin", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerSignin), arg0, arg1) } -// AuthConsumerDelete mocks base method -func (m *MockAuthClient) AuthConsumerDelete(username, id string) error { +// AuthConsumerSignout mocks base method. +func (m *MockAuthClient) AuthConsumerSignout() error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerDelete", username, id) + ret := m.ctrl.Call(m, "AuthConsumerSignout") ret0, _ := ret[0].(error) return ret0 } -// AuthConsumerDelete indicates an expected call of AuthConsumerDelete -func (mr *MockAuthClientMockRecorder) AuthConsumerDelete(username, id interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerDelete", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerDelete), username, id) -} - -// AuthConsumerRegen mocks base method -func (m *MockAuthClient) AuthConsumerRegen(username, id string) (sdk.AuthConsumerCreateResponse, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerRegen", username, id) - ret0, _ := ret[0].(sdk.AuthConsumerCreateResponse) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// AuthConsumerRegen indicates an expected call of AuthConsumerRegen -func (mr *MockAuthClientMockRecorder) AuthConsumerRegen(username, id interface{}) *gomock.Call { +// AuthConsumerSignout indicates an expected call of AuthConsumerSignout. +func (mr *MockAuthClientMockRecorder) AuthConsumerSignout() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerRegen", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerRegen), username, id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerSignout", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerSignout)) } -// AuthConsumerCreateForUser mocks base method -func (m *MockAuthClient) AuthConsumerCreateForUser(username string, request sdk.AuthConsumer) (sdk.AuthConsumerCreateResponse, error) { +// AuthDriverList mocks base method. +func (m *MockAuthClient) AuthDriverList() (sdk.AuthDriverResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthConsumerCreateForUser", username, request) - ret0, _ := ret[0].(sdk.AuthConsumerCreateResponse) + ret := m.ctrl.Call(m, "AuthDriverList") + ret0, _ := ret[0].(sdk.AuthDriverResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthConsumerCreateForUser indicates an expected call of AuthConsumerCreateForUser -func (mr *MockAuthClientMockRecorder) AuthConsumerCreateForUser(username, request interface{}) *gomock.Call { +// AuthDriverList indicates an expected call of AuthDriverList. +func (mr *MockAuthClientMockRecorder) AuthDriverList() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthConsumerCreateForUser", reflect.TypeOf((*MockAuthClient)(nil).AuthConsumerCreateForUser), username, request) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthDriverList", reflect.TypeOf((*MockAuthClient)(nil).AuthDriverList)) } -// AuthSessionListByUser mocks base method -func (m *MockAuthClient) AuthSessionListByUser(username string) (sdk.AuthSessions, error) { +// AuthMe mocks base method. +func (m *MockAuthClient) AuthMe() (sdk.AuthCurrentConsumerResponse, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthSessionListByUser", username) - ret0, _ := ret[0].(sdk.AuthSessions) + ret := m.ctrl.Call(m, "AuthMe") + ret0, _ := ret[0].(sdk.AuthCurrentConsumerResponse) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthSessionListByUser indicates an expected call of AuthSessionListByUser -func (mr *MockAuthClientMockRecorder) AuthSessionListByUser(username interface{}) *gomock.Call { +// AuthMe indicates an expected call of AuthMe. +func (mr *MockAuthClientMockRecorder) AuthMe() *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthSessionListByUser", reflect.TypeOf((*MockAuthClient)(nil).AuthSessionListByUser), username) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthMe", reflect.TypeOf((*MockAuthClient)(nil).AuthMe)) } -// AuthSessionDelete mocks base method +// AuthSessionDelete mocks base method. func (m *MockAuthClient) AuthSessionDelete(username, id string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AuthSessionDelete", username, id) @@ -10373,13 +10374,13 @@ func (m *MockAuthClient) AuthSessionDelete(username, id string) error { return ret0 } -// AuthSessionDelete indicates an expected call of AuthSessionDelete +// AuthSessionDelete indicates an expected call of AuthSessionDelete. func (mr *MockAuthClientMockRecorder) AuthSessionDelete(username, id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthSessionDelete", reflect.TypeOf((*MockAuthClient)(nil).AuthSessionDelete), username, id) } -// AuthSessionGet mocks base method +// AuthSessionGet mocks base method. func (m *MockAuthClient) AuthSessionGet(id string) (sdk.AuthCurrentConsumerResponse, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "AuthSessionGet", id) @@ -10388,51 +10389,51 @@ func (m *MockAuthClient) AuthSessionGet(id string) (sdk.AuthCurrentConsumerRespo return ret0, ret1 } -// AuthSessionGet indicates an expected call of AuthSessionGet +// AuthSessionGet indicates an expected call of AuthSessionGet. func (mr *MockAuthClientMockRecorder) AuthSessionGet(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthSessionGet", reflect.TypeOf((*MockAuthClient)(nil).AuthSessionGet), id) } -// AuthMe mocks base method -func (m *MockAuthClient) AuthMe() (sdk.AuthCurrentConsumerResponse, error) { +// AuthSessionListByUser mocks base method. +func (m *MockAuthClient) AuthSessionListByUser(username string) (sdk.AuthSessions, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthMe") - ret0, _ := ret[0].(sdk.AuthCurrentConsumerResponse) + ret := m.ctrl.Call(m, "AuthSessionListByUser", username) + ret0, _ := ret[0].(sdk.AuthSessions) ret1, _ := ret[1].(error) return ret0, ret1 } -// AuthMe indicates an expected call of AuthMe -func (mr *MockAuthClientMockRecorder) AuthMe() *gomock.Call { +// AuthSessionListByUser indicates an expected call of AuthSessionListByUser. +func (mr *MockAuthClientMockRecorder) AuthSessionListByUser(username interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthMe", reflect.TypeOf((*MockAuthClient)(nil).AuthMe)) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthSessionListByUser", reflect.TypeOf((*MockAuthClient)(nil).AuthSessionListByUser), username) } -// MockWebsocketClient is a mock of WebsocketClient interface +// MockWebsocketClient is a mock of WebsocketClient interface. type MockWebsocketClient struct { ctrl *gomock.Controller recorder *MockWebsocketClientMockRecorder } -// MockWebsocketClientMockRecorder is the mock recorder for MockWebsocketClient +// MockWebsocketClientMockRecorder is the mock recorder for MockWebsocketClient. type MockWebsocketClientMockRecorder struct { mock *MockWebsocketClient } -// NewMockWebsocketClient creates a new mock instance +// NewMockWebsocketClient creates a new mock instance. func NewMockWebsocketClient(ctrl *gomock.Controller) *MockWebsocketClient { mock := &MockWebsocketClient{ctrl: ctrl} mock.recorder = &MockWebsocketClientMockRecorder{mock} return mock } -// EXPECT returns an object that allows the caller to indicate expected use +// EXPECT returns an object that allows the caller to indicate expected use. func (m *MockWebsocketClient) EXPECT() *MockWebsocketClientMockRecorder { return m.recorder } -// RequestWebsocket mocks base method +// RequestWebsocket mocks base method. func (m *MockWebsocketClient) RequestWebsocket(ctx context.Context, goRoutines *sdk.GoRoutines, path string, msgToSend <-chan json.RawMessage, msgReceived chan<- json.RawMessage, errorReceived chan<- error) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RequestWebsocket", ctx, goRoutines, path, msgToSend, msgReceived, errorReceived) @@ -10440,7 +10441,7 @@ func (m *MockWebsocketClient) RequestWebsocket(ctx context.Context, goRoutines * return ret0 } -// RequestWebsocket indicates an expected call of RequestWebsocket +// RequestWebsocket indicates an expected call of RequestWebsocket. func (mr *MockWebsocketClientMockRecorder) RequestWebsocket(ctx, goRoutines, path, msgToSend, msgReceived, errorReceived interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestWebsocket", reflect.TypeOf((*MockWebsocketClient)(nil).RequestWebsocket), ctx, goRoutines, path, msgToSend, msgReceived, errorReceived) diff --git a/sdk/exportentities/v2/workflow.go b/sdk/exportentities/v2/workflow.go index e26873134a..bc640ea322 100644 --- a/sdk/exportentities/v2/workflow.go +++ b/sdk/exportentities/v2/workflow.go @@ -13,6 +13,16 @@ import ( "github.com/ovh/cds/sdk" ) +const ( + IntegrationArtifactManager = "artifact_manager" +) + +// VariableValue is a struct to export a value of Variable +type VariableValue struct { + Type string `json:"type,omitempty" yaml:"type,omitempty"` + Value string `json:"value,omitempty" yaml:"value,omitempty"` +} + // Workflow is the "as code" representation of a sdk.Workflow type Workflow struct { Name string `json:"name" yaml:"name" jsonschema_description:"The name of the workflow."` @@ -23,12 +33,19 @@ type Workflow struct { Hooks map[string][]HookEntry `json:"hooks,omitempty" yaml:"hooks,omitempty" jsonschema_description:"Workflow hooks list."` // extra workflow data - Permissions map[string]int `json:"permissions,omitempty" yaml:"permissions,omitempty" jsonschema_description:"The permissions for the workflow (ex: myGroup: 7).\nhttps://ovh.github.io/cds/docs/concepts/permissions"` - Metadata map[string]string `json:"metadata,omitempty" yaml:"metadata,omitempty"` - PurgeTags []string `json:"purge_tags,omitempty" yaml:"purge_tags,omitempty"` - RetentionPolicy *string `json:"retention_policy,omitempty" yaml:"retention_policy,omitempty"` - Notifications []NotificationEntry `json:"notifications,omitempty" yaml:"notifications,omitempty"` // This is used when the workflow have only one pipeline - HistoryLength *int64 `json:"history_length,omitempty" yaml:"history_length,omitempty"` + Permissions map[string]int `json:"permissions,omitempty" yaml:"permissions,omitempty" jsonschema_description:"The permissions for the workflow (ex: myGroup: 7).\nhttps://ovh.github.io/cds/docs/concepts/permissions"` + Metadata map[string]string `json:"metadata,omitempty" yaml:"metadata,omitempty"` + PurgeTags []string `json:"purge_tags,omitempty" yaml:"purge_tags,omitempty"` + RetentionPolicy *string `json:"retention_policy,omitempty" yaml:"retention_policy,omitempty"` + Notifications []NotificationEntry `json:"notifications,omitempty" yaml:"notifications,omitempty"` // This is used when the workflow have only one pipeline + HistoryLength *int64 `json:"history_length,omitempty" yaml:"history_length,omitempty"` + WorkflowProjectIntegration map[string]WorkflowProjectIntegrationEntry `json:"integrations,omitempty" yaml:"integrations,omitempty"` +} + +// WorkflowProjectIntegrationEntry represents a integration linked to the workflow +type WorkflowProjectIntegrationEntry struct { + IntegrationType string `json:"type,omitempty" yaml:"type,omitempty" jsonschema_description:"Type of integration"` + Config map[string]VariableValue `json:"config,omitempty" yaml:"config,omitempty" jsonschema_description:"Configuration of the linked integration"` } // NodeEntry represents a node as code @@ -115,6 +132,26 @@ func NewWorkflow(ctx context.Context, w sdk.Workflow, version string, opts ...Ex } } + if len(w.Integrations) > 0 { + exportedWorkflow.WorkflowProjectIntegration = make(map[string]WorkflowProjectIntegrationEntry) + for _, integ := range w.Integrations { + if !integ.ProjectIntegration.Model.ArtifactManager { + continue + } + config := make(map[string]VariableValue) + for k, v := range integ.Config { + config[k] = VariableValue{ + Type: v.Type, + Value: v.Value, + } + } + exportedWorkflow.WorkflowProjectIntegration[integ.ProjectIntegration.Name] = WorkflowProjectIntegrationEntry{ + IntegrationType: IntegrationArtifactManager, + Config: config, + } + } + } + if w.HistoryLength > 0 && w.HistoryLength != sdk.DefaultHistoryLength { exportedWorkflow.HistoryLength = &w.HistoryLength } @@ -428,6 +465,29 @@ func (w Workflow) GetWorkflow() (*sdk.Workflow, error) { wf.Groups = append(wf.Groups, perm) } + wf.Integrations = make([]sdk.WorkflowProjectIntegration, 0, len(w.WorkflowProjectIntegration)) + for projIntegName, entry := range w.WorkflowProjectIntegration { + wkInteg := sdk.WorkflowProjectIntegration{ + ProjectIntegration: sdk.ProjectIntegration{ + Name: projIntegName, + Model: sdk.IntegrationModel{}, + }, + Config: make(map[string]sdk.IntegrationConfigValue, len(entry.Config)), + } + for k, v := range entry.Config { + wkInteg.Config[k] = sdk.IntegrationConfigValue{ + Type: v.Type, + Value: v.Value, + } + } + if entry.IntegrationType == IntegrationArtifactManager { + wkInteg.ProjectIntegration.Model.ArtifactManager = true + } else { + wkInteg.ProjectIntegration.Model.Event = true + } + wf.Integrations = append(wf.Integrations, wkInteg) + } + //Compute notifications if err := w.processNotifications(wf); err != nil { return nil, err diff --git a/sdk/exportentities/v2/workflow_notification.go b/sdk/exportentities/v2/workflow_notification.go index 1976908a6c..aa1a5fbf5f 100644 --- a/sdk/exportentities/v2/workflow_notification.go +++ b/sdk/exportentities/v2/workflow_notification.go @@ -101,8 +101,11 @@ func craftNotifications(ctx context.Context, w sdk.Workflow, exportedWorkflow *W exportedWorkflow.Notifications[i] = notifEntry } for _, e := range w.Integrations { + if !e.ProjectIntegration.Model.Event { + continue + } entry := NotificationEntry{ - Integration: e.Name, + Integration: e.ProjectIntegration.Name, Type: sdk.EventsNotification, } if exportedWorkflow.Notifications == nil { @@ -189,7 +192,9 @@ func (w *Workflow) processNotifications(wrkflw *sdk.Workflow) error { if notif.Integration == "" { return sdk.NewErrorFrom(sdk.ErrWrongRequest, "notification of type event must be linked to an integration") } - wrkflw.Integrations = append(wrkflw.Integrations, sdk.ProjectIntegration{Name: notif.Integration}) + wrkflw.Integrations = append(wrkflw.Integrations, sdk.WorkflowProjectIntegration{ + ProjectIntegration: sdk.ProjectIntegration{Name: notif.Integration, Model: sdk.IntegrationModel{Event: true}}, + }) continue } n, err := ProcessNotificationValues(notif) diff --git a/sdk/exportentities/v2/workflow_test.go b/sdk/exportentities/v2/workflow_test.go index 7b7bb293cc..d380eebcf1 100644 --- a/sdk/exportentities/v2/workflow_test.go +++ b/sdk/exportentities/v2/workflow_test.go @@ -973,6 +973,25 @@ workflow: - aa_2 when: - manual +`, + }, + { + name: "Workflow with multiple integration", + yaml: `name: workflow-multiple-integration +version: v2.0 +workflow: + test: + pipeline: test +notifications: +- type: event + integration: my-integration +integrations: + artifactory: + type: artifact_manager + config: + build.info: + type: string + value: monbuildinfo `, }, { diff --git a/sdk/integration.go b/sdk/integration.go index 30e416f36c..f053eec882 100644 --- a/sdk/integration.go +++ b/sdk/integration.go @@ -310,7 +310,7 @@ type IntegrationModel struct { Identifier string `json:"identifier" db:"identifier" yaml:"identifier,omitempty"` Icon string `json:"icon" db:"icon" yaml:"icon"` DefaultConfig IntegrationConfig `json:"default_config" db:"default_config" yaml:"default_config"` - DeploymentDefaultConfig IntegrationConfig `json:"deployment_default_config" db:"deployment_default_config" yaml:"deployment_default_config"` + AdditionalDefaultConfig IntegrationConfig `json:"additional_default_config" db:"additional_default_config" yaml:"additional_default_config"` PublicConfigurations IntegrationConfigMap `json:"public_configurations,omitempty" db:"cipher_public_configurations" yaml:"public_configurations"` Disabled bool `json:"disabled" db:"disabled" yaml:"disabled"` Hook bool `json:"hook" db:"hook" yaml:"hook" cli:"hooks_supported"` @@ -354,7 +354,7 @@ func (pf *ProjectIntegration) Blur() { pf.Config.Blur() pf.Model.DefaultConfig.Blur() pf.Model.PublicConfigurations.Blur() - pf.Model.DeploymentDefaultConfig.Blur() + pf.Model.AdditionalDefaultConfig.Blur() } // MergeWith set new values from new config and update existing values if not default. diff --git a/sdk/workflow.go b/sdk/workflow.go index a496f04c0a..4c8315f66f 100644 --- a/sdk/workflow.go +++ b/sdk/workflow.go @@ -60,7 +60,7 @@ type Workflow struct { ToDelete bool `json:"to_delete" db:"to_delete" cli:"-"` Favorite bool `json:"favorite" db:"-" cli:"favorite"` WorkflowData WorkflowData `json:"workflow_data" db:"workflow_data" cli:"-"` - Integrations []ProjectIntegration `json:"event_integrations,omitempty" db:"-" cli:"-"` + Integrations []WorkflowProjectIntegration `json:"integrations,omitempty" db:"-" cli:"-"` AsCodeEvent []AsCodeEvent `json:"as_code_events,omitempty" db:"-" cli:"-"` // aggregates TemplateInstance *WorkflowTemplateInstance `json:"template_instance,omitempty" db:"-" cli:"-"` @@ -189,11 +189,14 @@ type WorkflowNotification struct { Integration string `json:"integration,omitempty" db:"-"` } -// ResetIDs resets all nodes and joins ids +// ResetIDs resets all nodes, joins, integration ids func (w *Workflow) ResetIDs() { for _, n := range w.WorkflowData.Array() { n.ID = 0 } + for i := range w.Integrations { + w.Integrations[i].ID = 0 + } } //AddTrigger adds a trigger to the destination node from the node found by its name @@ -369,10 +372,10 @@ func (w *Workflow) ValidateType() error { return nil } -func (w *Workflow) GetEventIntegration() []ProjectIntegration { - eventsIntegrations := make([]ProjectIntegration, 0) +func (w *Workflow) GetEventIntegration() []WorkflowProjectIntegration { + eventsIntegrations := make([]WorkflowProjectIntegration, 0) for _, i := range w.Integrations { - if i.Model.Event { + if i.ProjectIntegration.Model.Event { eventsIntegrations = append(eventsIntegrations, i) } } @@ -478,3 +481,33 @@ func WorkflowToIDs(ws []*Workflow) []int64 { } return ids } + +type WorkflowProjectIntegration struct { + ID int64 `json:"id" db:"id"` + WorkflowID int64 `json:"workflow_id" db:"workflow_id"` + ProjectIntegrationID int64 `json:"project_integration_id" db:"project_integration_id"` + ProjectIntegration ProjectIntegration `json:"project_integration" db:"-"` + Config IntegrationConfig `json:"config" db:"config"` +} + +func (wpi *WorkflowProjectIntegration) MergeWithModel(model IntegrationModel) { + if model.AdditionalDefaultConfig != nil { + if wpi.Config == nil { + wpi.Config = model.AdditionalDefaultConfig.Clone() + } else { + // Merge params + for k, v := range model.AdditionalDefaultConfig { + if _, has := wpi.Config[k]; !has { + wpi.Config[k] = v + } + } + // remove old params + for k := range wpi.Config { + if _, has := model.AdditionalDefaultConfig[k]; !has { + delete(wpi.Config, k) + } + } + } + + } +} diff --git a/sdk/workflow_run_result.go b/sdk/workflow_run_result.go index 0ae8e237c1..5b49a2632b 100644 --- a/sdk/workflow_run_result.go +++ b/sdk/workflow_run_result.go @@ -6,8 +6,9 @@ import ( ) const ( - WorkflowRunResultTypeArtifact WorkflowRunResultType = "artifact" - WorkflowRunResultTypeCoverage WorkflowRunResultType = "coverage" + WorkflowRunResultTypeArtifact WorkflowRunResultType = "artifact" + WorkflowRunResultTypeCoverage WorkflowRunResultType = "coverage" + WorkflowRunResultTypeArtifactManager WorkflowRunResultType = "artifact-manager" ) type WorkflowRunResultType string @@ -40,6 +41,54 @@ func (r *WorkflowRunResult) GetCoverage() (WorkflowRunResultCoverage, error) { return data, nil } +func (r *WorkflowRunResult) GetArtifactManager() (WorkflowRunResultArtifactManager, error) { + var data WorkflowRunResultArtifactManager + if err := json.Unmarshal(r.DataRaw, &data); err != nil { + return data, WithStack(err) + } + return data, nil +} + +type WorkflowRunResultCheck struct { + Name string `json:"name"` + RunID int64 `json:"run_id"` + RunNodeID int64 `json:"run_node_id"` + RunJobID int64 `json:"run_job_id"` + ResultType WorkflowRunResultType `json:"result_type"` +} + +type WorkflowRunResultArtifactManager struct { + Name string `json:"name"` + Size int64 `json:"size"` + MD5 string `json:"md5"` + Path string `json:"path"` + Perm uint32 `json:"perm"` + RepoName string `json:"repository_name"` + RepoType string `json:"repository_type"` +} + +func (a *WorkflowRunResultArtifactManager) IsValid() error { + if a.Name == "" { + return WrapError(ErrInvalidData, "missing artifact name") + } + if a.MD5 == "" { + return WrapError(ErrInvalidData, "missing md5Sum") + } + if a.Path == "" { + return WrapError(ErrInvalidData, "missing cdn item hash") + } + if a.Perm == 0 { + return WrapError(ErrInvalidData, "missing file permission") + } + if a.RepoName == "" { + return WrapError(ErrInvalidData, "missing repository_name") + } + if a.RepoType == "" { + return WrapError(ErrInvalidData, "missing repository_type") + } + return nil +} + type WorkflowRunResultArtifact struct { Name string `json:"name"` Size int64 `json:"size"` diff --git a/ui/src/app/model/integration.model.ts b/ui/src/app/model/integration.model.ts index 9177ef3c41..e98acb5413 100644 --- a/ui/src/app/model/integration.model.ts +++ b/ui/src/app/model/integration.model.ts @@ -5,11 +5,12 @@ export class IntegrationModel { identifier: string; icon: string; default_config: {}; - deployment_default_config: {}; + additional_default_config: {}; disabled: boolean; hook: boolean; storage: boolean; deployment: boolean; + artifact_manager: boolean; compute: boolean; event: boolean; public: boolean; diff --git a/ui/src/app/model/workflow.model.ts b/ui/src/app/model/workflow.model.ts index 74437bc3d7..7826992f63 100644 --- a/ui/src/app/model/workflow.model.ts +++ b/ui/src/app/model/workflow.model.ts @@ -21,6 +21,13 @@ export class WNodeType { static OUTGOINGHOOK = 'outgoinghook'; } +export class WorkflowProjectIntegration { + id: number; + project_integration_id: number; + workflow_id: number; + project_integration: ProjectIntegration; +} + // Workflow represents a pipeline based workflow export class Workflow { id: number; @@ -46,7 +53,7 @@ export class Workflow { applications: { [key: number]: Application; }; environments: { [key: number]: Environment; }; project_integrations: { [key: number]: ProjectIntegration; }; - event_integrations: ProjectIntegration[]; + integrations: WorkflowProjectIntegration[]; hook_models: { [key: number]: WorkflowHookModel; }; outgoing_hook_models: { [key: number]: WorkflowHookModel; }; labels: Label[]; diff --git a/ui/src/app/shared/pipes/callback.pipe.ts b/ui/src/app/shared/pipes/callback.pipe.ts new file mode 100644 index 0000000000..797e6f75a6 --- /dev/null +++ b/ui/src/app/shared/pipes/callback.pipe.ts @@ -0,0 +1,14 @@ +import { Pipe, PipeTransform } from '@angular/core'; + +@Pipe({ + name: 'callback', + pure: false +}) +export class CallbackPipe implements PipeTransform { + transform(items: any[], callback: (item: any) => boolean): any { + if (!items) { + return items; + } + return items.filter(item => callback(item)); + } +} diff --git a/ui/src/app/shared/shared.module.ts b/ui/src/app/shared/shared.module.ts index 8b094cf686..342ce949c3 100644 --- a/ui/src/app/shared/shared.module.ts +++ b/ui/src/app/shared/shared.module.ts @@ -26,6 +26,7 @@ import { ClipboardModule } from 'ngx-clipboard'; import { InfiniteScrollModule } from 'ngx-infinite-scroll'; import { MarkdownModule } from 'ngx-markdown'; import { MomentModule } from 'ngx-moment'; +import { CallbackPipe } from 'app/shared/pipes/callback.pipe'; import { ActionComponent } from './action/action.component'; import { ActionStepFormComponent } from './action/step/form/step.form.component'; import { ActionStepComponent } from './action/step/step.component'; @@ -136,6 +137,7 @@ import { ZoneComponent } from './zone/zone.component'; AuditListComponent, AutoFocusInputComponent, BreadcrumbComponent, + CallbackPipe, ChartComponentComponent, CommitListComponent, ConditionsComponent, @@ -243,6 +245,7 @@ import { ZoneComponent } from './zone/zone.component'; AsCodeEventComponent, BreadcrumbComponent, ProjectBreadcrumbComponent, + CallbackPipe, ChartComponentComponent, CodemirrorModule, CommitListComponent, diff --git a/ui/src/app/store/applications.state.spec.ts b/ui/src/app/store/applications.state.spec.ts index 8aad75b37a..3aa5271a01 100644 --- a/ui/src/app/store/applications.state.spec.ts +++ b/ui/src/app/store/applications.state.spec.ts @@ -497,7 +497,7 @@ describe('Applications', () => { let integration = new ProjectIntegration(); integration.name = 'testintegration'; integration.model = new IntegrationModel(); - integration.model.deployment_default_config = { + integration.model.additional_default_config = { key1: 'value' }; diff --git a/ui/src/app/store/applications.state.ts b/ui/src/app/store/applications.state.ts index b6a20e8e0b..bad46101fd 100644 --- a/ui/src/app/store/applications.state.ts +++ b/ui/src/app/store/applications.state.ts @@ -381,7 +381,7 @@ export class ApplicationsState { if (!appToupdate.deployment_strategies) { appToupdate.deployment_strategies = {}; } - appToupdate.deployment_strategies[integration.name] = cloneDeep(integration.model.deployment_default_config); + appToupdate.deployment_strategies[integration.name] = cloneDeep(integration.model.additional_default_config); appToupdate.editModeChanged = true; ctx.setState({ ...stateEditMode, @@ -392,7 +392,7 @@ export class ApplicationsState { let url = '/project/' + action.payload.projectKey + '/application/' + action.payload.applicationName + '/deployment/config/' + integration.name; - return this._http.post(url, integration.model.deployment_default_config) + return this._http.post(url, integration.model.additional_default_config) .pipe(tap((app) => { const state = ctx.getState(); let applicationUpdated = Object.assign({}, state.application, { @@ -411,12 +411,12 @@ export class ApplicationsState { let integration = new ProjectIntegration(); integration.name = action.payload.deploymentName; integration.model = new IntegrationModel(); - integration.model.deployment_default_config = action.payload.config; + integration.model.additional_default_config = action.payload.config; const stateEditMode = ctx.getState(); if (stateEditMode.editMode) { let appToupdate = cloneDeep(stateEditMode.editApplication); - appToupdate.deployment_strategies[integration.name] = integration.model.deployment_default_config; + appToupdate.deployment_strategies[integration.name] = integration.model.additional_default_config; appToupdate.editModeChanged = true; ctx.setState({ ...stateEditMode, diff --git a/ui/src/app/store/workflow.action.ts b/ui/src/app/store/workflow.action.ts index a6594c35f6..3d1412a6a0 100644 --- a/ui/src/app/store/workflow.action.ts +++ b/ui/src/app/store/workflow.action.ts @@ -1,7 +1,14 @@ import { GroupPermission } from 'app/model/group.model'; import { ProjectIntegration } from 'app/model/integration.model'; import { RetentionDryRunEvent } from 'app/model/purge.model'; -import { WNode, WNodeHook, WNodeTrigger, Workflow, WorkflowNotification } from 'app/model/workflow.model'; +import { + WNode, + WNodeHook, + WNodeTrigger, + Workflow, + WorkflowNotification, + WorkflowProjectIntegration +} from 'app/model/workflow.model'; import { WorkflowNodeRun, WorkflowRun, WorkflowRunSummary } from 'app/model/workflow.run.model'; // --------- MODAL ----- @@ -198,13 +205,13 @@ export class DeleteNotificationWorkflow { } // ------- Event Integrations --------- // -export class UpdateEventIntegrationsWorkflow { - static readonly type = '[Workflow] Update Event Integration in Workflow'; - constructor(public payload: { projectKey: string, workflowName: string, eventIntegrations: ProjectIntegration[] }) { } +export class UpdateIntegrationsWorkflow { + static readonly type = '[Workflow] Update Integration in Workflow'; + constructor(public payload: { projectKey: string, workflowName: string, integrations: WorkflowProjectIntegration[] }) { } } -export class DeleteEventIntegrationWorkflow { - static readonly type = '[Workflow] Delete Event Integration in Workflow'; - constructor(public payload: { projectKey: string, workflowName: string, integrationId: number }) { } +export class DeleteIntegrationWorkflow { + static readonly type = '[Workflow] Delete Integration in Workflow'; + constructor(public payload: { projectKey: string, workflowName: string, projectIntegrationID: number }) { } } // ------- Misc --------- // diff --git a/ui/src/app/store/workflow.state.ts b/ui/src/app/store/workflow.state.ts index e57cd23111..bd40e6548c 100644 --- a/ui/src/app/store/workflow.state.ts +++ b/ui/src/app/store/workflow.state.ts @@ -632,14 +632,14 @@ export class WorkflowState { } // ------- Event integration --------- // - @Action(actionWorkflow.UpdateEventIntegrationsWorkflow) - addEventIntegration(ctx: StateContext, action: actionWorkflow.UpdateEventIntegrationsWorkflow) { + @Action(actionWorkflow.UpdateIntegrationsWorkflow) + addEventIntegration(ctx: StateContext, action: actionWorkflow.UpdateIntegrationsWorkflow) { const state = ctx.getState(); // As code Update Cache if (state.workflow && state.editMode) { const editWorkflow: Workflow = { ...state.editWorkflow, - event_integrations: action.payload.eventIntegrations + integrations: action.payload.integrations }; ctx.setState({ ...state, @@ -651,7 +651,7 @@ export class WorkflowState { const workflow: Workflow = { ...state.workflow, - event_integrations: action.payload.eventIntegrations + integrations: action.payload.integrations }; return ctx.dispatch(new actionWorkflow.UpdateWorkflow({ @@ -661,14 +661,15 @@ export class WorkflowState { })); } - @Action(actionWorkflow.DeleteEventIntegrationWorkflow) - deleteEventIntegration(ctx: StateContext, action: actionWorkflow.DeleteEventIntegrationWorkflow) { + @Action(actionWorkflow.DeleteIntegrationWorkflow) + deleteEventIntegration(ctx: StateContext, action: actionWorkflow.DeleteIntegrationWorkflow) { const state = ctx.getState(); // As code Update Cache if (state.workflow && state.editMode) { const editWorkflow: Workflow = { ...state.editWorkflow, - event_integrations: state.editWorkflow.event_integrations.filter((integ) => integ.id !== action.payload.integrationId) + integrations: state.editWorkflow.integrations + .filter((integ) => integ.project_integration.id !== action.payload.projectIntegrationID) }; ctx.setState({ ...state, @@ -681,11 +682,12 @@ export class WorkflowState { return this._http.delete( `/project/${action.payload.projectKey}/workflows/` + - `${action.payload.workflowName}/eventsintegration/${action.payload.integrationId}` + `${action.payload.workflowName}/integration/${action.payload.projectIntegrationID}` ).pipe(tap(() => { const workflow: Workflow = { ...state.workflow, - event_integrations: state.workflow.event_integrations.filter((integ) => integ.id !== action.payload.integrationId) + integrations: state.workflow.integrations + .filter((integ) => integ.project_integration.id !== action.payload.projectIntegrationID) }; return ctx.dispatch(new actionWorkflow.UpdateWorkflow({ diff --git a/ui/src/app/views/application/show/admin/deployment/application.deployment.html b/ui/src/app/views/application/show/admin/deployment/application.deployment.html index 8e3ef8141b..cff9fbeb4e 100644 --- a/ui/src/app/views/application/show/admin/deployment/application.deployment.html +++ b/ui/src/app/views/application/show/admin/deployment/application.deployment.html @@ -11,24 +11,24 @@
-
+
- - - + + +
diff --git a/ui/src/app/views/workflow/show/admin/workflow.admin.component.html b/ui/src/app/views/workflow/show/admin/workflow.admin.component.html index 2fb2eac87f..af2bd8e981 100644 --- a/ui/src/app/views/workflow/show/admin/workflow.admin.component.html +++ b/ui/src/app/views/workflow/show/admin/workflow.admin.component.html @@ -218,6 +218,92 @@

{{'workflow_retention_result_title' | translate }}

+ + +
+

Link an integration

+
+
+
+ + + + +
+
+
+ +
+
+
+
+ +

Configuration

+ +
There is no linked integration on this workflow
+
+
+ + + + + + + + + + + + + + + + + +
NameConfiguration
+ {{integ.project_integration.name}} + + +
+
+ +
+
+ + + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
diff --git a/ui/src/app/views/workflow/show/admin/workflow.admin.component.ts b/ui/src/app/views/workflow/show/admin/workflow.admin.component.ts index a94c35de99..ae21286aca 100644 --- a/ui/src/app/views/workflow/show/admin/workflow.admin.component.ts +++ b/ui/src/app/views/workflow/show/admin/workflow.admin.component.ts @@ -14,7 +14,7 @@ import { ModalTemplate, SuiActiveModal, SuiModalService, TemplateModalConfig } f import { EventService } from 'app/event.service'; import { Project } from 'app/model/project.model'; import { RunToKeep } from 'app/model/purge.model'; -import { Workflow } from 'app/model/workflow.model'; +import { Workflow, WorkflowProjectIntegration } from 'app/model/workflow.model'; import { FeatureNames } from 'app/service/feature/feature.service'; import { ThemeStore } from 'app/service/theme/theme.store'; import { WorkflowRunService } from 'app/service/workflow/run/workflow.run.service'; @@ -24,13 +24,21 @@ import { WarningModalComponent } from 'app/shared/modal/warning/warning.componen import { Column, ColumnType } from 'app/shared/table/data-table.component'; import { ToastService } from 'app/shared/toast/ToastService'; import { FeatureState } from 'app/store/feature.state'; -import { CleanRetentionDryRun, DeleteWorkflow, DeleteWorkflowIcon, UpdateWorkflow, UpdateWorkflowIcon } from 'app/store/workflow.action'; +import { + CleanRetentionDryRun, DeleteIntegrationWorkflow, + DeleteWorkflow, + DeleteWorkflowIcon, + UpdateIntegrationsWorkflow, + UpdateWorkflow, + UpdateWorkflowIcon +} from 'app/store/workflow.action'; import { WorkflowState } from 'app/store/workflow.state'; import cloneDeep from 'lodash-es/cloneDeep'; import { CodemirrorComponent } from 'ng2-codemirror-typescript/Codemirror'; import { DragulaService } from 'ng2-dragula-sgu'; import { forkJoin, Observable, Subscription } from 'rxjs'; import { finalize, first } from 'rxjs/operators'; +import { ProjectIntegration } from 'app/model/integration.model'; declare let CodeMirror: any; @@ -42,13 +50,25 @@ declare let CodeMirror: any; }) @AutoUnsubscribe() export class WorkflowAdminComponent implements OnInit, OnDestroy { - @Input() project: Project; + + _project: Project; + @Input() + set project(project: Project) { + this._project = project; + if (project.integrations) { + this.filteredIntegrations = cloneDeep(project.integrations.filter(p => p.model.artifact_manager)); + } + } + get project(): Project { + return this._project; + } _workflow: Workflow; @Input() set workflow(data: Workflow) { if (data) { this._workflow = cloneDeep(data); + this.nbEventIntegrations = this._workflow.integrations.filter(i => i.project_integration.model.event).length } } get workflow() { @@ -74,6 +94,10 @@ export class WorkflowAdminComponent implements OnInit, OnDestroy { maxRunsEnabled = false; codeMirrorConfig: any; + filteredIntegrations: Array; + nbEventIntegrations: number; + selectedIntegration: ProjectIntegration; + @ViewChild('updateWarning') private warningUpdateModal: WarningModalComponent; @ViewChild('codemirrorRetentionPolicy') codemirror: CodemirrorComponent; @@ -406,6 +430,26 @@ export class WorkflowAdminComponent implements OnInit, OnDestroy { }); } + addIntegration() { + this.loading = true; + let workflowIntegrations = new Array(); + let wi = new WorkflowProjectIntegration(); + wi.project_integration = this.selectedIntegration; + workflowIntegrations.push(wi); + if (this.workflow.integrations) { + workflowIntegrations = [wi].concat(this.workflow.integrations) + } + this.store.dispatch(new UpdateIntegrationsWorkflow({ + projectKey: this.project.key, + workflowName: this.workflow.name, + integrations: workflowIntegrations, + })).pipe(finalize(() => { + this.loading = false; + delete this.selectedIntegration; + this._cd.markForCheck(); + })).subscribe(); + } + fileEvent(event: { content: string, file: File }) { this.fileTooLarge = event.file.size > 100000; if (this.fileTooLarge) { @@ -414,4 +458,20 @@ export class WorkflowAdminComponent implements OnInit, OnDestroy { this.iconUpdated = true; this._workflow.icon = event.content; } + + clickDeleteIntegration(integ: WorkflowProjectIntegration) { + this.loading = true; + this.store.dispatch(new DeleteIntegrationWorkflow({ + projectKey: this.project.key, + workflowName: this.workflow.name, + projectIntegrationID: integ.project_integration_id + })).pipe(finalize(() => { + this.loading = false; + this._cd.markForCheck(); + })).subscribe(); + } + + filterIntegration(integ: WorkflowProjectIntegration): boolean { + return !integ.project_integration.model.event; + } } diff --git a/ui/src/app/views/workflow/show/notification/list/workflow.notification.list.component.ts b/ui/src/app/views/workflow/show/notification/list/workflow.notification.list.component.ts index 7029e5a0b8..30e00ab95f 100644 --- a/ui/src/app/views/workflow/show/notification/list/workflow.notification.list.component.ts +++ b/ui/src/app/views/workflow/show/notification/list/workflow.notification.list.component.ts @@ -3,11 +3,12 @@ import { TranslateService } from '@ngx-translate/core'; import { Store } from '@ngxs/store'; import { ProjectIntegration } from 'app/model/integration.model'; import { Project } from 'app/model/project.model'; -import { Workflow, WorkflowNotification } from 'app/model/workflow.model'; +import { Workflow, WorkflowNotification, WorkflowProjectIntegration } from 'app/model/workflow.model'; import { NotificationService } from 'app/service/notification/notification.service'; import { ToastService } from 'app/shared/toast/ToastService'; // eslint-disable-next-line max-len -import { AddNotificationWorkflow, DeleteEventIntegrationWorkflow, DeleteNotificationWorkflow, UpdateEventIntegrationsWorkflow, UpdateNotificationWorkflow } from 'app/store/workflow.action'; +import { AddNotificationWorkflow, DeleteIntegrationWorkflow, DeleteNotificationWorkflow, + UpdateIntegrationsWorkflow, UpdateNotificationWorkflow } from 'app/store/workflow.action'; import cloneDeep from 'lodash-es/cloneDeep'; import { finalize, first } from 'rxjs/operators'; @@ -189,29 +190,37 @@ export class WorkflowNotificationListComponent { addEvent(integration: ProjectIntegration) { this.loading = true; - let eventIntegrations = new Array(integration); - if (this.workflow.event_integrations) { - eventIntegrations = [integration].concat(this.workflow.event_integrations) + let workflowIntegrations = new Array(); + let wi = new WorkflowProjectIntegration(); + wi.project_integration = integration; + wi.project_integration_id = integration.id; + workflowIntegrations.push(wi); + if (this.workflow.integrations) { + workflowIntegrations = [wi].concat(this.workflow.integrations) } - this.store.dispatch(new UpdateEventIntegrationsWorkflow({ + this.store.dispatch(new UpdateIntegrationsWorkflow({ projectKey: this.project.key, workflowName: this.workflow.name, - eventIntegrations + integrations: workflowIntegrations, })).pipe(finalize(() => { this.loading = false; this._cd.markForCheck(); })).subscribe(); } - deleteEvent(integration: ProjectIntegration) { + deleteEvent(projectIntegrationID: number) { this.loading = true; - this.store.dispatch(new DeleteEventIntegrationWorkflow({ + this.store.dispatch(new DeleteIntegrationWorkflow({ projectKey: this.project.key, workflowName: this.workflow.name, - integrationId: integration.id, + projectIntegrationID, })).pipe(finalize(() => { this.loading = false; this._cd.markForCheck(); })).subscribe(); } + + filterEvent(wpi: WorkflowProjectIntegration): boolean { + return wpi.project_integration.model.event; + } } diff --git a/ui/src/app/views/workflow/show/notification/list/workflow.notification.list.html b/ui/src/app/views/workflow/show/notification/list/workflow.notification.list.html index 437db2ae5d..29f1a4a182 100644 --- a/ui/src/app/views/workflow/show/notification/list/workflow.notification.list.html +++ b/ui/src/app/views/workflow/show/notification/list/workflow.notification.list.html @@ -81,15 +81,15 @@
-
+ *ngIf="workflow.integrations && workflow.integrations.length > 0"> +
+ (event)="deleteEvent(eventIntegration.project_integration_id)">
- {{eventIntegration.name}} + {{eventIntegration.project_integration.name}}