Skip to content

Commit

Permalink
add all the internal data type (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Jul 10, 2023
1 parent 8be8154 commit b27c007
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions api-datatypes.go
Expand Up @@ -220,6 +220,11 @@ type ObjectInfo struct {
ChecksumSHA1 string
ChecksumSHA256 string

Internal *struct {
K int // Data blocks
M int // Parity blocks
} `xml:"Internal"`

// Error
Err error `json:"-"`
}
Expand Down
1 change: 1 addition & 0 deletions api-list.go
Expand Up @@ -424,6 +424,7 @@ func (c *Client) listObjectVersions(ctx context.Context, bucketName string, opts
IsDeleteMarker: version.isDeleteMarker,
UserTags: version.UserTags,
UserMetadata: version.UserMetadata,
Internal: version.Internal,
}
select {
// Send object version info.
Expand Down
5 changes: 5 additions & 0 deletions api-s3-datatypes.go
Expand Up @@ -93,6 +93,11 @@ type Version struct {
// Only returned by MinIO servers.
UserTags URLMap `json:"userTags,omitempty" xml:"UserTags"`

Internal *struct {
K int // Data blocks
M int // Parity blocks
} `xml:"Internal"`

isDeleteMarker bool
}

Expand Down
Expand Up @@ -37,7 +37,7 @@ func main() {

// New returns an Amazon S3 compatible client object. API compatibility (v2 or v4) is automatically
// determined based on the Endpoint value.
s3Client, err := minio.New("s3.amazonaws.com", &minio.Options{
s3Client, err := minio.New("play.min.io", &minio.Options{
Creds: credentials.NewStaticV4("YOUR-ACCESSKEYID", "YOUR-SECRETACCESSKEY", ""),
Secure: true,
})
Expand Down

0 comments on commit b27c007

Please sign in to comment.