Skip to content
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

add V1ClusterProfilesUIDSpcDownload API #149

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

devang-gaur
Copy link
Contributor

No description provided.

@devang-gaur devang-gaur force-pushed the add_V1ClusterProfilesUIDSpcDownload branch 2 times, most recently from ccc2952 to 524cc9b Compare February 11, 2025 05:32
client/cluster_profile.go Outdated Show resolved Hide resolved
client/cluster_profile.go Outdated Show resolved Hide resolved
client/cluster_profile.go Outdated Show resolved Hide resolved
@devang-gaur devang-gaur force-pushed the add_V1ClusterProfilesUIDSpcDownload branch from 4a07b42 to e497d7f Compare February 14, 2025 21:51
client/cluster_profile.go Outdated Show resolved Hide resolved
@devang-gaur devang-gaur force-pushed the add_V1ClusterProfilesUIDSpcDownload branch from e497d7f to 88c8830 Compare February 14, 2025 22:02
@devang-gaur devang-gaur force-pushed the add_V1ClusterProfilesUIDSpcDownload branch from 88c8830 to c1a99f3 Compare February 14, 2025 22:03
@devang-gaur devang-gaur force-pushed the add_V1ClusterProfilesUIDSpcDownload branch from c1a99f3 to 68494d6 Compare February 14, 2025 22:12
params := clientv1.NewV1ClusterProfilesUIDSpcDownloadParamsWithContext(h.ctx).
WithUID(profileUID)

resp, err := h.Client.V1ClusterProfilesUIDSpcDownload(params, w)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method returns an io.ReadCloser we need to actually read from it into a buffer and save the resulting data somewhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. ExportClusterProfile returns a bytes.Buffer and DownloadLogs returns an io.Writer. It would be good to standardize these.

@TylerGillson TylerGillson self-requested a review February 15, 2025 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants