-
Notifications
You must be signed in to change notification settings - Fork 21
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
Control plane - get and update app services manifest endpoints #126
Control plane - get and update app services manifest endpoints #126
Conversation
The methods |
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.
💪🏼 minor comments
pkg/controlplane/http/session.go
Outdated
err := s.listResource(getAppServicesManifestInput.Ctx, | ||
"app_services_manifests", | ||
&getAppServicesManifestInput.ControlPlaneInput, | ||
&getAppServicesManifestOutput.ControlPlaneOutput, | ||
&getAppServicesManifestOutput.AppServicesManifests) | ||
|
||
if err != nil { | ||
return nil, err | ||
} |
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.
err := s.listResource(getAppServicesManifestInput.Ctx, | |
"app_services_manifests", | |
&getAppServicesManifestInput.ControlPlaneInput, | |
&getAppServicesManifestOutput.ControlPlaneOutput, | |
&getAppServicesManifestOutput.AppServicesManifests) | |
if err != nil { | |
return nil, err | |
} | |
if err := s.listResource(getAppServicesManifestInput.Ctx, | |
"app_services_manifests", | |
&getAppServicesManifestInput.ControlPlaneInput, | |
&getAppServicesManifestOutput.ControlPlaneOutput, | |
&getAppServicesManifestOutput.AppServicesManifests); err != nil { | |
return nil, errors.Wrap(err, "Failed to list app services manifests") | |
} |
pkg/controlplane/http/session.go
Outdated
getJobOutput := v3ioc.GetJobOutput{} | ||
|
||
// try to update the resource | ||
err := s.updateResource(updateAppServicesManifestInput.Ctx, |
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.
see comment above with if err := ...
pkg/controlplane/http/session.go
Outdated
} | ||
|
||
if err := json.NewDecoder(responseBuffer).Decode(&jsonAPIResponse); err != nil { | ||
return err |
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.
wrap err ^
pkg/controlplane/http/session.go
Outdated
&getAppServicesManifestInput.ControlPlaneInput, | ||
&getAppServicesManifestOutput.ControlPlaneOutput, | ||
&getAppServicesManifestOutput.AppServicesManifests); err != nil { | ||
return nil, err |
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.
wrap err
pkg/controlplane/http/session.go
Outdated
&updateAppServicesManifestInput.AppServicesManifest, | ||
&getJobOutput.ControlPlaneOutput, | ||
&getJobOutput.JobAttributes); err != nil { | ||
return nil, err |
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.
wrap err
No description provided.