-
-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate go-client from swagger #2691
Conversation
Won't this type int or 'latest' be a problem? Should it be changed to something like? // @Param number path int|string true "the number of the pipeline, OR 'latest'" |
The current client does takes |
@anbraten Can we close this and convert to an issue instead? There hasn't really been any work |
Deployment of preview was torn down |
func (c *Client) StreamPipelineStepLog(ctx context.Context, repoID, pipelineNumber, stepID int64) error { | ||
logs := make(chan *sse.Event) | ||
|
||
client := sse.NewClient(fmt.Sprintf("%s/api/stream/logs/%d/%d/%d", c.uri, repoID, pipelineNumber, stepID)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how is the logs chan exposed ?
close #3053
close #3652
Creates a new go api client automatically out of the swagger definition