Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

release: version 0.6.0-dev

+59 -18
+1 -1
VERSION
··· 1 - 0.5.0-dev 1 + 0.6.0-dev
+43 -15
client-go/client.gen.go
··· 95 95 SeedType *string `form:"seed_type,omitempty" json:"seed_type,omitempty"` 96 96 } 97 97 98 + // NewSeedParams defines parameters for NewSeed. 99 + type NewSeedParams struct { 100 + // Rename Rename the seed if matching artifact found 101 + Rename *bool `form:"rename,omitempty" json:"rename,omitempty"` 102 + } 103 + 98 104 // LatestSeedParams defines parameters for LatestSeed. 99 105 type LatestSeedParams struct { 100 106 // Tags Filter by tags (key=value format, can repeat) ··· 193 199 ListSeeds(ctx context.Context, params *ListSeedsParams, reqEditors ...RequestEditorFn) (*http.Response, error) 194 200 195 201 // NewSeedWithBody request with any body 196 - NewSeedWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) 202 + NewSeedWithBody(ctx context.Context, params *NewSeedParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) 197 203 198 - NewSeed(ctx context.Context, body NewSeedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) 204 + NewSeed(ctx context.Context, params *NewSeedParams, body NewSeedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) 199 205 200 206 // LatestSeed request 201 207 LatestSeed(ctx context.Context, params *LatestSeedParams, reqEditors ...RequestEditorFn) (*http.Response, error) ··· 240 246 return c.Client.Do(req) 241 247 } 242 248 243 - func (c *Client) NewSeedWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { 244 - req, err := NewNewSeedRequestWithBody(c.Server, contentType, body) 249 + func (c *Client) NewSeedWithBody(ctx context.Context, params *NewSeedParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { 250 + req, err := NewNewSeedRequestWithBody(c.Server, params, contentType, body) 245 251 if err != nil { 246 252 return nil, err 247 253 } ··· 252 258 return c.Client.Do(req) 253 259 } 254 260 255 - func (c *Client) NewSeed(ctx context.Context, body NewSeedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { 256 - req, err := NewNewSeedRequest(c.Server, body) 261 + func (c *Client) NewSeed(ctx context.Context, params *NewSeedParams, body NewSeedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { 262 + req, err := NewNewSeedRequest(c.Server, params, body) 257 263 if err != nil { 258 264 return nil, err 259 265 } ··· 408 414 } 409 415 410 416 // NewNewSeedRequest calls the generic NewSeed builder with application/json body 411 - func NewNewSeedRequest(server string, body NewSeedJSONRequestBody) (*http.Request, error) { 417 + func NewNewSeedRequest(server string, params *NewSeedParams, body NewSeedJSONRequestBody) (*http.Request, error) { 412 418 var bodyReader io.Reader 413 419 buf, err := json.Marshal(body) 414 420 if err != nil { 415 421 return nil, err 416 422 } 417 423 bodyReader = bytes.NewReader(buf) 418 - return NewNewSeedRequestWithBody(server, "application/json", bodyReader) 424 + return NewNewSeedRequestWithBody(server, params, "application/json", bodyReader) 419 425 } 420 426 421 427 // NewNewSeedRequestWithBody generates requests for NewSeed with any type of body 422 - func NewNewSeedRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { 428 + func NewNewSeedRequestWithBody(server string, params *NewSeedParams, contentType string, body io.Reader) (*http.Request, error) { 423 429 var err error 424 430 425 431 serverURL, err := url.Parse(server) ··· 437 443 return nil, err 438 444 } 439 445 446 + if params != nil { 447 + queryValues := queryURL.Query() 448 + 449 + if params.Rename != nil { 450 + 451 + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rename", runtime.ParamLocationQuery, *params.Rename); err != nil { 452 + return nil, err 453 + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { 454 + return nil, err 455 + } else { 456 + for k, v := range parsed { 457 + for _, v2 := range v { 458 + queryValues.Add(k, v2) 459 + } 460 + } 461 + } 462 + 463 + } 464 + 465 + queryURL.RawQuery = queryValues.Encode() 466 + } 467 + 440 468 req, err := http.NewRequest("POST", queryURL.String(), body) 441 469 if err != nil { 442 470 return nil, err ··· 615 643 ListSeedsWithResponse(ctx context.Context, params *ListSeedsParams, reqEditors ...RequestEditorFn) (*ListSeedsResponse, error) 616 644 617 645 // NewSeedWithBodyWithResponse request with any body 618 - NewSeedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NewSeedResponse, error) 646 + NewSeedWithBodyWithResponse(ctx context.Context, params *NewSeedParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NewSeedResponse, error) 619 647 620 - NewSeedWithResponse(ctx context.Context, body NewSeedJSONRequestBody, reqEditors ...RequestEditorFn) (*NewSeedResponse, error) 648 + NewSeedWithResponse(ctx context.Context, params *NewSeedParams, body NewSeedJSONRequestBody, reqEditors ...RequestEditorFn) (*NewSeedResponse, error) 621 649 622 650 // LatestSeedWithResponse request 623 651 LatestSeedWithResponse(ctx context.Context, params *LatestSeedParams, reqEditors ...RequestEditorFn) (*LatestSeedResponse, error) ··· 816 844 } 817 845 818 846 // NewSeedWithBodyWithResponse request with arbitrary body returning *NewSeedResponse 819 - func (c *ClientWithResponses) NewSeedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NewSeedResponse, error) { 820 - rsp, err := c.NewSeedWithBody(ctx, contentType, body, reqEditors...) 847 + func (c *ClientWithResponses) NewSeedWithBodyWithResponse(ctx context.Context, params *NewSeedParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NewSeedResponse, error) { 848 + rsp, err := c.NewSeedWithBody(ctx, params, contentType, body, reqEditors...) 821 849 if err != nil { 822 850 return nil, err 823 851 } 824 852 return ParseNewSeedResponse(rsp) 825 853 } 826 854 827 - func (c *ClientWithResponses) NewSeedWithResponse(ctx context.Context, body NewSeedJSONRequestBody, reqEditors ...RequestEditorFn) (*NewSeedResponse, error) { 828 - rsp, err := c.NewSeed(ctx, body, reqEditors...) 855 + func (c *ClientWithResponses) NewSeedWithResponse(ctx context.Context, params *NewSeedParams, body NewSeedJSONRequestBody, reqEditors ...RequestEditorFn) (*NewSeedResponse, error) { 856 + rsp, err := c.NewSeed(ctx, params, body, reqEditors...) 829 857 if err != nil { 830 858 return nil, err 831 859 }
+15 -2
openapi.json
··· 197 197 }, 198 198 "info": { 199 199 "title": "sower", 200 - "version": "0.5.0-dev" 200 + "version": "0.6.0-dev" 201 201 }, 202 202 "openapi": "3.0.0", 203 203 "paths": { ··· 378 378 "post": { 379 379 "callbacks": {}, 380 380 "operationId": "NewSeed", 381 - "parameters": [], 381 + "parameters": [ 382 + { 383 + "description": "Rename the seed if matching artifact found", 384 + "example": "true", 385 + "in": "query", 386 + "name": "rename", 387 + "required": false, 388 + "schema": { 389 + "type": "boolean", 390 + "x-struct": null, 391 + "x-validate": null 392 + } 393 + } 394 + ], 382 395 "requestBody": { 383 396 "content": { 384 397 "application/json": {