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

rgw/admin: add more information to the Bucket struct #1058

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sj14
Copy link
Contributor

@sj14 sj14 commented Jan 17, 2025

Add the following information to the Bucket struct:

Versioned         *bool      `json:"versioned"`
VersioningEnabled *bool      `json:"versioning_enabled"`
ObjectLockEnabled *bool      `json:"object_lock_enabled"`

Checklist

  • Added tests for features and functional changes
  • Public functions and types are documented
  • Standard formatting is applied to Go code
  • Is this a new API? Added a new file that begins with //go:build ceph_preview
  • Ran make api-update to record new APIs

New or infrequent contributors may want to review the go-ceph Developer's Guide including the section on how we track API Status and the API Stability Plan.

The go-ceph project uses mergify. View the mergify command guide for information on how to interact with mergify. Add a comment with @Mergifyio rebase to rebase your PR when github indicates that the PR is out of date with the base branch.

Add the following field to the Bucket struct:
 - Versioned
 - VersioningEnabled
 - ObjectLockEnabled

Signed-off-by: Simon Jürgensmeyer <[email protected]>
@sj14 sj14 changed the title rgw: add more information to the Bucket struct rgw/admin: add more information to the Bucket struct Jan 17, 2025
Comment on lines +23 to +35
ID string `json:"id"`
Marker string `json:"marker"`
IndexType string `json:"index_type"`
Versioned *bool `json:"versioned"`
VersioningEnabled *bool `json:"versioning_enabled"`
ObjectLockEnabled *bool `json:"object_lock_enabled"`
Owner string `json:"owner"`
Ver string `json:"ver"`
MasterVer string `json:"master_ver"`
Mtime string `json:"mtime"`
CreationTime *time.Time `json:"creation_time"`
MaxMarker string `json:"max_marker"`
Usage struct {
Copy link
Collaborator

Choose a reason for hiding this comment

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

From unit tests point of view can we somehow verify these new fields?

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