-
Notifications
You must be signed in to change notification settings - Fork 262
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
base: master
Are you sure you want to change the base?
Conversation
Add the following field to the Bucket struct: - Versioned - VersioningEnabled - ObjectLockEnabled Signed-off-by: Simon Jürgensmeyer <[email protected]>
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 { |
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.
From unit tests point of view can we somehow verify these new fields?
Marker string `json:"marker"` | ||
IndexType string `json:"index_type"` | ||
Versioned *bool `json:"versioned"` | ||
VersioningEnabled *bool `json:"versioning_enabled"` |
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.
From squid Versioned
and VersioningEnabled
has been replaced by Versioning
.
VersioningEnabled *bool `json:"versioning_enabled"` | |
VersioningEnabled *bool `json:"versioning_enabled"` | |
Versioning *string `json:"versioning"` |
The PR is no longer a high priority for me. So, I will convert it to a draft and may come back later. |
Add the following information to the Bucket struct:
Checklist
//go:build ceph_preview
make api-update
to record new APIsNew 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.