func (client *Client) SetObjectPublicWithContext(ctx context.Context, bucketName, objectName string) error {
	grant := Grant{
		Grantee: GrantKey{
			ID: "ALL_USERS",
		},
		Permission: GrantPermissionRead,
		Type:       GrantTypeGroup,
	}

	controlList := &AccessControlList{}
	controlList.AddGrant(grant)

	aclRequest := &SetObjectACLRequest{
		BucketName: bucketName,
		ObjectName: objectName,
		ACL:        controlList,
	}

	return client.SetObjectACLWithContext(ctx, aclRequest)
}
// SetObjectPublicWithContext is a shortcut of setting object public with context controlling
SetObjectPublicWithContext is a shortcut of setting object public with context controlling
// SetObjectPublicWithContext is a shortcut of setting object public with context controlling
func (client *Client) SetObjectPublicWithContext(ctx context.Context, bucketName, objectName string) error {
	grant := Grant{
		Grantee: GrantKey{
			ID: "ALL_USERS",
		},
		Permission: GrantPermissionRead,
		Type:       GrantTypeGroup,
	}
	controlList := &AccessControlList{}
	controlList.AddGrant(grant)
	aclRequest := &SetObjectACLRequest{
		BucketName: bucketName,
		ObjectName: objectName,
		ACL:        controlList,
	}
	return client.SetObjectACLWithContext(ctx, aclRequest)
}
func ( client * Client ) SetObjectPublicWithContext ( ctx context . Context , bucketName , objectName string ) error { grant := Grant { Grantee : GrantKey { ID : " " , } , Permission : GrantPermissionRead , Type : GrantTypeGroup , } controlList := & AccessControlList { } controlList . AddGrant ( grant ) aclRequest := & SetObjectACLRequest { BucketName : bucketName , ObjectName : objectName , ACL : controlList , } return client . SetObjectACLWithContext ( ctx , aclRequest ) }
SetObjectPublicWithContext is a shortcut of setting object public with context controlling
SetObjectPublicWithContext is a shortcut of setting object public with context controlling